[LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)
[llvm-project.git] / llvm / test / CodeGen / AArch64 / allow-check.ll
blob9e4a47357906c63d46b36595de98b486073ff0ff
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc < %s -mtriple=aarch64 -global-isel=0 -fast-isel=0 | FileCheck %s
3 ; RUN: llc < %s -mtriple=aarch64 -global-isel=1 -fast-isel=0 | FileCheck %s
4 ; RUN: llc < %s -mtriple=aarch64 -global-isel=0 -fast-isel=1 | FileCheck %s
6 target triple = "aarch64-linux"
8 define i1 @test_runtime() local_unnamed_addr {
9 ; CHECK-LABEL: test_runtime:
10 ; CHECK:       // %bb.0: // %entry
11 ; CHECK-NEXT:    mov w0, #1 // =0x1
12 ; CHECK-NEXT:    ret
13 entry:
14   %allow = call i1 @llvm.allow.runtime.check(metadata !"test_check")
15   ret i1 %allow
18 declare i1 @llvm.allow.runtime.check(metadata) nounwind
20 define i1 @test_ubsan() local_unnamed_addr {
21 ; CHECK-LABEL: test_ubsan:
22 ; CHECK:       // %bb.0: // %entry
23 ; CHECK-NEXT:    mov w0, #1 // =0x1
24 ; CHECK-NEXT:    ret
25 entry:
26   %allow = call i1 @llvm.allow.ubsan.check(i8 7)
27   ret i1 %allow
30 declare i1 @llvm.allow.ubsan.check(i8) nounwind