[PATCH 4/6] x86: revert ELF related part of "x86: Update assembler tests for non-ELF targets"

Jan Beulich jbeulich@suse.com
Fri Jul 17 13:52:11 GMT 2020
This reverts part of commit 99c2d522f7a7259947aa84c1b385a7c8147fa46c
by replacing the construct that's problematic for non-ELF, and by adding
the "#pass" patterns to the expected output files to cover for the tail
padding generated into COFF output.

gas/
2020-07-XX  Jan Beulich  <jbeulich@suse.com>

	* testsuite/gas/i386/evex-no-scale-32.d,
	testsuite/gas/i386/evex-no-scale-64.d: Add #pass.
	* testsuite/gas/i386/evex-no-scale.s: Use .struct instead of
	.section.
	* testsuite/gas/i386/i386.exp: Move above tests out of ELF-
	specific section.

--- a/gas/testsuite/gas/i386/evex-no-scale-32.d
+++ b/gas/testsuite/gas/i386/evex-no-scale-32.d
@@ -11,3 +11,4 @@ Disassembly of section .text:
  +[a-f0-9]+:	62 f1 7c 48 28 04 25 40 00 00 00 	vmovaps 0x40\(,%eiz,1\),%zmm0
  +[a-f0-9]+:	62 f1 7c 48 28 05 40 00 00 00 	vmovaps 0x40,%zmm0
  +[a-f0-9]+:	67 62 f1 7c 48 28 06 40 00 	vmovaps 0x40,%zmm0
+#pass
--- a/gas/testsuite/gas/i386/evex-no-scale-64.d
+++ b/gas/testsuite/gas/i386/evex-no-scale-64.d
@@ -13,3 +13,4 @@ Disassembly of section .text:
  +[a-f0-9]+:	67 62 f1 7c 48 28 04 05 40 00 00 00 	vmovaps 0x40\(,%eax,1\),%zmm0
  +[a-f0-9]+:	67 62 f1 7c 48 28 04 25 40 00 00 00 	vmovaps 0x40\(,%eiz,1\),%zmm0
  +[a-f0-9]+:	62 f1 7c 48 28 04 25 40 00 00 00 	vmovaps 0x40,%zmm0
+#pass
--- a/gas/testsuite/gas/i386/evex-no-scale.s
+++ b/gas/testsuite/gas/i386/evex-no-scale.s
@@ -1,8 +1,7 @@
 	.allow_index_reg
-	.section .probe, "", @progbits
-.Lprobe_64bit:
+	.struct
 	inc	%eax
-.equiv is_64bit, (. - .Lprobe_64bit) > 1
+.equiv is_64bit, . > 1
 
 	.text
 disp:
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -256,6 +256,7 @@ if [expr ([istarget "i*86-*-*"] ||  [ist
     run_dump_test "evex-lig-2"
     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"
@@ -624,7 +625,6 @@ if [expr ([istarget "i*86-*-*"] ||  [ist
 	run_dump_test "nop-6"
 	run_dump_test "unique"
 
-	run_dump_test "evex-no-scale-32"
 	run_dump_test "property-1"
 	run_dump_test "property-2"
 	run_dump_test "property-3"
@@ -868,6 +868,7 @@ if [expr ([istarget "i*86-*-*"] || [ista
     run_dump_test "x86-64-evex-wig1"
     run_dump_test "x86-64-evex-wig1-intel"
     run_dump_test "x86-64-evex-wig2"
+    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"
@@ -1220,7 +1221,6 @@ if [expr ([istarget "i*86-*-*"] || [ista
 	run_dump_test "x86-64-nop-6"
 	run_dump_test "x86-64-unique"
 
-	run_dump_test "evex-no-scale-64"
 	run_dump_test "x86-64-property-1"
 	run_dump_test "x86-64-property-2"
 	run_dump_test "x86-64-property-3"



More information about the Binutils mailing list