aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ChangeLog9
-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
4 files changed, 53 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index bc01d77..28b9a83 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-x86-64/abs-k1om.d: New.
+ * ld-x86-64/protected2-k1om.d: Likewise.
+ * ld-x86-64/protected3-k1om.d: Likewise.
+
+ * ld-x86-64/x86-64.exp: Run abs-k1om, protected2-k1om and
+ protected3-k1om.
+
2011-07-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/binutils.exp (binutils_test): Also check ignored
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