summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 09:31:28 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 09:31:28 +0000
commit2d788f29f88b72f050f51d25f816db95ad9ace33 (patch)
treefd8e90b5557638e064987b6da3dd91ca61186bc0 /gcc/testsuite/gcc.c-torture
parent14144bb9f07bb9f1c5834d3eb70e4f0c2bb5b4b7 (diff)
downloadgcc-2d788f29f88b72f050f51d25f816db95ad9ace33.tar.gz
PR tree-optimization/55955
* tree-vect-loop.c (vectorizable_reduction): Give up early on *SHIFT_EXPR and *ROTATE_EXPR codes. * gcc.c-torture/compile/pr55955.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195190 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr55955.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr55955.c b/gcc/testsuite/gcc.c-torture/compile/pr55955.c
new file mode 100644
index 00000000000..2656ffb94fb
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr55955.c
@@ -0,0 +1,12 @@
+/* PR tree-optimization/55955 */
+
+int b;
+
+void
+foo (int x)
+{
+ int a;
+ for (a = x; a < 2; a++)
+ for (b = 0; b < 2; b++)
+ *(unsigned short *) 0x100000UL %= 46;
+}