xref: /llvm-project/llvm/test/CodeGen/Generic/allow-check.ll (revision 27b5dc422cd3dc15b3d4410ba910d4b12272384d)
1; Avoid `!DL->isLittleEndian() && !CLI->enableBigEndian()` missmatch on PPC64BE.
2; REQUIRES: target-byteorder-little-endian
3
4; -global-isel=1 is unsupported.
5; XFAIL: target=loongarch{{.*}}
6; XFAIL: target=nvptx{{.*}}
7; XFAIL: target=sparc{{.*}}
8; XFAIL: target=hexagon-{{.*}}
9
10; RUN: llc < %s -O3 -global-isel=0 -fast-isel=0
11; RUN: llc < %s -O3 -global-isel=1 -fast-isel=0
12; RUN: llc < %s -O3 -global-isel=0 -fast-isel=1
13
14; RUN: llc < %s -O0 -global-isel=0 -fast-isel=0
15; RUN: llc < %s -O0 -global-isel=1 -fast-isel=0
16; RUN: llc < %s -O0 -global-isel=0 -fast-isel=1
17
18define i1 @test_runtime() local_unnamed_addr {
19entry:
20  %allow = call i1 @llvm.allow.runtime.check(metadata !"test_check")
21  ret i1 %allow
22}
23
24declare i1 @llvm.allow.runtime.check(metadata) nounwind
25
26define i1 @test_ubsan() local_unnamed_addr {
27entry:
28  %allow = call i1 @llvm.allow.ubsan.check(i8 7)
29  ret i1 %allow
30}
31
32declare i1 @llvm.allow.ubsan.check(i8) nounwind
33