@@ -27,24 +27,20 @@ entry:
2727
2828; GCN-LABEL: {{^}}scalar_andn2_i32_one_sgpr
2929; GCN: s_andn2_b32
30- define amdgpu_kernel void @scalar_andn2_i32_one_sgpr (
31- ptr addrspace (1 ) %r0 , i32 inreg %a , i32 inreg %b ) {
30+ define i32 @scalar_andn2_i32_one_sgpr (i32 inreg %a , i32 inreg %b ) {
3231entry:
3332 %nb = xor i32 %b , -1
34- %r0.val = and i32 %a , %nb
35- store i32 %r0.val , ptr addrspace (1 ) %r0
36- ret void
33+ %and = and i32 %a , %nb
34+ ret i32 %and
3735}
3836
3937; GCN-LABEL: {{^}}scalar_andn2_i64_one_sgpr
4038; GCN: s_andn2_b64
41- define amdgpu_kernel void @scalar_andn2_i64_one_sgpr (
42- ptr addrspace (1 ) %r0 , i64 inreg %a , i64 inreg %b ) {
39+ define i64 @scalar_andn2_i64_one_sgpr (i64 inreg %a , i64 inreg %b ) {
4340entry:
4441 %nb = xor i64 %b , -1
45- %r0.val = and i64 %a , %nb
46- store i64 %r0.val , ptr addrspace (1 ) %r0
47- ret void
42+ %and = and i64 %a , %nb
43+ ret i64 %and
4844}
4945
5046; GCN-LABEL: {{^}}scalar_orn2_i32_one_use
@@ -71,24 +67,20 @@ entry:
7167
7268; GCN-LABEL: {{^}}scalar_orn2_i32_one_use_sgpr
7369; GCN: s_orn2_b32
74- define amdgpu_kernel void @scalar_orn2_i32_one_use_sgpr (
75- ptr addrspace (1 ) %r0 , i32 inreg %a , i32 inreg %b ) {
70+ define i32 @scalar_orn2_i32_one_use_sgpr (i32 inreg %a , i32 inreg %b ) {
7671entry:
7772 %nb = xor i32 %b , -1
78- %r0.val = or i32 %a , %nb
79- store i32 %r0.val , ptr addrspace (1 ) %r0
80- ret void
73+ %or = or i32 %a , %nb
74+ ret i32 %or ;
8175}
8276
8377; GCN-LABEL: {{^}}scalar_orn2_i64_one_use_sgpr
8478; GCN: s_orn2_b64
85- define amdgpu_kernel void @scalar_orn2_i64_one_use_sgpr (
86- ptr addrspace (1 ) %r0 , i64 inreg %a , i64 inreg %b ) {
79+ define i64 @scalar_orn2_i64_one_use_sgpr (i64 inreg %a , i64 inreg %b ) {
8780entry:
8881 %nb = xor i64 %b , -1
89- %r0.val = or i64 %a , %nb
90- store i64 %r0.val , ptr addrspace (1 ) %r0
91- ret void
82+ %or = or i64 %a , %nb
83+ ret i64 %or ;
9284}
9385
9486; GCN-LABEL: {{^}}vector_andn2_i32_s_v_one_use
0 commit comments