summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-16 00:43:21 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-16 00:43:21 +0000
commitfddea9c57af89ec3402bce5c65c755b682521fb0 (patch)
treef46a1ce2ae72ffaeb19e4aee57b2ec3cc6e613ae
parent53ffdf71d29522bc9ab159be04e0b2d989bd43f1 (diff)
downloadppe42-gcc-fddea9c57af89ec3402bce5c65c755b682521fb0.tar.gz
ppe42-gcc-fddea9c57af89ec3402bce5c65c755b682521fb0.zip
rs6000.md (cr_logical): Swap order of CODE and MODE arguments to
gen_rtx and compare operand with const0_rtx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46273 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.md24
2 files changed, 17 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4cf58733372..781864d9419 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-15 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
+ MODE arguments to gen_rtx and compare operand with const0_rtx.
+
2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
* system.h: Poison old unused target macros.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index de88213d1af..a443c048a73 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -12516,24 +12516,24 @@
positive_2 = branch_positive_comparison_operator (operands[3], CCEQmode);
if (! positive_1)
- operands[1] = gen_rtx (SImode,
- rs6000_reverse_condition (GET_MODE (operands[2]),
+ operands[1] = gen_rtx (rs6000_reverse_condition (GET_MODE (operands[2]),
GET_CODE (operands[1])),
- operands[2]);
+ SImode,
+ operands[2], const0_rtx);
else if (GET_MODE (operands[1]) != SImode)
- operands[1] = gen_rtx (SImode,
- GET_CODE (operands[1]),
- operands[2]);
+ operands[1] = gen_rtx (GET_CODE (operands[1]),
+ SImode,
+ operands[2], const0_rtx);
if (! positive_2)
- operands[3] = gen_rtx (SImode,
- rs6000_reverse_condition (GET_MODE (operands[4]),
+ operands[3] = gen_rtx (rs6000_reverse_condition (GET_MODE (operands[4]),
GET_CODE (operands[3])),
- operands[4]);
+ SImode,
+ operands[4], const0_rtx);
else if (GET_MODE (operands[3]) != SImode)
- operands[3] = gen_rtx (SImode,
- GET_CODE (operands[3]),
- operands[4]);
+ operands[3] = gen_rtx (GET_CODE (operands[3]),
+ SImode,
+ operands[4], const0_rtx);
if (positive_1 == positive_2)
{
OpenPOWER on IntegriCloud