From 15448afcc8d3fb975a4f1b2dec1e2a5f00279ab1 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 3 Oct 1995 13:58:18 -0400 Subject: [PATCH] (simplify_rtx): In code that attempts to simplify conditional expressions... (simplify_rtx): In code that attempts to simplify conditional expressions, if the result is an NE around another comparison, return the original expression. From-SVN: r10428 --- gcc/combine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/combine.c b/gcc/combine.c index aa3044526890..8e46de042ddb 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3057,6 +3057,9 @@ simplify_rtx (x, op0_mode, last, in_dest) rtx cop1 = const0_rtx; enum rtx_code cond_code = simplify_comparison (NE, &cond, &cop1); + if (cond_code == NE && GET_RTX_CLASS (GET_CODE (cond)) == '<') + return x; + /* Simplify the alternative arms; this may collapse the true and false arms to store-flag values. */ true = subst (true, pc_rtx, pc_rtx, 0, 0); -- 2.47.2