brintos

brintos / llvm-project-archived public Read only

0
0
Text · 969 B · 9e4a473 Raw
31 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; RUN: llc < %s -mtriple=aarch64 -global-isel=0 -fast-isel=0 | FileCheck %s3; RUN: llc < %s -mtriple=aarch64 -global-isel=1 -fast-isel=0 | FileCheck %s4; RUN: llc < %s -mtriple=aarch64 -global-isel=0 -fast-isel=1 | FileCheck %s5 6target triple = "aarch64-linux"7 8define i1 @test_runtime() local_unnamed_addr {9; CHECK-LABEL: test_runtime:10; CHECK:       // %bb.0: // %entry11; CHECK-NEXT:    mov w0, #1 // =0x112; CHECK-NEXT:    ret13entry:14  %allow = call i1 @llvm.allow.runtime.check(metadata !"test_check")15  ret i1 %allow16}17 18declare i1 @llvm.allow.runtime.check(metadata) nounwind19 20define i1 @test_ubsan() local_unnamed_addr {21; CHECK-LABEL: test_ubsan:22; CHECK:       // %bb.0: // %entry23; CHECK-NEXT:    mov w0, #1 // =0x124; CHECK-NEXT:    ret25entry:26  %allow = call i1 @llvm.allow.ubsan.check(i8 7)27  ret i1 %allow28}29 30declare i1 @llvm.allow.ubsan.check(i8) nounwind31