summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/inline-calls.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-28 00:40:32 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-28 00:40:32 +0000
commit5d567dc137d20a9d9654076fbdab8ceddb6748dc (patch)
tree534574f474432e9994f8a43feb77446ffdbed183 /llvm/test/CodeGen/AMDGPU/inline-calls.ll
parent2fc498a652dc66d99b6581e295e4f020142e3304 (diff)
downloadbcm5719-llvm-5d567dc137d20a9d9654076fbdab8ceddb6748dc.tar.gz
bcm5719-llvm-5d567dc137d20a9d9654076fbdab8ceddb6748dc.zip
AMDGPU: Enable function calls by default
Fixes some crashes on illegal call situations which are unfortunately still valid IR. llvm-svn: 355051
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/inline-calls.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/inline-calls.ll11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/inline-calls.ll b/llvm/test/CodeGen/AMDGPU/inline-calls.ll
index 924cd1f11c5..233485a2020 100644
--- a/llvm/test/CodeGen/AMDGPU/inline-calls.ll
+++ b/llvm/test/CodeGen/AMDGPU/inline-calls.ll
@@ -2,15 +2,15 @@
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck %s
; RUN: llc -march=r600 -mcpu=redwood -verify-machineinstrs < %s | FileCheck %s
-; CHECK-NOT: {{^}}func:
+; ALL-NOT: {{^}}func:
define internal i32 @func(i32 %a) {
entry:
%tmp0 = add i32 %a, 1
ret i32 %tmp0
}
-; CHECK: {{^}}kernel:
-; CHECK-NOT: call
+; ALL: {{^}}kernel:
+; GCN-NOT: s_swappc_b64
define amdgpu_kernel void @kernel(i32 addrspace(1)* %out) {
entry:
%tmp0 = call i32 @func(i32 1)
@@ -19,10 +19,11 @@ entry:
}
; CHECK-NOT: func_alias
+; ALL-NOT: func_alias
@func_alias = alias i32 (i32), i32 (i32)* @func
-; CHECK: {{^}}kernel3:
-; CHECK-NOT: call
+; ALL: {{^}}kernel3:
+; GCN-NOT: s_swappc_b64
define amdgpu_kernel void @kernel3(i32 addrspace(1)* %out) {
entry:
%tmp0 = call i32 @func_alias(i32 1)
OpenPOWER on IntegriCloud