From b151501eba56d1949e018553a969464e9d28f9bb Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Tue, 1 Dec 1998 23:50:04 +0000 Subject: [PATCH] * mips.md (trap_if): Use "$0" for the value zero. From-SVN: r24053 --- gcc/ChangeLog | 4 ++++ gcc/config/mips/mips.md | 20 ++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9b51c349562..368e835fdfb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 2 00:47:31 1998 Jeffrey A Law (law@cygnus.com) + + * mips.md (trap_if): Use "$0" for the value zero. + Tue Dec 1 20:49:49 1998 Ulrich Drepper Stephen L Moshier Richard Henderson diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 09967e10508..40eab1bc311 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -2431,10 +2431,22 @@ && REGNO (operands[1]) == 0) have_dep_anti = 1; if (! have_dep_anti) - if (GENERATE_BRANCHLIKELY) - return \"%(beql\\t%0,%1,.+8\\n\\tbreak\\t%2%)\"; - else - return \"%(bne\\t%0,%1,.+12\\n\\tnop\\n\\tbreak\\t%2%)\"; + { + if (GENERATE_BRANCHLIKELY) + { + if (GET_CODE (operands[1]) == CONST_INT) + return \"%(beql\\t%0,$0,.+8\\n\\tbreak\\t%2%)\"; + else + return \"%(beql\\t%0,%1,.+8\\n\\tbreak\\t%2%)\"; + } + else + { + if (GET_CODE (operands[1]) == CONST_INT) + return \"%(bne\\t%0,$0,.+12\\n\\tnop\\n\\tbreak\\t%2%)\"; + else + return \"%(bne\\t%0,%1,.+12\\n\\tnop\\n\\tbreak\\t%2%)\"; + } + } return \"\"; }" [(set_attr "type" "unknown") -- 2.30.2