1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/test/CodeGen/AMDGPU/swdev282079.ll
Matt Arsenault 182934f750 AMDGPU: Fix assert on inline asm on gfx90a
This was assuming all mayLoad instructions have one def.
2021-04-23 09:00:25 -04:00

14 lines
434 B
LLVM

; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a < %s
define protected amdgpu_kernel void @foo(i64 addrspace(1)* %arg, i64 addrspace(1)* %arg1) {
bb:
%tmp = addrspacecast i64* addrspace(5)* null to i64**
%tmp2 = call i64 @eggs(i64* undef) #1
%tmp3 = load i64*, i64** %tmp, align 8
%tmp4 = getelementptr inbounds i64, i64* %tmp3, i64 undef
store i64 %tmp2, i64* %tmp4, align 8
ret void
}
declare hidden i64 @eggs(i64*)