summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr15825-1.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-25 18:40:07 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-25 18:40:07 +0000
commit1a81ce76e4457e3e137d58133d92f15e0899ceb3 (patch)
treef5b099c90d08d909541a996d27adf8816b06dfcd /gcc/testsuite/gcc.dg/pr15825-1.c
parentf8073d0f4ee860e8f8a0effb0bfa854cd4353c4f (diff)
downloadgcc-1a81ce76e4457e3e137d58133d92f15e0899ceb3.tar.gz
PR middle-end/15825
* ifcvt.c (unshare_ifcvt_sequence): Rename to end_ifcvt_sequence. Use get_isns and end_sequence instead of accepting a seq argument. Scan the instruction sequence for unrecognizable or jump insns. (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith, noce_try_minmax, noce_try_abs, noce_try_sign_mask): Use end_ifcvt_sequence to factor common code. * gcc.dg/pr15825-1.c: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83671 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr15825-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr15825-1.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr15825-1.c b/gcc/testsuite/gcc.dg/pr15825-1.c
new file mode 100644
index 00000000000..a4b46d44404
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr15825-1.c
@@ -0,0 +1,18 @@
+/* PR middle-end/15825 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+unsigned int foo(long long high, int unsigned_p)
+{
+ int i;
+ if (high < 0)
+ if (!unsigned_p)
+ {
+ i = 1;
+ goto t;
+ }
+ i = 0;
+t:
+ return i;
+}
+