aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-08-10 10:23:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-08-10 10:23:11 -0700
commit19449d7c67690c641b1ec9c13ff3531677a5afcc (patch)
tree8fdf313b1927d01aa24697c316868fb6f0278b1c /gas
parent9c973a29df61c411e24ce51b13401333c6f6e0e7 (diff)
downloadgdb-19449d7c67690c641b1ec9c13ff3531677a5afcc.zip
gdb-19449d7c67690c641b1ec9c13ff3531677a5afcc.tar.gz
gdb-19449d7c67690c641b1ec9c13ff3531677a5afcc.tar.bz2
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.
Diffstat (limited to 'gas')
-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 ba6d9ca..2df3fdb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,12 @@
+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-09 H.J. Lu <hongjiu.lu@intel.com>
* as.c (show_usage): Display default option for --elf-stt-common=.
diff --git a/gas/testsuite/gas/i386/evex-no-scale-32.d b/gas/testsuite/gas/i386/evex-no-scale-32.d
index e6116bc..0a2860d 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 0000000..e28c73f
--- /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 b66f15b..d52d947 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 ed0f231..bc3749c 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