]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix gcc.dg/tree-ssa/forwprop-42.c
authorRichard Biener <rguenther@suse.de>
Thu, 31 Aug 2023 10:29:41 +0000 (12:29 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 31 Aug 2023 10:32:49 +0000 (12:32 +0200)
The testcase requires hardware support for V2DImode vectors because
otherwise we do not rewrite inserts via BIT_FIELD_REF to
BIT_INSERT_EXPR.  There's no effective target for this so the
following makes the testcase x86 specific, requiring and enabling SSE2.

* gcc.dg/tree-ssa/forwprop-42.c: Move ...
* gcc.target/i386/pr111228.c: ... here.  Enable SSE2.

gcc/testsuite/gcc.target/i386/pr111228.c [moved from gcc/testsuite/gcc.dg/tree-ssa/forwprop-42.c with 76% similarity]

similarity index 76%
rename from gcc/testsuite/gcc.dg/tree-ssa/forwprop-42.c
rename to gcc/testsuite/gcc.target/i386/pr111228.c
index 257a05d3ec8e0a2651f431ea652fda75bd4467dc..f0c3f9b77bf943f482a5ee035ec910c279af7df5 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-cddce1" } */
+/* { dg-additional-options "-msse2" { target sse2 } } */
 
 typedef __UINT64_TYPE__ v2di __attribute__((vector_size(16)));
 
@@ -14,4 +15,4 @@ void test (v2di *v)
   g = res;
 }
 
-/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR <\[^>\]*, { 0, 3 }>" 1 "cddce1" } } */
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR <\[^>\]*, { 0, 3 }>" 1 "cddce1" { target sse2 } } } */