x86: Update notrackbad tests for non-ELF targets
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 23 May 2017 13:49:35 +0000 (06:49 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 23 May 2017 13:49:35 +0000 (06:49 -0700)
* gas/testsuite/gas/i386/notrackbad.l: Updated for non-ELF
targets.
* gas/testsuite/gas/i386/x86-64-notrackbad.l: Likewise.

gas/ChangeLog
gas/testsuite/gas/i386/notrackbad.l
gas/testsuite/gas/i386/x86-64-notrackbad.l

index d332c1e1e34a60ed6a91ea749c71b61a61a9b36a..2e7bb8db3563ce978fc08ee9de548fdf4403f9ea 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/testsuite/gas/i386/notrackbad.l: Updated for non-ELF
+       targets.
+       * gas/testsuite/gas/i386/x86-64-notrackbad.l: Likewise.
+
 2017-05-23  Claudiu Zissulescu <claziss@synopsys.com>
 
        * config/tc-arc.c (md_apply_fix): Use as_bad_where.
index b092ab240aae13e6186dbd0d33f5a674ab6f4098..0f8cf7d96bf23f7098476e73b5e605ade204a081 100644 (file)
@@ -23,14 +23,14 @@ GAS LISTING .*
 [      ]*3[    ]+\.allow_index_reg
 [      ]*4[    ]+\.text
 [      ]*5[    ]+_start:
-[      ]*6[    ]+\?\?\?\? E8FCFFFF             notrack call foo
+[      ]*6[    ]+\?\?\?\? [0-9A-F]*            notrack call foo
 \*\*\*\*  Error: expecting register indirect branch instruction after `notrack'
 \*\*\*\*  Warning: skipping prefixes on this instruction
-[      ]*6[    ]+FF
-[      ]*7[    ]+\?\?\?\? E9FCFFFF             notrack jmp foo
+[      ]*6[    ]+[0-9A-F]*
+[      ]*7[    ]+\?\?\?\? [0-9A-F]*            notrack jmp foo
 \*\*\*\*  Error: expecting register indirect branch instruction after `notrack'
 \*\*\*\*  Warning: skipping prefixes on this instruction
-[      ]*7[    ]+FF
+[      ]*7[    ]+[0-9A-F]*
 [      ]*8[    ]+
 [      ]*9[    ]+\?\?\?\? 3EFF10               notrack call \*\(%eax\)
 \*\*\*\*  Error: expecting register indirect branch instruction after `notrack'
@@ -49,4 +49,5 @@ GAS LISTING .*
 [      ]*19[   ]+fs notrack call eax
 [      ]*20[   ]+notrack fs call eax
 [      ]*21[   ]+notrack bnd call eax
-[      ]*22[   ]+notrack data16 call eax
+[      ]*22.*[         ]+notrack data16 call eax
+#pass
index a72e37d023fd0609d5c33492fe2cfab18b4f922f..f76c7e5b9e447b994136cc7d485d7483f57b78e8 100644 (file)
@@ -23,14 +23,14 @@ GAS LISTING .*
 [      ]*3[    ]+\.allow_index_reg
 [      ]*4[    ]+\.text
 [      ]*5[    ]+_start:
-[      ]*6[    ]+\?\?\?\? E8000000             notrack call foo
+[      ]*6[    ]+\?\?\?\? [0-9A-F]*            notrack call foo
 \*\*\*\*  Error: expecting register indirect branch instruction after `notrack'
 \*\*\*\*  Warning: skipping prefixes on this instruction
-[      ]*6[    ]+00
-[      ]*7[    ]+\?\?\?\? E9000000             notrack jmp foo
+[      ]*6[    ]+[0-9A-F]*
+[      ]*7[    ]+\?\?\?\? [0-9A-F]*            notrack jmp foo
 \*\*\*\*  Error: expecting register indirect branch instruction after `notrack'
 \*\*\*\*  Warning: skipping prefixes on this instruction
-[      ]*7[    ]+00
+[      ]*7[    ]+[0-9A-F]*
 [      ]*8[    ]+
 [      ]*9[    ]+\?\?\?\? 3EFF10               notrack call \*\(%rax\)
 \*\*\*\*  Error: expecting register indirect branch instruction after `notrack'
@@ -49,4 +49,5 @@ GAS LISTING .*
 [      ]*19[   ]+fs notrack call rax
 [      ]*20[   ]+notrack fs call rax
 [      ]*21[   ]+notrack bnd call rax
-[      ]*22[   ]+notrack data16 call rax
+[      ]*22.*[         ]+notrack data16 call rax
+#pass