OSDN Git Service

gas/testsuite/
authorH.J. Lu <hjl@lucon.org>
Mon, 8 Oct 2007 19:22:01 +0000 (19:22 +0000)
committerH.J. Lu <hjl@lucon.org>
Mon, 8 Oct 2007 19:22:01 +0000 (19:22 +0000)
2007-10-08  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run simd-suffix and x86-64-simd-suffix.

* gas/i386/simd-suffix.d: New.
* gas/i386/x86-64-simd-suffix.d: Likewise.

* gas/i386/x86-64-opcode.d: Updated.
* gas/i386/x86-64-simd.d: Likewise.

opcodes/

2007-10-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c: Updated comments for 'Y'.
(putop): Don't add 'q' for 'Y' if suffix_always isn't true.

opcodes/ChangeLog
opcodes/i386-dis.c

index 99b51e7..9d4edb0 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * i386-dis.c: Updated comments for 'Y'.
+       (putop): Don't add 'q' for 'Y' if suffix_always isn't true.
+
 2007-10-08  Maciej W. Rozycki  <macro@linux-mips.org>
 
        * opcodes/mips-dis.c (mips_cp0_names_r3000): New definition.
index 1da05e0..44101b9 100644 (file)
@@ -712,7 +712,8 @@ struct dis386 {
    'V' => print 'q' in 64bit mode and behave as 'S' otherwise
    'W' => print 'b', 'w' or 'l' ('d' in Intel mode)
    'X' => print 's', 'd' depending on data16 prefix (for XMM)
-   'Y' => 'q' if instruction has an REX 64bit overwrite prefix
+   'Y' => 'q' if instruction has an REX 64bit overwrite prefix and
+         suffix_always is true.
    'Z' => print 'q' in 64bit mode and behave as 'L' otherwise
 
    Many of the above letters print nothing in Intel mode.  See "putop"
@@ -6170,7 +6171,7 @@ putop (const char *template, int sizeflag)
          used_prefixes |= (prefixes & PREFIX_DATA);
          break;
        case 'Y':
-         if (intel_syntax)
+         if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS))
            break;
          if (rex & REX_W)
            {