aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr83623.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr83623.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr83623.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr83623.c b/gcc/testsuite/gcc.dg/pr83623.c
new file mode 100644
index 00000000000..5d62c04f542
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr83623.c
@@ -0,0 +1,12 @@
+/* PR middle-end/83623 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+/* { dg-additional-options "-mmovbe" { target i?86-*-* x86_64-*-* } } */
+
+unsigned short __attribute__ ((__vector_size__ (16))) x;
+
+void
+foo (void)
+{
+ x = x << 8 | x >> 8;
+}