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 8a376ff17028702a36c0831eaf83aaed99017d24..030435bad3fdc13e61b1ff48881c00b75836ee72 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 391d4ad9814f38a831241482e132399f87dec537..053095ca691532bd2756fb3a3cd48fb78122ae58 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 c198609b7224c0d2dbee1d3a4f9a4eab691b5ab5..af3b3ca9ae0b0d325a0c45446fc6236414cd530c 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 985bc1eb29e715d9ce6eb9c93de1415173890c19..e02a3016ef1f68bdb4a41346935831893654f7de 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 906709167e192ffe71d7bdabe63e82f734c3a610..966bdf52ba05205a1370dcc133514f17398ccf56 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 72e4165391de46e941da67b07818c2a5b5e0b80d..b1ab1215268cfeb3e1ea7adea0a9cdc858404560 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 } } */