[PATCH v2] .bundle_align_mode

Alan Modra amodra@gmail.com
Thu Mar 15 01:35:00 GMT 2012


Without this, these tests fail on PE, COFF and AOUT targets.  The
corresponding ARM tests fail too, but those look to be due to the
disassembler not switching between arm and thumb modes.  Perhaps they
should be disabled on non-ELF ARM targets?

	* gas/i386/bundle-lock.d: Ignore trailing nops.
	* gas/i386/bundle.d: Likewise.
	* gas/i386/x86-64-bundle.d: Likewise.

Index: gas/testsuite/gas/i386/bundle-lock.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/i386/bundle-lock.d,v
retrieving revision 1.1
diff -u -p -r1.1 bundle-lock.d
--- gas/testsuite/gas/i386/bundle-lock.d	13 Mar 2012 16:59:57 -0000	1.1
+++ gas/testsuite/gas/i386/bundle-lock.d	14 Mar 2012 22:55:19 -0000
@@ -3053,3 +3053,4 @@ Disassembly of section \.text:
  *bde0:\s+(f4\s+hlt|f8\s+clc)\s*
 #...
  *be00:\s+f4\s+hlt\s*
+#pass
Index: gas/testsuite/gas/i386/bundle.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/i386/bundle.d,v
retrieving revision 1.1
diff -u -p -r1.1 bundle.d
--- gas/testsuite/gas/i386/bundle.d	13 Mar 2012 16:59:57 -0000	1.1
+++ gas/testsuite/gas/i386/bundle.d	14 Mar 2012 22:55:19 -0000
@@ -2191,3 +2191,4 @@ Disassembly of section \.text:
  *8820:\s+([0-9a-f][0-9a-f] )+\s+[a-z].+
 #...
  *8840:\s+([0-9a-f][0-9a-f] )+\s+[a-z].+
+#pass
Index: gas/testsuite/gas/i386/x86-64-bundle.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/i386/x86-64-bundle.d,v
retrieving revision 1.1
diff -u -p -r1.1 x86-64-bundle.d
--- gas/testsuite/gas/i386/x86-64-bundle.d	13 Mar 2012 16:59:57 -0000	1.1
+++ gas/testsuite/gas/i386/x86-64-bundle.d	14 Mar 2012 22:55:19 -0000
@@ -2279,3 +2279,4 @@ Disassembly of section \.text:
  *8da0:\s+([0-9a-f][0-9a-f] )+\s+[a-z].+
 #...
  *8dc0:\s+([0-9a-f][0-9a-f] )+\s+[a-z].+
+#pass

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list