diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-03 23:24:05 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-03 23:24:05 +0000 |
commit | a202538bfa722d0b2392de691213ede0aa477680 (patch) | |
tree | 756409cae84ba16bb737b279d9a830b9883d2042 /llvm/test/CodeGen/AMDGPU/private-memory-broken.ll | |
parent | 817c253e60c50b897238a9831034c37d9d352b81 (diff) | |
download | bcm5719-llvm-a202538bfa722d0b2392de691213ede0aa477680.tar.gz bcm5719-llvm-a202538bfa722d0b2392de691213ede0aa477680.zip |
AMDGPU: Remove error on calls for amdgcn
Repurpose the -amdgpu-function-calls flag. Rather
than require it to emit a call, only use it to
run the always inline path or not.
llvm-svn: 310003
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/private-memory-broken.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/private-memory-broken.ll | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/private-memory-broken.ll b/llvm/test/CodeGen/AMDGPU/private-memory-broken.ll deleted file mode 100644 index 9b5f655f1b5..00000000000 --- a/llvm/test/CodeGen/AMDGPU/private-memory-broken.ll +++ /dev/null @@ -1,21 +0,0 @@ -; RUN: not llc -verify-machineinstrs -march=amdgcn %s -o /dev/null 2>&1 | FileCheck %s -; RUN: not llc -verify-machineinstrs -march=amdgcn -mcpu=tonga %s -o /dev/null 2>&1 | FileCheck %s - -; Make sure promote alloca pass doesn't crash - -; CHECK: unsupported call - -declare i32 @foo(i32*) nounwind - -define amdgpu_kernel void @call_private(i32 addrspace(1)* %out, i32 %in) nounwind { -entry: - %tmp = alloca [2 x i32] - %tmp1 = getelementptr [2 x i32], [2 x i32]* %tmp, i32 0, i32 0 - %tmp2 = getelementptr [2 x i32], [2 x i32]* %tmp, i32 0, i32 1 - store i32 0, i32* %tmp1 - store i32 1, i32* %tmp2 - %tmp3 = getelementptr [2 x i32], [2 x i32]* %tmp, i32 0, i32 %in - %val = call i32 @foo(i32* %tmp3) nounwind - store i32 %val, i32 addrspace(1)* %out - ret void -} |