aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-11-16 21:37:59 +0000
committerMaciej W. Rozycki <macro@gcc.gnu.org>2016-11-16 21:37:59 +0000
commit9d2082e72de26d70e0fcb84aeba2fa0a2ca5ba5d (patch)
tree5480d5c57eb4bbc402e124bd591dba08f8dd7394 /gcc
parentd08c0ea31303046ce5e7da8ba8a2ff112589bc86 (diff)
downloadgcc-9d2082e72de26d70e0fcb84aeba2fa0a2ca5ba5d.zip
gcc-9d2082e72de26d70e0fcb84aeba2fa0a2ca5ba5d.tar.gz
gcc-9d2082e72de26d70e0fcb84aeba2fa0a2ca5ba5d.tar.bz2
MIPS16/GCC: Correct `casesi_internal_mips16_<mode>'s RTL pattern
gcc/ * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the `ltu' rather than `leu' operation in the RTL pattern From-SVN: r242515
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.md2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 30161a0..a8ff380 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
+ * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
+ `ltu' rather than `leu' operation in the RTL pattern
+
+2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
+
* config/mips/mips.md (casesi_internal_mips16_<mode>): Add
missing <d> instruction prefixes throughout. Correct
formatting.
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index 0ccee9e..3aea5a7 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -6401,7 +6401,7 @@
(define_insn "casesi_internal_mips16_<mode>"
[(set (pc)
(if_then_else
- (leu (match_operand:SI 0 "register_operand" "d")
+ (ltu (match_operand:SI 0 "register_operand" "d")
(match_operand:SI 1 "arith_operand" "dI"))
(unspec:P
[(match_dup 0)