
RFC: https://discourse.llvm.org/t/rfc-add-llvm-experimental-hot-intrinsic-or-llvm-hot/77641
31 lines
969 B
LLVM
31 lines
969 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: llc < %s -mtriple=aarch64 -global-isel=0 -fast-isel=0 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=aarch64 -global-isel=1 -fast-isel=0 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=aarch64 -global-isel=0 -fast-isel=1 | FileCheck %s
|
|
|
|
target triple = "aarch64-linux"
|
|
|
|
define i1 @test_runtime() local_unnamed_addr {
|
|
; CHECK-LABEL: test_runtime:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w0, #1 // =0x1
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%allow = call i1 @llvm.allow.runtime.check(metadata !"test_check")
|
|
ret i1 %allow
|
|
}
|
|
|
|
declare i1 @llvm.allow.runtime.check(metadata) nounwind
|
|
|
|
define i1 @test_ubsan() local_unnamed_addr {
|
|
; CHECK-LABEL: test_ubsan:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: mov w0, #1 // =0x1
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%allow = call i1 @llvm.allow.ubsan.check(i8 7)
|
|
ret i1 %allow
|
|
}
|
|
|
|
declare i1 @llvm.allow.ubsan.check(i8) nounwind
|