llvm-for-llvmta/test/CodeGen/AArch64/GlobalISel/ubsantrap.ll

12 lines
286 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -mtriple=arm64-apple-ios %s -o - -global-isel -global-isel-abort=1 | FileCheck %s
define void @test_ubsantrap() {
; CHECK-LABEL: test_ubsantrap
; CHECK: brk #0x550c
; CHECK-GISEL: brk #0x550c
call void @llvm.ubsantrap(i8 12)
ret void
}
declare void @llvm.ubsantrap(i8)