2020target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
2121
2222; COMMON-LABEL: test_ret_const(
23- ; COMMON: mov.u32 [[R:%r[0-9+]]], 131073;
23+ ; COMMON: mov.b32 [[R:%r[0-9+]]], 131073;
2424; COMMON: st.param.b32 [func_retval0+0], [[R]];
2525; COMMON-NEXT: ret;
2626define <2 x i16 > @test_ret_const () #0 {
@@ -86,7 +86,7 @@ define <2 x i16> @test_add(<2 x i16> %a, <2 x i16> %b) #0 {
8686; COMMON-LABEL: test_add_imm_0(
8787; COMMON-DAG: ld.param.u32 [[A:%r[0-9]+]], [test_add_imm_0_param_0];
8888;
89- ; I16x2: mov.u32 [[I:%r[0-9+]]], 131073;
89+ ; I16x2: mov.b32 [[I:%r[0-9+]]], 131073;
9090; I16x2: add.s16x2 [[R:%r[0-9]+]], [[A]], [[I]];
9191;
9292; NO-I16x2-DAG: mov.b32 {[[RS0:%rs[0-9]+]], [[RS1:%rs[0-9]+]]}, [[A]];
@@ -104,7 +104,7 @@ define <2 x i16> @test_add_imm_0(<2 x i16> %a) #0 {
104104; COMMON-LABEL: test_add_imm_1(
105105; COMMON-DAG: ld.param.u32 [[B:%r[0-9]+]], [test_add_imm_1_param_0];
106106;
107- ; I16x2: mov.u32 [[I:%r[0-9+]]], 131073;
107+ ; I16x2: mov.b32 [[I:%r[0-9+]]], 131073;
108108; I16x2: add.s16x2 [[R:%r[0-9]+]], [[A]], [[I]];
109109;
110110; NO-I16x2-DAG: mov.b32 {[[RS0:%rs[0-9]+]], [[RS1:%rs[0-9]+]]}, [[A]];
@@ -497,6 +497,20 @@ define i32 @test_bitcast_2xi16_to_i32(<2 x i16> %a) #0 {
497497 ret i32 %r
498498}
499499
500+ ; COMMON-LABEL: test_bitcast_2xi16_to_2xhalf(
501+ ; COMMON: ld.param.u16 [[RS1:%rs[0-9]+]], [test_bitcast_2xi16_to_2xhalf_param_0];
502+ ; COMMON: mov.u16 [[RS2:%rs[0-9]+]], 5;
503+ ; COMMON: mov.b32 [[R:%r[0-9]+]], {[[RS1]], [[RS2]]};
504+ ; COMMON: st.param.b32 [func_retval0+0], [[R]];
505+ ; COMMON: ret;
506+ define <2 x half > @test_bitcast_2xi16_to_2xhalf (i16 %a ) #0 {
507+ %ins.0 = insertelement <2 x i16 > undef , i16 %a , i32 0
508+ %ins.1 = insertelement <2 x i16 > %ins.0 , i16 5 , i32 1
509+ %r = bitcast <2 x i16 > %ins.1 to <2 x half >
510+ ret <2 x half > %r
511+ }
512+
513+
500514; COMMON-LABEL: test_shufflevector(
501515; COMMON: ld.param.u32 [[R:%r[0-9]+]], [test_shufflevector_param_0];
502516; COMMON: mov.b32 {[[RS0:%rs[0-9]+]], [[RS1:%rs[0-9]+]]}, [[R]];
0 commit comments