summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/GlobalISel
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-10-01 01:44:46 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-10-01 01:44:46 +0000
commit8f6bdb76684fdb053166f6fa615a109bfc535709 (patch)
tree6e3caad7596fcc02f6cc2eedc741bd9eb3c800c0 /llvm/test/CodeGen/AMDGPU/GlobalISel
parentf24ac13aaae63d92317dac839ce57857a7b444dc (diff)
downloadbcm5719-llvm-8f6bdb76684fdb053166f6fa615a109bfc535709.tar.gz
bcm5719-llvm-8f6bdb76684fdb053166f6fa615a109bfc535709.zip
AMDGPU/GlobalISel: Avoid creating shift of 0 in arg lowering
This is sort of papering over the fact that we don't run a combiner anywhere, but avoiding creating 2 instructions in the first place is easy. llvm-svn: 373293
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/GlobalISel')
-rw-r--r--llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll b/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll
index fb5f881ad85..946a138bee4 100644
--- a/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll
+++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll
@@ -89,7 +89,7 @@ bb2:
}
; ALL-LABEL: {{^}}test_workitem_id_x_func:
-; ALL: v_lshrrev_b32_e32 v2, 0, v2
+; ALL: s_waitcnt
; ALL-NEXT: v_and_b32_e32 v2, 0x3ff, v2
define void @test_workitem_id_x_func(i32 addrspace(1)* %out) #1 {
%id = call i32 @llvm.amdgcn.workitem.id.x()
OpenPOWER on IntegriCloud