aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-10 10:23:11 -0700
committerAndreas K. Hüttel <dilfridge@gentoo.org>2018-11-30 23:42:48 +0100
commitf51c6792245c577539f2c42e8ee397e15bf0b885 (patch)
treed92ea477ab04f2ec2769422ec0c95d432524fdc5
parentx86: Properly merge GNU_PROPERTY_X86_ISA_1_USED (diff)
downloadbinutils-gdb-f51c6792245c577539f2c42e8ee397e15bf0b885.tar.gz
binutils-gdb-f51c6792245c577539f2c42e8ee397e15bf0b885.tar.bz2
binutils-gdb-f51c6792245c577539f2c42e8ee397e15bf0b885.zip
x86: Replace evex-no-scale.s with evex-no-scale-[32|64].s
.if is_64bit vmovaps -1024(%rip), %zmm0 vmovaps 64(,%rax), %zmm0 vmovaps 64(,%riz), %zmm0 .endif doesn't with i686-elf cross binutils on 64-bit hosts: evex-no-scale.s: Assembler messages: evex-no-scale.s:10: Error: bad register name `%rip)' evex-no-scale.s:11: Error: bad register name `%rax)' evex-no-scale.s:12: Error: bad register name `%riz)' This patch replaces evex-no-scale.s with evex-no-scale-32.s and evex-no-scale-64.s. * testsuite/gas/i386/evex-no-scale-32.d: Don't use evex-no-scale.s. * testsuite/gas/i386/evex-no-scale-64.d: Likewise. * testsuite/gas/i386/evex-no-scale-32.s: New file. * testsuite/gas/i386/evex-no-scale-64.s: Likewise. * testsuite/gas/i386/evex-no-scale.s: Removed. (cherry picked from commit 19449d7c67690c641b1ec9c13ff3531677a5afcc) (cherry picked from commit d6922904447698fa59bc3a7d544b82207a2451b8) Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/testsuite/gas/i386/evex-no-scale-32.d1
-rw-r--r--gas/testsuite/gas/i386/evex-no-scale-32.s7
-rw-r--r--gas/testsuite/gas/i386/evex-no-scale-64.d1
-rw-r--r--gas/testsuite/gas/i386/evex-no-scale-64.s (renamed from gas/testsuite/gas/i386/evex-no-scale.s)10
5 files changed, 16 insertions, 12 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 728a2783ed7..fe0d12a28f4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,14 @@
2018-08-10 H.J. Lu <hongjiu.lu@intel.com>
+ * testsuite/gas/i386/evex-no-scale.s: Removed.
+ * testsuite/gas/i386/evex-no-scale-32.d: Don't use
+ evex-no-scale.s.
+ * testsuite/gas/i386/evex-no-scale-64.d: Likewise.
+ * testsuite/gas/i386/evex-no-scale-32.s: New file.
+ * testsuite/gas/i386/evex-no-scale-64.s: Likewise.
+
+2018-08-10 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.
diff --git a/gas/testsuite/gas/i386/evex-no-scale-32.d b/gas/testsuite/gas/i386/evex-no-scale-32.d
index e6116bc5929..0a2860d32e3 100644
--- a/gas/testsuite/gas/i386/evex-no-scale-32.d
+++ b/gas/testsuite/gas/i386/evex-no-scale-32.d
@@ -1,4 +1,3 @@
-#source: evex-no-scale.s
#objdump: -dw
#name: ix86 EVEX no disp scaling
diff --git a/gas/testsuite/gas/i386/evex-no-scale-32.s b/gas/testsuite/gas/i386/evex-no-scale-32.s
new file mode 100644
index 00000000000..e28c73f2a36
--- /dev/null
+++ b/gas/testsuite/gas/i386/evex-no-scale-32.s
@@ -0,0 +1,7 @@
+ .allow_index_reg
+ .text
+disp:
+ vmovaps 64(,%eax), %zmm0
+ vmovaps 64(,%eiz), %zmm0
+ vmovaps 64, %zmm0
+ addr16 vmovaps 64, %zmm0
diff --git a/gas/testsuite/gas/i386/evex-no-scale-64.d b/gas/testsuite/gas/i386/evex-no-scale-64.d
index b66f15bf8bc..d52d947ab3a 100644
--- a/gas/testsuite/gas/i386/evex-no-scale-64.d
+++ b/gas/testsuite/gas/i386/evex-no-scale-64.d
@@ -1,4 +1,3 @@
-#source: evex-no-scale.s
#objdump: -dw
#name: x86-64 EVEX no disp scaling
diff --git a/gas/testsuite/gas/i386/evex-no-scale.s b/gas/testsuite/gas/i386/evex-no-scale-64.s
index ed0f2312af5..bc3749cc0c5 100644
--- a/gas/testsuite/gas/i386/evex-no-scale.s
+++ b/gas/testsuite/gas/i386/evex-no-scale-64.s
@@ -1,19 +1,9 @@
.allow_index_reg
- .section .probe, "", @progbits
-.Lprobe_64bit:
- inc %eax
-.equiv is_64bit, (. - .Lprobe_64bit) / 2
-
.text
disp:
-.if is_64bit
vmovaps -1024(%rip), %zmm0
vmovaps 64(,%rax), %zmm0
vmovaps 64(,%riz), %zmm0
-.endif
vmovaps 64(,%eax), %zmm0
vmovaps 64(,%eiz), %zmm0
vmovaps 64, %zmm0
-.if !is_64bit
- addr16 vmovaps 64, %zmm0
-.endif