aboutsummaryrefslogtreecommitdiff
path: root/test/MC/ELF/relocation-pc.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/relocation-pc.s')
-rw-r--r--test/MC/ELF/relocation-pc.s8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/MC/ELF/relocation-pc.s b/test/MC/ELF/relocation-pc.s
index ca7addf3a620..85e97f059584 100644
--- a/test/MC/ELF/relocation-pc.s
+++ b/test/MC/ELF/relocation-pc.s
@@ -2,8 +2,9 @@
// Test that we produce the correct relocation.
- loope 0 # R_X86_64_PC8
- jmp -256 # R_X86_64_PC32
+ loope 0 # R_X86_64_PC8
+ jmp -256 # R_X86_64_PC32
+ .word 0x42 - . # R_X86_64_PC16
// CHECK: Section {
// CHECK: Index:
@@ -13,7 +14,7 @@
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 48
+// CHECK-NEXT: Size:
// CHECK-NEXT: Link:
// CHECK-NEXT: Info:
// CHECK-NEXT: AddressAlignment: 8
@@ -21,5 +22,6 @@
// CHECK-NEXT: Relocations [
// CHECK-NEXT: 0x1 R_X86_64_PC8 - 0xFFFFFFFFFFFFFFFF
// CHECK-NEXT: 0x3 R_X86_64_PC32 - 0xFFFFFFFFFFFFFEFC
+// CHECK-NEXT: 0x7 R_X86_64_PC16 - 0x42
// CHECK-NEXT: ]
// CHECK-NEXT: }