This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Move i386 opcode to opcodes/i386-opc.c


On Wed, Mar 21, 2007 at 06:08:44PM +0100, Andreas Schwab wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> 
> > BTW, do you have a testcase for this issue? I'd like to add it to
> > the testsuite.
> 
> .text
> nop
> .align 32
> nop
> 
> (Any align bigger than 16 will do.)
> 

Thanks. I will check in this patch.


H.J.
---
2003-03-21  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/i386/i386.exp: Run nops-3.

	* gas/i386/nops-3.d: New file.
	* gas/i386/nops-3.s: Likewise.

--- gas/testsuite/gas/i386/i386.exp.nops	2007-01-08 09:26:53.000000000 -0800
+++ gas/testsuite/gas/i386/i386.exp	2007-03-21 12:22:05.000000000 -0700
@@ -83,6 +83,7 @@ if [expr ([istarget "i*86-*-*"] ||  [ist
     run_dump_test "nops-2"
     run_dump_test "nops-2-i386"
     run_dump_test "nops-2-merom"
+    run_dump_test "nops-3"
     run_dump_test "addr16"
     run_dump_test "addr32"
 
--- gas/testsuite/gas/i386/nops-3.d.nops	2007-03-21 12:28:49.000000000 -0700
+++ gas/testsuite/gas/i386/nops-3.d	2007-03-21 12:28:13.000000000 -0700
@@ -0,0 +1,43 @@
+#source: nops-3.s
+#objdump: -drw
+#name: i386 nops 3
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+ <nop>:
+[	 ]*0:[	 ]+90[	 ]+nop[ 	]*
+[	 ]*1:[	 ]+90[	 ]+nop[ 	]*
+[	 ]*2:[	 ]+90[	 ]+nop[ 	]*
+[	 ]*3:[	 ]+90[	 ]+nop[ 	]*
+[	 ]*4:[	 ]+90[	 ]+nop[ 	]*
+[	 ]*5:[	 ]+90[	 ]+nop[ 	]*
+[	 ]*6:[	 ]+90[	 ]+nop[ 	]*
+[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Date Prev] [Date Next] [Thread Prev] [Thread Next]