1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc < %s -mtriple=amdgcn-amd-mesa3d -global-isel=0 -fast-isel=0 | FileCheck %s
3 ; RUN: llc < %s -mtriple=amdgcn-amd-mesa3d -global-isel=1 -fast-isel=0 | FileCheck %s
4 ; RUN: llc < %s -mtriple=amdgcn-amd-mesa3d -global-isel=0 -fast-isel=1 | FileCheck %s
6 define i1 @test_runtime() local_unnamed_addr {
7 ; CHECK-LABEL: test_runtime:
8 ; CHECK: ; %bb.0: ; %entry
9 ; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
10 ; CHECK-NEXT: v_mov_b32_e32 v0, 1
11 ; CHECK-NEXT: s_setpc_b64 s[30:31]
13 %allow = call i1 @llvm.allow.runtime.check(metadata !"test_check")
17 declare i1 @llvm.allow.runtime.check(metadata) nounwind
19 define i1 @test_ubsan() local_unnamed_addr {
20 ; CHECK-LABEL: test_ubsan:
21 ; CHECK: ; %bb.0: ; %entry
22 ; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
23 ; CHECK-NEXT: v_mov_b32_e32 v0, 1
24 ; CHECK-NEXT: s_setpc_b64 s[30:31]
26 %allow = call i1 @llvm.allow.ubsan.check(i8 7)
30 declare i1 @llvm.allow.ubsan.check(i8) nounwind