From 2f395978370b2ee7d2c987a0c93e21ca5c65a972 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 13 Jul 2010 17:42:29 +0000 Subject: [PATCH] Don't hard code expected output. 2010-07-13 H.J. Lu * ld-i386/hidden2.d: Don't hard code expected output. * ld-i386/protected3.d: Likewise. * ld-x86-64/hidden2.d: Likewise. * ld-x86-64/protected3.d: Likewise. --- ld/testsuite/ChangeLog | 7 +++++++ ld/testsuite/ld-i386/hidden2.d | 2 +- ld/testsuite/ld-i386/protected3.d | 2 +- ld/testsuite/ld-x86-64/hidden2.d | 2 +- ld/testsuite/ld-x86-64/protected3.d | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 67555235841..a1f9e6b1541 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-07-13 H.J. Lu + + * ld-i386/hidden2.d: Don't hard code expected output. + * ld-i386/protected3.d: Likewise. + * ld-x86-64/hidden2.d: Likewise. + * ld-x86-64/protected3.d: Likewise. + 2010-07-13 H.J. Lu PR ld/11791 diff --git a/ld/testsuite/ld-i386/hidden2.d b/ld/testsuite/ld-i386/hidden2.d index 90bc4384ebf..0d800cef250 100644 --- a/ld/testsuite/ld-i386/hidden2.d +++ b/ld/testsuite/ld-i386/hidden2.d @@ -8,6 +8,6 @@ Disassembly of section .text: [a-f0-9]+ : -[ ]*[a-f0-9]+: e8 cf fe ff ff call 0 +[ ]*[a-f0-9]+: e8 cf fe ff ff call 0 .* [ ]*[a-f0-9]+: c3 ret #pass diff --git a/ld/testsuite/ld-i386/protected3.d b/ld/testsuite/ld-i386/protected3.d index e42185a4129..aafa2d81b35 100644 --- a/ld/testsuite/ld-i386/protected3.d +++ b/ld/testsuite/ld-i386/protected3.d @@ -8,6 +8,6 @@ Disassembly of section .text: 0+[a-f0-9]+ : -[ ]*[a-f0-9]+: 8b 81 0c 00 00 00 mov 0x[a-f0-9]+\(%ecx\),%eax +[ ]*[a-f0-9]+: 8b 81 [a-f0-9][a-f0-9] [a-f0-9][a-f0-9] 00 00 mov 0x[a-f0-9]+\(%ecx\),%eax [ ]*[a-f0-9]+: c3 ret #pass diff --git a/ld/testsuite/ld-x86-64/hidden2.d b/ld/testsuite/ld-x86-64/hidden2.d index 0d89e6e863a..9a29f9a6493 100644 --- a/ld/testsuite/ld-x86-64/hidden2.d +++ b/ld/testsuite/ld-x86-64/hidden2.d @@ -8,6 +8,6 @@ Disassembly of section .text: [a-f0-9]+ : -[ ]*[a-f0-9]+: e8 33 fe ff ff callq 0 +[ ]*[a-f0-9]+: e8 33 fe ff ff callq 0 .* [ ]*[a-f0-9]+: c3 retq #pass diff --git a/ld/testsuite/ld-x86-64/protected3.d b/ld/testsuite/ld-x86-64/protected3.d index 09556ce2450..897c1cf215b 100644 --- a/ld/testsuite/ld-x86-64/protected3.d +++ b/ld/testsuite/ld-x86-64/protected3.d @@ -8,6 +8,6 @@ Disassembly of section .text: 0+[a-f0-9]+ : -[ ]*[a-f0-9]+: 8b 05 ce 00 20 00 mov 0x[a-f0-9]+\(%rip\),%eax # [a-f0-9]+ +[ ]*[a-f0-9]+: 8b 05 [a-f0-9][a-f0-9] 00 [a-f0-9][a-f0-9] 00 mov 0x[a-f0-9]+\(%rip\),%eax # [a-f0-9]+ [ ]*[a-f0-9]+: c3 retq #pass -- 2.30.2