1 # RUN: llvm-mc %S/Inputs/protected-lineinfo.s -filetype obj \
2 # RUN: -triple x86_64-linux-elf -o %t.o
3 # RUN: llvm-cfi-verify -print-graphs %t.o | FileCheck %s
5 # The expected output is as follows:
6 # ----------------- Begin Instruction -----------------
7 # PROTECTED 0x7b: callq *%rax
9 # "0x77: jbe 2" -> "0x7b: callq *%rax"
10 # "0x77: jbe 2" -> "0x79: ud2"
12 # 0x7b = tiny.cc:11:3 (main)
14 # CHECK-LABEL: {{^Instruction: .* \(PROTECTED\):.*callq +\*%rax}}
16 # CHECK-NEXT: {{^.*jbe.*->.*callq \*%rax}}
17 # CHECK-NEXT: {{^.*jbe.*->.*ud2}}
19 # CHECK-NEXT: tiny.cc:11