1 ; RUN: llc < %s -mtriple=arm-unknown-unknown | FileCheck %s -check-prefix=NOOPTION
2 ; RUN: llc < %s -mtriple=arm-unknown-unknown -trap-func=trap_llc | FileCheck %s -check-prefix=TRAP
4 ; NOOPTION-LABEL: {{\_?}}foo0:
7 ; TRAP-LABEL: {{\_?}}foo0:
8 ; TRAP: bl {{\_?}}trap_llc
11 call void @llvm.trap()
15 ; NOOPTION-LABEL: {{\_?}}foo1:
16 ; NOOPTION: bl {{\_?}}trap_func_attr0
18 ; TRAP-LABEL: {{\_?}}foo1:
19 ; TRAP: bl {{\_?}}trap_llc
22 call void @llvm.trap() #0
26 ; NOOPTION-LABEL: {{\_?}}foo2:
27 ; NOOPTION: bl {{\_?}}trap_func_attr1
29 ; TRAP-LABEL: {{\_?}}foo2:
30 ; TRAP: bl {{\_?}}trap_llc
33 call void @llvm.trap() #1
37 declare void @llvm.trap() nounwind
39 attributes #0 = { "trap-func-name"="trap_func_attr0" }
40 attributes #1 = { "trap-func-name"="trap_func_attr1" }