1 # RUN: llvm-mc %s -filetype obj -triple aarch64-- -o %t.o
2 # RUN: llvm-cfi-verify %t.o | FileCheck %s
4 # CHECK-LABEL: {{^Instruction: .* \(FAIL_BAD_CONDITIONAL_BRANCH\)}}
5 # CHECK-NEXT: tiny.cc:9
7 # CHECK: Expected Protected: 0 (0.00%)
8 # CHECK: Unexpected Protected: 0 (0.00%)
9 # CHECK: Expected Unprotected: 0 (0.00%)
10 # CHECK: Unexpected Unprotected (BAD): 1 (100.00%)
13 # int a() { return 42; }
14 # int b() { return 137; }
15 # int main(int argc, char** argv) {
24 # clang++ -target aarch64-- -gmlt tiny.cc -S -o tiny.s
33 .loc 1 1 0 // tiny.cc:1:0
38 .loc 1 1 11 prologue_end // tiny.cc:1:11
42 .size _Z1av, .Lfunc_end0-_Z1av
50 .loc 1 2 0 // tiny.cc:2:0
55 .loc 1 2 11 prologue_end // tiny.cc:2:11
59 .size _Z1bv, .Lfunc_end1-_Z1bv
67 .loc 1 3 0 // tiny.cc:3:0
70 sub sp
, sp
, #48 // =48
71 stp x29
, x30
, [sp
, #32] // 8-byte Folded Spill
72 add x29
, sp
, #32 // =32
83 .loc 1 5 7 prologue_end // tiny.cc:5:7
88 .loc 1 0 7 is_stmt 0 // tiny.cc:0:7
90 add x8
, x8
, :lo12
:_Z1av
91 .loc 1 6 9 is_stmt 1 // tiny.cc:6:9
93 .loc 1 6 5 is_stmt 0 // tiny.cc:6:5
96 .loc 1 0 5 // tiny.cc:0:5
98 add x8
, x8
, :lo12
:_Z1bv
99 .loc 1 8 9 is_stmt 1 // tiny.cc:8:9
102 .loc 1 9 10 // tiny.cc:9:10
105 .loc 1 9 3 is_stmt 0 // tiny.cc:9:3
106 ldp x29
, x30
, [sp
, #32] // 8-byte Folded Reload
107 add sp
, sp
, #48 // =48
111 .size main, .Lfunc_end2-main
114 .section .debug_str,"MS",@progbits,1
116 .asciz "clang version 4.0.1-10 (tags/RELEASE_401/final)" // string offset=0
118 .asciz "tiny.cc" // string offset=48
120 .asciz "/tmp" // string offset=56
121 .section .debug_loc,"",@progbits
122 .section .debug_abbrev,"",@progbits
124 .byte 1 // Abbreviation Code
125 .byte 17 // DW_TAG_compile_unit
126 .byte 0 // DW_CHILDREN_no
127 .byte 37 // DW_AT_producer
128 .byte 14 // DW_FORM_strp
129 .byte 19 // DW_AT_language
130 .byte 5 // DW_FORM_data2
131 .byte 3 // DW_AT_name
132 .byte 14 // DW_FORM_strp
133 .byte 16 // DW_AT_stmt_list
134 .byte 23 // DW_FORM_sec_offset
135 .byte 27 // DW_AT_comp_dir
136 .byte 14 // DW_FORM_strp
137 .byte 17 // DW_AT_low_pc
138 .byte 1 // DW_FORM_addr
139 .byte 18 // DW_AT_high_pc
140 .byte 6 // DW_FORM_data4
144 .section .debug_info,"",@progbits
147 .word 38 // Length of Unit
148 .hword 4 // DWARF version number
149 .word .Lsection_abbrev // Offset Into Abbrev. Section
150 .byte 8 // Address Size (in bytes)
151 .byte 1 // Abbrev [1] 0xb:0x1f DW_TAG_compile_unit
152 .word .Linfo_string0 // DW_AT_producer
153 .hword 4 // DW_AT_language
154 .word .Linfo_string1 // DW_AT_name
155 .word .Lline_table_start0 // DW_AT_stmt_list
156 .word .Linfo_string2 // DW_AT_comp_dir
157 .xword .Lfunc_begin0 // DW_AT_low_pc
158 .word .Lfunc_end2-.Lfunc_begin0 // DW_AT_high_pc
159 .section .debug_ranges,"",@progbits
161 .section .debug_macinfo,"",@progbits
164 .byte 0 // End Of Macro List Mark
166 .ident "clang version 4.0.1-10 (tags/RELEASE_401/final)"
167 .section ".note.GNU-stack","",@progbits
168 .section .debug_line,"",@progbits