brintos

brintos / llvm-project-archived public Read only

0
0
Text · 923 B · 3c4e32f Raw
28 lines · plain
1; RUN: llc -mtriple=aarch64-windows %s -o -| FileCheck %s2; RUN: llc -mtriple=aarch64-windows -fast-isel %s -o - | FileCheck %s --check-prefix=FASTISEL3; RUN: llc -mtriple=aarch64-windows -global-isel %s -o - | FileCheck %s4; RUN: llc -mtriple=aarch64-linux-gnu %s -o -| FileCheck %s5; RUN: llc -mtriple=arm64-apple-ios -global-isel %s -o - | FileCheck %s6; RUN: llc -mtriple=arm64-apple-macosx -fast-isel %s -o - | FileCheck %s --check-prefix=FASTISEL7 8; CHECK-LABEL: test1:9; CHECK: brk #0xf00010; FASTISEL: brk #0xf00011define void @test1() noreturn nounwind  {12entry:13  tail call void @llvm.debugtrap( )14  ret void15}16 17declare void @llvm.debugtrap() nounwind 18 19; CHECK-LABEL: test_trap_func:20; CHECK: bl {{.*}}wibble21 22; FastISel doesn't handle trap-func-name for debugtrap.23; FASTISEL: brk24define void @test_trap_func() noreturn nounwind  {25entry:26  tail call void @llvm.debugtrap( ) "trap-func-name"="wibble"27  ret void28}