i386.md (*bswap<mode>2_movbe): Add integer suffix to movbe mnemonic.
authorUros Bizjak <ubizjak@gmail.com>
Tue, 21 Nov 2017 17:35:23 +0000 (18:35 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 21 Nov 2017 17:35:23 +0000 (18:35 +0100)
* config/i386/i386.md (*bswap<mode>2_movbe): Add
integer suffix to movbe mnemonic.
(*bswaphi2_movbe): Ditto.
(bswaphi_lowpart): Merge with *bswaphi_lowpart_1.

testsuite/ChangeLog:

* gcc.target/i386/movbe-1.c: Update scan string for movbe
with integer suffix.
* gcc.target/i386/movbe-2.c: Ditto.
* gcc.target/i386/movbe-3.c: Ditto.
* gcc.target/i386/movbe-4.c: Ditto.
* gcc.target/i386/movbe-5.c: Ditto.

From-SVN: r255017

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/movbe-1.c
gcc/testsuite/gcc.target/i386/movbe-2.c
gcc/testsuite/gcc.target/i386/movbe-3.c
gcc/testsuite/gcc.target/i386/movbe-4.c
gcc/testsuite/gcc.target/i386/movbe-5.c

index 8a376ff..030435b 100644 (file)
@@ -1,3 +1,12 @@
+2017-11-21  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.target/i386/movbe-1.c: Update scan string for movbe
+       with integer suffix.
+       * gcc.target/i386/movbe-2.c: Ditto.
+       * gcc.target/i386/movbe-3.c: Ditto.
+       * gcc.target/i386/movbe-4.c: Ditto.
+       * gcc.target/i386/movbe-5.c: Ditto.
+
 2017-11-21  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/83020
index 391d4ad..053095c 100644 (file)
@@ -15,4 +15,4 @@ bar ()
   return __builtin_bswap32 (x);
 }
 
-/* { dg-final { scan-assembler-times "movbe\[ \t\]" 2 } } */
+/* { dg-final { scan-assembler-times "movbel\[ \t\]" 2 } } */
index c198609..af3b3ca 100644 (file)
@@ -15,5 +15,5 @@ bar ()
   return __builtin_bswap64 (x);
 }
 
-/* { dg-final { scan-assembler-times "movbe\[ \t\]" 4 { target ia32 } } } */
-/* { dg-final { scan-assembler-times "movbe\[ \t\]" 2 { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler-times "movbel\[ \t\]" 4 { target ia32 } } } */
+/* { dg-final { scan-assembler-times "movbeq\[ \t\]" 2 { target { ! ia32 } } } } */
index 985bc1e..e02a301 100644 (file)
@@ -16,4 +16,4 @@ void set (struct S *s, int i)
   s->i = i;
 }
 
-/* { dg-final { scan-assembler-times "movbe\[ \t\]" 2 } } */
+/* { dg-final { scan-assembler-times "movbel\[ \t\]" 2 } } */
index 9067091..966bdf5 100644 (file)
@@ -17,4 +17,4 @@ bar ()
   return __builtin_bswap32 (x);
 }
 
-/* { dg-final { scan-assembler-times "movbe\[ \t\]" 2 } } */
+/* { dg-final { scan-assembler-times "movbel\[ \t\]" 2 } } */
index 72e4165..b1ab121 100644 (file)
@@ -1,7 +1,6 @@
 /* PR tree-optimization/78821 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -mmovbe" } */
-/* { dg-final { scan-assembler-times "movbe\[ \t\]" 2 } } */
 
 unsigned short
 foo (unsigned short *buf)
@@ -16,3 +15,5 @@ bar (char *buf, unsigned int data)
   buf[0] = data >> 8;
   buf[1] = data;
 }
+
+/* { dg-final { scan-assembler-times "movbew\[ \t\]" 2 } } */