aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/apic.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/apic.d')
-rw-r--r--ld/testsuite/ld-x86-64/apic.d18
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/apic.d b/ld/testsuite/ld-x86-64/apic.d
new file mode 100644
index 0000000..782c6fa
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/apic.d
@@ -0,0 +1,18 @@
+#name: 32-bit relocs w/ index but no base
+#ld: --defsym APIC_BASE=0xfee00000
+#objdump: -dw
+
+.*: +file format .*
+
+
+Disassembly of section \.text:
+
+#...
+[0-9a-f]+[ ]+<apic_read>:
+[ ]*[0-9a-f]+:[ ]+67 8b 04 bd 00 00 e0 fe[ ]+mov[ ]+(0xfee|-0x12)00000\(,%edi,4\),%eax
+[ ]*[0-9a-f]+:[ ]+c3[ ]+retq?[ ]*
+#...
+[0-9a-f]+[ ]+<apic_write>:
+[ ]*[0-9a-f]+:[ ]+67 89 34 bd 00 00 e0 fe[ ]+mov[ ]+%esi,(0xfee|-0x12)00000\(,%edi,4\)
+[ ]*[0-9a-f]+:[ ]+c3[ ]+retq?[ ]*
+#pass