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: .* \(PROTECTED\)}}
5 # CHECK-NEXT: tiny.cc:9
7 # CHECK: Expected Protected: 1 (100.00%)
8 # CHECK: Unexpected Protected: 0 (0.00%)
9 # CHECK: Expected Unprotected: 0 (0.00%)
10 # CHECK: Unexpected Unprotected (BAD): 0 (0.00%)
13 # int a() { return 42; }
14 # int b() { return 137; }
15 # int main(int argc, char** argv) {
26 .type _Z1av.cfi,@function
29 .file 1 "/tmp/tiny.cc"
32 .loc 1 1 11 prologue_end
37 .size _Z1av.cfi, .Lfunc_end0-_Z1av.cfi
41 .type _Z1bv.cfi,@function
46 .loc 1 2 11 prologue_end
51 .size _Z1bv.cfi, .Lfunc_end1-_Z1bv.cfi
61 stp x29
, x30
, [sp
, #32]
70 .loc 1 5 7 prologue_end
76 add x8
, x8
, :lo12
:_Z1av
84 add x8
, x8
, :lo12
:_Z1bv
89 adrp x8
, .L.cfi.jumptable
90 add x9
, x8
, :lo12
:.L.cfi.jumptable
95 orr x9
, x10
, x9
, lsl
#62
102 ldp x29
, x30
, [sp
, #32]
107 .size main, .Lfunc_end2-main
111 .type .L.cfi.jumptable,@function
121 .size .L.cfi.jumptable, .Lfunc_end3-.L.cfi.jumptable
124 .type .L__unnamed_1,@object
125 .section .rodata,"a",@progbits
128 .size .L__unnamed_1, 0
130 .section .debug_str,"MS",@progbits,1
132 .asciz "clang version 7.0.0 (trunk 335774) (llvm/trunk 335775)"
137 .section .debug_abbrev,"",@progbits
158 .section .debug_info,"",@progbits
168 .word .Lline_table_start0
171 .word .Lfunc_end2-.Lfunc_begin0
172 .section .debug_ranges,"",@progbits
173 .section .debug_macinfo,"",@progbits
176 .type _Z1av,@function
177 .set _Z1av, .L.cfi.jumptable
178 .type _Z1bv,@function
179 .set _Z1bv, .L.cfi.jumptable+4
180 .ident "clang version 7.0.0 (trunk 335774) (llvm/trunk 335775)"
181 .section ".note.GNU-stack","",@progbits
182 .section .debug_line,"",@progbits