Home | History | Annotate | Download | only in X86
      1 // RUN: yaml2obj -o %t.out %p/Inputs/simple-executable-x86_64.yaml 
      2 // RUN: llvm-objdump -d %t.out --start-address=0x18 --stop-address=0x2f | FileCheck %s 
      3 // RUN: llvm-objdump -d %t.out --start-address=0xc --stop-address=0x11 | FileCheck %s --check-prefix "CROSSSECTION"
      4 // RUN: llvm-objdump -d %t.out --start-address=0x40 --stop-address=0x47 | FileCheck %s --check-prefix "CROSSDATA"
      5 
      6 // CHECK:              Disassembly of section .anothertext:
      7 // CHECK-NEXT:         main:
      8 // CHECK-NEXT:         18:	48 8d 04 25 a8 00 00 00 	leaq	168, %rax
      9 // CHECK-NEXT:         20:	c7 45 fc 00 00 00 00 	movl	$0, -4(%rbp)
     10 // CHECK-NEXT:         27:	48 89 45 f0 	movq	%rax, -16(%rbp)
     11 // CHECK-NEXT:         2b:	48 8b 45 f0 	movq	-16(%rbp), %rax
     12 // CHECK-NOT:          2f:
     13 
     14 // CROSSSECTION:       Disassembly of section .text:
     15 // CROSSSECTION-NEXT:  foo:
     16 // CROSSSECTION-NEXT:  c:	c3 	retq
     17 // CROSSSECTION-NEXT:  d:	0f 1f 00 	nopl	(%rax)
     18 // CROSSSECTION-NEXT:  Disassembly of section .anothertext:
     19 // CROSSSECTION-NEXT:  main:
     20 // CROSSSECTION-NEXT:  10:	55 	pushq	%rbp
     21 // CROSSSECTION-NOT:   11:
     22 
     23 // CROSSDATA:          Disassembly of section .anothertext:
     24 // CROSSDATA:          main:
     25 // CROSSDATA:          40:	48 83 c4 20 	addq	$32, %rsp
     26 // CROSSDATA:          44:	5d 	popq	%rbp
     27 // CROSSDATA-DAG:      somedata:
     28 // CROSSDATA-NEXT:     45:	 74 65                           te
     29 
     30