1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2024-12-15 04:30:12 +00:00
llvm-6502/test/Object/X86/objdump-cfg-invalid-opcode.yaml
Filipe Cabecinhas c657a09ea6 Revert "YAMLIO: Encode ambiguous hex strings explicitly"
This reverts commit r205839.

It broke several tests in lld.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205857 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-09 14:35:17 +00:00

59 lines
1.3 KiB
YAML

# RUN: yaml2obj -format=elf %s | llvm-objdump -d -yaml-cfg=%t - && FileCheck --check-prefix=CFG < %t %s
# REQUIRES: shell
#
# Generated from:
# main:
# .LBL0_1:
# movq 8(%rsi), %rax
# <invalid opcode: 06>
# nop
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Content: "488B46080690"
## 0000000000000000 <main>:
#CFG: Atoms:
#CFG: - StartAddress: 0x0000000000000000
#CFG: Size: 4
#CFG: Type: Text
## 0: 48 8b 46 08 mov 0x8(%rsi),%rax
#CFG: - Inst: MOV64rm
#CFG: Size: 4
#CFG: Ops: [ RRAX, RRSI, I1, R, I8, R ]
#CFG: - StartAddress: 0x0000000000000004
#CFG: Size: 1
#CFG: Type: Data
## 4: 06 (bad)
#CFG: Content: 06
#CFG: - StartAddress: 0x0000000000000005
#CFG: Size: 1
#CFG: Type: Text
## 5: 90 nop
#CFG: - Inst: NOOP
#CFG: Size: 1
#CFG: Ops: [ ]
Symbols:
Global:
- Name: main
Type: STT_FUNC
Section: .text
Value: 0x0
Size: 6