brintos

brintos / llvm-project-archived public Read only

0
0
Text · 494 B · fafc195 Raw
20 lines · plain
1; RUN: llc -mtriple=arm64-apple-ios %s -o - | FileCheck %s2; RUN: llc -mtriple=arm64-apple-ios -global-isel %s -o - | FileCheck %s3 4define void @test_ubsantrap() {5; CHECK-LABEL: test_ubsantrap6; CHECK: brk #0x550c7  call void @llvm.ubsantrap(i8 12)8  ret void9}10 11define void @test_ubsantrap_function() {12; CHECK-LABEL: test_ubsantrap_function:13; CHECK: mov w0, #1214; CHECK: bl _wibble15  call void @llvm.ubsantrap(i8 12) "trap-func-name"="wibble"16  ret void17}18 19declare void @llvm.ubsantrap(i8)20