1 ; RUN: llc -global-isel=0 -amdgpu-fixed-function-abi=0 -mtriple=amdgcn-amd-amdhsa < %s | FileCheck -check-prefixes=GCN,SDAG %s
2 ; RUN: llc -global-isel=1 -amdgpu-fixed-function-abi=1 -mtriple=amdgcn-amd-amdhsa < %s | FileCheck -check-prefixes=GCN,GISEL %s
4 ; GCN-LABEL: {{^}}test_call_undef:
6 define amdgpu_kernel void @test_call_undef() #0 {
7 %val = call i32 undef(i32 1)
9 store volatile i32 %op, i32 addrspace(1)* undef
13 ; GCN-LABEL: {{^}}test_tail_call_undef:
15 ; SDAG-NEXT: .Lfunc_end
17 ; GISEL: s_setpc_b64 s{{\[[0-9]+:[0-9]+\]}}
18 define i32 @test_tail_call_undef() #0 {
19 %call = tail call i32 undef(i32 1)
23 ; GCN-LABEL: {{^}}test_call_null:
24 ; GISEL: s_swappc_b64 s{{\[[0-9]+:[0-9]+\]}}, 0{{$}}
26 define amdgpu_kernel void @test_call_null() #0 {
27 %val = call i32 null(i32 1)
29 store volatile i32 %op, i32 addrspace(1)* null
33 ; GCN-LABEL: {{^}}test_tail_call_null:
35 ; SDAG-NEXT: .Lfunc_end
37 ; GISEL: s_setpc_b64 s{{\[[0-9]+:[0-9]+\]$}}
38 define i32 @test_tail_call_null() #0 {
39 %call = tail call i32 null(i32 1)