aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-05 10:05:52 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-08-05 10:05:52 -0700
commit99c2d522f7a7259947aa84c1b385a7c8147fa46c (patch)
tree9ca4084378049c756f72752fae3c9003e5a3e64e /gas
parent05d0e962f08af24f18cc79b890a68176b42bcb78 (diff)
downloadbinutils-99c2d522f7a7259947aa84c1b385a7c8147fa46c.zip
binutils-99c2d522f7a7259947aa84c1b385a7c8147fa46c.tar.gz
binutils-99c2d522f7a7259947aa84c1b385a7c8147fa46c.tar.bz2
x86: Update assembler tests for non-ELF targets
evex-no-scale.s has ELF directive: .section .probe, "", @progbits and non-ELF targets may pad text sections. * testsuite/gas/i386/i386.exp: Run evex-no-scale-32 and evex-no-scale-64 only for ELF targets. * testsuite/gas/i386/prefix32.s: Append ".p2align 4,0". * testsuite/gas/i386/prefix64.s: Likewise. * testsuite/gas/i386/prefix32.l: Updated. * testsuite/gas/i386/prefix64.l: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/testsuite/gas/i386/i386.exp6
-rw-r--r--gas/testsuite/gas/i386/prefix32.l2
-rw-r--r--gas/testsuite/gas/i386/prefix32.s2
-rw-r--r--gas/testsuite/gas/i386/prefix64.l2
-rw-r--r--gas/testsuite/gas/i386/prefix64.s2
6 files changed, 21 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 94b496b..5959b11 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,12 @@
+2018-08-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/gas/i386/i386.exp: Run evex-no-scale-32 and
+ evex-no-scale-64 only for ELF targets.
+ * testsuite/gas/i386/prefix32.s: Append ".p2align 4,0".
+ * testsuite/gas/i386/prefix64.s: Likewise.
+ * testsuite/gas/i386/prefix32.l: Updated.
+ * testsuite/gas/i386/prefix64.l: Likewise.
+
2018-08-05 Alan Modra <amodra@gmail.com>
* config/tc-ppc.c (ppc_elf_suffix): Support @notoc.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 3cf1aa3..6ea4dee 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -225,7 +225,6 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "evex-lig512-intel"
run_dump_test "evex-wig1"
run_dump_test "evex-wig1-intel"
- run_dump_test "evex-no-scale-32"
run_dump_test "sse2avx"
run_list_test "inval-avx" "-al"
run_list_test "inval-avx512f" "-al"
@@ -528,6 +527,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "nop-5"
run_dump_test "nop-6"
+ run_dump_test "evex-no-scale-32"
+
if { [gas_64_check] } then {
run_dump_test "att-regs"
run_dump_test "intel-regs"
@@ -738,7 +739,6 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t
run_dump_test "x86-64-evex-lig512-intel"
run_dump_test "x86-64-evex-wig1"
run_dump_test "x86-64-evex-wig1-intel"
- run_dump_test "evex-no-scale-64"
run_dump_test "x86-64-sse2avx"
run_list_test "x86-64-inval-avx" "-al"
run_list_test "x86-64-inval-avx512f" "-al"
@@ -1023,6 +1023,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t
run_dump_test "x86-64-nop-4"
run_dump_test "x86-64-nop-5"
run_dump_test "x86-64-nop-6"
+
+ run_dump_test "evex-no-scale-64"
}
set ASFLAGS "$old_ASFLAGS"
diff --git a/gas/testsuite/gas/i386/prefix32.l b/gas/testsuite/gas/i386/prefix32.l
index ea7f304..41c8d88 100644
--- a/gas/testsuite/gas/i386/prefix32.l
+++ b/gas/testsuite/gas/i386/prefix32.l
@@ -32,3 +32,5 @@ GAS LISTING .*
\*\*\*\* Error: .*
[ ]*20[ ]+data16 vaddps %xmm0, %xmm0, %xmm0
[ ]*21[ ]+data16 vaddpd %xmm0, %xmm0, %xmm0
+[ ]*22[ ]*
+[ ]*23[ ]*[\?]+ 0+[ \t]+\.p2align 4,0
diff --git a/gas/testsuite/gas/i386/prefix32.s b/gas/testsuite/gas/i386/prefix32.s
index d20cb47..1ffdff1 100644
--- a/gas/testsuite/gas/i386/prefix32.s
+++ b/gas/testsuite/gas/i386/prefix32.s
@@ -19,3 +19,5 @@ prefix:
data16 addpd %xmm0, %xmm0
data16 vaddps %xmm0, %xmm0, %xmm0
data16 vaddpd %xmm0, %xmm0, %xmm0
+
+ .p2align 4,0
diff --git a/gas/testsuite/gas/i386/prefix64.l b/gas/testsuite/gas/i386/prefix64.l
index 0a5615a..0659d9c 100644
--- a/gas/testsuite/gas/i386/prefix64.l
+++ b/gas/testsuite/gas/i386/prefix64.l
@@ -32,3 +32,5 @@ GAS LISTING .*
\*\*\*\* Error: .*
[ ]*20[ ]+data16 vaddps %xmm0, %xmm0, %xmm0
[ ]*21[ ]+data16 vaddpd %xmm0, %xmm0, %xmm0
+[ ]*22[ ]*
+[ ]*23[ ]*[\?]+ 0+[ \t]+\.p2align 4,0
diff --git a/gas/testsuite/gas/i386/prefix64.s b/gas/testsuite/gas/i386/prefix64.s
index ca79f49..39fb477 100644
--- a/gas/testsuite/gas/i386/prefix64.s
+++ b/gas/testsuite/gas/i386/prefix64.s
@@ -19,3 +19,5 @@ prefix:
data16 addpd %xmm0, %xmm0
data16 vaddps %xmm0, %xmm0, %xmm0
data16 vaddpd %xmm0, %xmm0, %xmm0
+
+ .p2align 4,0