• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision97122a4cffdf7d9adfdef451498e92d4e46b5783 (tree)
Zeit2013-11-21 21:53:05
AutorH.J. Lu <hjl.tools@gmai...>
CommiterH.J. Lu

Log Message

Add bnd-branch-1 test

* ld-x86-64/mpx.exp: Run bnd-branch-1.
* ld-x86-64/bnd-branch-1.d: New file.
* ld-x86-64/bnd-branch-1.s: Likewise.

Ändern Zusammenfassung

Diff

--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,9 @@
1+2013-11-21 H.J. Lu <hongjiu.lu@intel.com>
2+
3+ * ld-x86-64/mpx.exp: Run bnd-branch-1.
4+ * ld-x86-64/bnd-branch-1.d: New file.
5+ * ld-x86-64/bnd-branch-1.s: Likewise.
6+
17 2013-11-20 H.J. Lu <hongjiu.lu@intel.com>
28
39 * ld-x86-64/mpx.exp (build_tests): Add libmpx2a.a, libmpx2b.a
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/bnd-branch-1.d
@@ -0,0 +1,19 @@
1+#as: --64
2+#ld: -shared -melf_x86_64
3+#objdump: -dw
4+
5+.*: +file format .*
6+
7+
8+#...
9+Disassembly of section .text:
10+
11+#...
12+[a-f0-9]+ <_start>:
13+[ ]*[a-f0-9]+: f2 e9 [a-f0-9]+ ff ff ff bnd jmpq [a-f0-9]+ <foo1@plt>
14+[ ]*[a-f0-9]+: e8 [a-f0-9]+ ff ff ff callq [a-f0-9]+ <foo2@plt>
15+[ ]*[a-f0-9]+: e9 [a-f0-9]+ ff ff ff jmpq [a-f0-9]+ <foo3@plt>
16+[ ]*[a-f0-9]+: e8 [a-f0-9]+ ff ff ff callq [a-f0-9]+ <foo4@plt>
17+[ ]*[a-f0-9]+: f2 e8 [a-f0-9]+ ff ff ff bnd callq [a-f0-9]+ <foo3@plt>
18+[ ]*[a-f0-9]+: e9 [a-f0-9]+ ff ff ff jmpq [a-f0-9]+ <foo4@plt>
19+#pass
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/bnd-branch-1.s
@@ -0,0 +1,9 @@
1+ .text
2+ .globl _start
3+_start:
4+bnd jmp foo1@plt
5+ call foo2@plt
6+ jmp foo3@plt
7+ call foo4@plt
8+bnd call foo3@plt
9+ jmp foo4@plt
--- a/ld/testsuite/ld-x86-64/mpx.exp
+++ b/ld/testsuite/ld-x86-64/mpx.exp
@@ -76,3 +76,5 @@ set run_tests {
7676 }
7777
7878 run_ld_link_exec_tests [] $run_tests
79+
80+run_dump_test "bnd-branch-1"