Skip to content

Commit 2aa5bbc

Browse files
Update AMDGPU tests
1 parent 9ed8f93 commit 2aa5bbc

File tree

2 files changed

+201
-180
lines changed

2 files changed

+201
-180
lines changed

llvm/test/CodeGen/AMDGPU/and.ll

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,13 @@ define amdgpu_kernel void @s_and_i64(ptr addrspace(1) %out, i64 %a, i64 %b) {
176176

177177
; FUNC-LABEL: {{^}}s_and_i1:
178178
; SI: s_load_dword [[LOAD:s[0-9]+]]
179-
; SI: s_lshr_b32 [[B_SHIFT:s[0-9]+]], [[LOAD]], 8
180-
; SI: s_and_b32 [[AND:s[0-9]+]], [[LOAD]], [[B_SHIFT]]
181-
; SI: s_and_b32 [[AND_TRUNC:s[0-9]+]], [[AND]], 1{{$}}
182-
; SI: v_mov_b32_e32 [[V_AND_TRUNC:v[0-9]+]], [[AND_TRUNC]]
183-
; SI: buffer_store_byte [[V_AND_TRUNC]]
179+
; SI: s_bitcmp1_b32 [[LOAD]], 0
180+
; SI: s_cselect_b64 [[SEL1:s\[[0-9]+:[0-9]+\]]], -1, 0
181+
; SI: s_bitcmp1_b32 [[LOAD]], 8
182+
; SI: s_cselect_b64 [[SEL2:s\[[0-9]+:[0-9]+\]]], -1, 0
183+
; SI: s_and_b64 [[SEL1]], [[SEL1]], [[SEL2]]
184+
; SI: v_cndmask_b32_e64 [[V:v[0-9]+]], 0, 1, [[SEL1]]
185+
; SI: buffer_store_byte [[V]]
184186
define amdgpu_kernel void @s_and_i1(ptr addrspace(1) %out, i1 %a, i1 %b) {
185187
%and = and i1 %a, %b
186188
store i1 %and, ptr addrspace(1) %out

0 commit comments

Comments
 (0)