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]

Committed [PATCH] Add alignment to amd family 10 instruction tests


I checked in the following patch to add alignment to the new amd family 10 instructions to fix the problems under Cygwin.

2006-07-20 Dwarakanath Rajagopal    <dwarak.rajagopal@amd.com>
      Michael Meissner        <michael.meissner@amd.com>

   * gas/i386/amdfam10.s: Add .p2align 4,0 to make sure segment is
   aligned on all systems.
   * gas/i386/x86-64-amdfam10.s: Likewise.
   * gas/i386/amdfam10.d: Adjust output for alignment.
   * gas/i386/x86-64-amdfam10.d: Likewise.

--- gas/testsuite/gas/i386/amdfam10.s.~1~ 2006-07-20 19:03:38.000000000 -0400
+++ gas/testsuite/gas/i386/amdfam10.s 2006-07-20 18:51:56.000000000 -0400
@@ -16,3 +16,6 @@ foo:
insertq $4,$2,%xmm2,%xmm1
movntsd %xmm1,(%ecx)
movntss %xmm1,(%ecx)
+
+ # Force a good alignment.
+ .p2align 4,0
--- gas/testsuite/gas/i386/amdfam10.d.~1~ 2006-07-13 18:25:46.000000000 -0400
+++ gas/testsuite/gas/i386/amdfam10.d 2006-07-20 18:52:47.000000000 -0400
@@ -20,3 +20,5 @@ Disassembly of section .text:
2e: f2 0f 78 ca 02 04[ ]*insertq \$0x4,\$0x2,%xmm2,%xmm1
34: f2 0f 2b 09[ ]+movntsd %xmm1,\(%ecx\)
38: f3 0f 2b 09[ ]+movntss %xmm1,\(%ecx\)
+ 3c: 00 00 [ ]+add %al,\(%eax\)
+ ...
--- gas/testsuite/gas/i386/x86-64-amdfam10.s.~1~ 2006-07-13 18:25:46.000000000 -0400
+++ gas/testsuite/gas/i386/x86-64-amdfam10.s 2006-07-20 18:51:47.000000000 -0400
@@ -20,3 +20,6 @@ foo:
insertq $4,$2,%xmm2,%xmm1
movntsd %xmm1,(%rcx)
movntss %xmm1,(%rcx)
+
+ # Force a good alignment.
+ .p2align 4,0
--- gas/testsuite/gas/i386/x86-64-amdfam10.d.~1~ 2006-07-13 18:25:46.000000000 -0400
+++ gas/testsuite/gas/i386/x86-64-amdfam10.d 2006-07-20 18:52:34.000000000 -0400
@@ -24,3 +24,4 @@ Disassembly of section .text:
40: f2 0f 78 ca 02 04[ ]+insertq \$0x4,\$0x2,%xmm2,%xmm1
46: f2 0f 2b 09[ ]+movntsd %xmm1,\(%rcx\)
4a: f3 0f 2b 09[ ]+movntss %xmm1,\(%rcx\)
+ ...





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]