aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-11-01 23:03:16 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-11-01 23:03:16 +0000
commit4a64ac908194d35f80a5352a9ecea57c61383808 (patch)
treef7d6b9be76dcc730cf8001c0eaa6286850a06623
parentdb0dafd8589925f606a0474c4bba0b09da6ef3af (diff)
downloadbinutils-4a64ac908194d35f80a5352a9ecea57c61383808.tar.gz
* config/tc-mips.c (is_delay_slot_valid): Simplify expression.
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-mips.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 97be1d463..ed0f29769 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * config/tc-mips.c (is_delay_slot_valid): Simplify expression.
+
2012-11-01 Chao-ying Fu <fu@mips.com>
* config/tc-mips.c (append_insn): Set fx_no_overflow for 16-bit
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 4f7ead9db..024b864fe 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -2321,8 +2321,7 @@ is_delay_slot_valid (const struct mips_opcode *mo)
return TRUE;
if (mo->pinfo == INSN_MACRO)
- return ((history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_16BIT) == 0
- ? TRUE : FALSE);
+ return (history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_16BIT) == 0;
if ((history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT) != 0
&& micromips_insn_length (mo) != 4)
return FALSE;