aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r--ld/testsuite/ld-x86-64/abs-k1om.d11
-rw-r--r--ld/testsuite/ld-x86-64/protected2-k1om.d17
-rw-r--r--ld/testsuite/ld-x86-64/protected3-k1om.d16
3 files changed, 44 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/abs-k1om.d b/ld/testsuite/ld-x86-64/abs-k1om.d
new file mode 100644
index 0000000..2c26639
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/abs-k1om.d
@@ -0,0 +1,11 @@
+#name: Absolute non-overflowing relocs
+#source: ../ld-i386/abs.s
+#source: ../ld-i386/zero.s
+#as: --64 -march=k1om
+#ld: -m elf_k1om
+#objdump: -rs -j .text
+
+.*: file format .*
+
+Contents of section \.text:
+[ ][0-9a-f]+ c800fff0 c8000110 c9c3.*
diff --git a/ld/testsuite/ld-x86-64/protected2-k1om.d b/ld/testsuite/ld-x86-64/protected2-k1om.d
new file mode 100644
index 0000000..4e03599
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/protected2-k1om.d
@@ -0,0 +1,17 @@
+#source: protected2.s
+#as: --64 -march=k1om
+#ld: -shared -melf_k1om
+#objdump: -drw
+
+.*: +file format .*
+
+
+Disassembly of section .text:
+
+0+[a-f0-9]+ <foo>:
+[ ]*[a-f0-9]+: c3 retq
+
+0+[a-f0-9]+ <bar>:
+[ ]*[a-f0-9]+: e8 fa ff ff ff callq [a-f0-9]+ <foo>
+[ ]*[a-f0-9]+: c3 retq
+#pass
diff --git a/ld/testsuite/ld-x86-64/protected3-k1om.d b/ld/testsuite/ld-x86-64/protected3-k1om.d
new file mode 100644
index 0000000..36d6656
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/protected3-k1om.d
@@ -0,0 +1,16 @@
+#source: protected3.s
+#as: --64 -march=k1om
+#ld: -shared -melf_k1om
+#readelf: -h
+
+ELF Header:
+ Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
+ Class: ELF64
+ Data: 2's complement, little endian
+ Version: 1 \(current\)
+ OS/ABI: UNIX - System V
+ ABI Version: 0
+ Type: DYN \(Shared object file\)
+ Machine: Intel K1OM
+ Version: 0x1
+#pass