Home | History | Annotate | Download | only in X86
      1 # RUN: yaml2obj -format=elf %s | llvm-objdump -d -yaml-cfg=%t - && FileCheck --check-prefix=CFG < %t %s
      2 # REQUIRES: shell
      3 #
      4 # Generated from:
      5 # main:
      6 # .LBL0_1:
      7 # 	movq	8(%rsi), %rax
      8 # 	<invalid opcode: 06>
      9 # 	nop
     10 
     11 !ELF
     12 FileHeader:
     13   Class: ELFCLASS64
     14   Data: ELFDATA2LSB
     15   Type: ET_REL
     16   Machine: EM_X86_64
     17 Sections:
     18   - Name: .text
     19     Type: SHT_PROGBITS
     20     Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
     21     Content: "488B46080690"
     22 
     23 ## 0000000000000000 <main>:
     24 
     25 #CFG: Atoms:
     26 #CFG:   - StartAddress:    0x0000000000000000
     27 #CFG:     Size:            4
     28 #CFG:     Type:            Text
     29 
     30 ##    0:   48 8b 46 08             mov    0x8(%rsi),%rax
     31 #CFG:       - Inst:            MOV64rm
     32 #CFG:         Size:            4
     33 #CFG:         Ops:             [ RRAX, RRSI, I1, R, I8, R ]
     34 
     35 
     36 #CFG:   - StartAddress:    0x0000000000000004
     37 #CFG:     Size:            1
     38 #CFG:     Type:            Data
     39 
     40 ##    4:   06                      (bad)
     41 #CFG:     Content:         '06'
     42 
     43 #CFG:   - StartAddress:    0x0000000000000005
     44 #CFG:     Size:            1
     45 #CFG:     Type:            Text
     46 
     47 ##    5:   90                      nop
     48 #CFG:       - Inst:            NOOP
     49 #CFG:         Size:            1
     50 #CFG:         Ops:             [  ]
     51 
     52 Symbols:
     53   Global:
     54     - Name: main
     55       Type: STT_FUNC
     56       Section: .text
     57       Value: 0x0
     58       Size: 6
     59