Commit 8fccb0a6 by Uros Bizjak Committed by Uros Bizjak

i386.md (*bswap<mode>2_movbe): Add integer suffix to movbe mnemonic.

	* 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
parent 40a90224
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
......
......@@ -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 } } */
......@@ -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 } } } } */
......@@ -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 } } */
......@@ -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 } } */
/* 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 } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment