x86: Replace evex-no-scale.s with evex-no-scale-[32|64].s
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 10 Aug 2018 17:23:11 +0000 (10:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 10 Aug 2018 17:23:11 +0000 (10:23 -0700)
.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.

gas/ChangeLog
gas/testsuite/gas/i386/evex-no-scale-32.d
gas/testsuite/gas/i386/evex-no-scale-32.s [new file with mode: 0644]
gas/testsuite/gas/i386/evex-no-scale-64.d
gas/testsuite/gas/i386/evex-no-scale-64.s [moved from gas/testsuite/gas/i386/evex-no-scale.s with 52% similarity]

index ba6d9ca..2df3fdb 100644 (file)
@@ -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=.
index e6116bc..0a2860d 100644 (file)
@@ -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 (file)
index 0000000..e28c73f
--- /dev/null
@@ -0,0 +1,7 @@
+       .allow_index_reg
+       .text
+disp:
+       vmovaps 64(,%eax), %zmm0
+       vmovaps 64(,%eiz), %zmm0
+       vmovaps 64, %zmm0
+       addr16 vmovaps 64, %zmm0
index b66f15b..d52d947 100644 (file)
@@ -1,4 +1,3 @@
-#source: evex-no-scale.s
 #objdump: -dw
 #name: x86-64 EVEX no disp scaling
 
similarity index 52%
rename from gas/testsuite/gas/i386/evex-no-scale.s
rename to gas/testsuite/gas/i386/evex-no-scale-64.s
index ed0f231..bc3749c 100644 (file)
@@ -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