From 5d567dc137d20a9d9654076fbdab8ceddb6748dc Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 28 Feb 2019 00:40:32 +0000 Subject: AMDGPU: Enable function calls by default Fixes some crashes on illegal call situations which are unfortunately still valid IR. llvm-svn: 355051 --- llvm/test/CodeGen/AMDGPU/inline-calls.ll | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'llvm/test/CodeGen/AMDGPU/inline-calls.ll') 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) -- cgit v1.2.3