brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 124dc06 Raw
41 lines · plain
1# RUN: llvm-mc -triple i686-pc-win32 < %s -show-encoding \2# RUN:     | FileCheck -check-prefix=ASM %s3# RUN: llvm-mc -triple i686-pc-win32 < %s -show-encoding \4# RUN:     -filetype=obj | llvm-readobj --sections --section-data -r - | \5# RUN:     FileCheck -check-prefix=OBJ-32 %s6# RUN: llvm-mc -triple x86_64-pc-win32 < %s -show-encoding \7# RUN:     -filetype=obj | llvm-readobj --sections --section-data -r - | \8# RUN:     FileCheck -check-prefix=OBJ-64 %s9	.text10foo:11	.reloc .+4, dir32,    foo          # ASM: .reloc {{.*}}+4, dir32, foo12	.reloc .+0, secrel32, foo+4        # ASM: .reloc {{.*}}+0, secrel32, foo+413	.reloc .+8, secidx,   foo+8        # ASM: .reloc {{.*}}+8, secidx, foo+814	.reloc .+12, dir32,   foo@secrel32 # ASM: .reloc {{.*}}+12, dir32, foo@SECREL3215	.reloc .+16, dir32,   foo@imgrel   # ASM: .reloc {{.*}}+16, dir32, foo@IMGREL16	.long 017	.long 018	.long 019	.long 020	.long 021 22# OBJ-32-LABEL: Name: .text23# OBJ-32:       0000: 04000000 00000000 0000000024# OBJ-32-LABEL: }25# OBJ-32-LABEL: Relocations [26# OBJ-32:       0x4  IMAGE_REL_I386_DIR32   foo27# OBJ-32:       0x0  IMAGE_REL_I386_SECREL  foo28# OBJ-32:       0x8  IMAGE_REL_I386_SECTION foo29# OBJ-32:       0xC  IMAGE_REL_I386_SECREL  foo30# OBJ-32:       0x10 IMAGE_REL_I386_DIR32NB foo31 32# OBJ-64-LABEL: Name: .text33# OBJ-64:       0000: 04000000 00000000 0000000034# OBJ-64-LABEL: }35# OBJ-64-LABEL: Relocations [36# OBJ-64:       0x4  IMAGE_REL_AMD64_ADDR32   foo37# OBJ-64:       0x0  IMAGE_REL_AMD64_SECREL   foo38# OBJ-64:       0x8  IMAGE_REL_AMD64_SECTION  foo39# OBJ-64:       0xC  IMAGE_REL_AMD64_SECREL   foo40# OBJ-64:       0x10 IMAGE_REL_AMD64_ADDR32NB foo41