20
20
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
21
21
22
22
; COMMON-LABEL: test_ret_const(
23
- ; COMMON: mov.u32 [[R:%r[0-9+]]], 131073;
23
+ ; COMMON: mov.b32 [[R:%r[0-9+]]], 131073;
24
24
; COMMON: st.param.b32 [func_retval0+0], [[R]];
25
25
; COMMON-NEXT: ret;
26
26
define <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 {
86
86
; COMMON-LABEL: test_add_imm_0(
87
87
; COMMON-DAG: ld.param.u32 [[A:%r[0-9]+]], [test_add_imm_0_param_0];
88
88
;
89
- ; I16x2: mov.u32 [[I:%r[0-9+]]], 131073;
89
+ ; I16x2: mov.b32 [[I:%r[0-9+]]], 131073;
90
90
; I16x2: add.s16x2 [[R:%r[0-9]+]], [[A]], [[I]];
91
91
;
92
92
; 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 {
104
104
; COMMON-LABEL: test_add_imm_1(
105
105
; COMMON-DAG: ld.param.u32 [[B:%r[0-9]+]], [test_add_imm_1_param_0];
106
106
;
107
- ; I16x2: mov.u32 [[I:%r[0-9+]]], 131073;
107
+ ; I16x2: mov.b32 [[I:%r[0-9+]]], 131073;
108
108
; I16x2: add.s16x2 [[R:%r[0-9]+]], [[A]], [[I]];
109
109
;
110
110
; 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 {
497
497
ret i32 %r
498
498
}
499
499
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
+
500
514
; COMMON-LABEL: test_shufflevector(
501
515
; COMMON: ld.param.u32 [[R:%r[0-9]+]], [test_shufflevector_param_0];
502
516
; COMMON: mov.b32 {[[RS0:%rs[0-9]+]], [[RS1:%rs[0-9]+]]}, [[R]];
0 commit comments