67 lines · plain
1# RUN: llvm-mc -triple x86_64 %s -o - | FileCheck %s --check-prefix=ASM2# RUN: llvm-mc -triple x86_64 %s -filetype=obj -o %t3# RUN: llvm-readelf -SsX -x data %t | FileCheck %s4# RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=DIS5 6# ASM: .section .text,"ax",@progbits,unique,42949672937# ASM: f:8 9# ASM: .section .text,"ax",@progbits,unique,429496729410# ASM: g:11 12# CHECK: Name Type Address Off Size ES Flg Lk Inf Al13# CHECK: text PROGBITS 0000000000000000 {{.*}} 000000 00 AX 0 0 414# CHECK-NEXT: .text PROGBITS 0000000000000000 {{.*}} 000004 00 AX 0 0 115# CHECK-NEXT: .text PROGBITS 0000000000000000 {{.*}} 000001 00 AX 0 0 116 17# CHECK: 0000000000000001 0 NOTYPE LOCAL DEFAULT 3 (.text) f218# CHECK-NEXT: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 3 (.text) f19# CHECK-NEXT: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 4 (.text) g20 21# CHECK: Hex dump of section 'data':22# CHECK-NEXT: 0x00000000 03000000 06000000 .23# CHECK-EMPTY:24# CHECK-NEXT: Hex dump of section 'data':25# CHECK-NEXT: 0x00000000 04000000 .26 27# DIS: Disassembly of section .text:28# DIS-EMPTY:29# DIS-NEXT: 0000000000000000 <f>:30# DIS-NEXT: 0: 90 nop31# DIS-EMPTY:32# DIS-NEXT: 0000000000000001 <f2>:33# DIS-NEXT: 1: 90 nop34# DIS-NEXT: 2: cc int335# DIS-NEXT: 3: cc int336# DIS-EMPTY:37# DIS-NEXT: Disassembly of section .text:38# DIS-EMPTY:39# DIS-NEXT: 0000000000000000 <g>:40# DIS-NEXT: 0: 90 nop41 42 .section .text,"ax",@progbits,unique, 429496729343 .globl f44f:45 nop46 47 .section .text,"ax",@progbits,unique, 429496729448 .globl g49g:50 nop51 52.section .text,"ax",@progbits, unique, 429496729353f2:54 nop55 56.pushsection data,"a",@progbits,unique,357.long 358.popsection59int360.pushsection data,"a",@progbits,unique,461.long 462.popsection63.pushsection data,"a",@progbits,unique,364.long 665.popsection66int367