aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9
diff options
context:
space:
mode:
authorIceberg Fu <Chao-Ying.Fu@imgtec.com>2014-04-14 21:23:25 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2014-04-22 16:16:46 -0700
commit62347ae6628bd4460940b11f9ab2ddcb7dbf5e07 (patch)
tree6bdae380dc1394aa9f2ad028e37db31b870a8f4d /gcc-4.9
parent9e6cad0bf43b0a704125f8e3302d5c49e90105e0 (diff)
downloadtoolchain_gcc-62347ae6628bd4460940b11f9ab2ddcb7dbf5e07.tar.gz
toolchain_gcc-62347ae6628bd4460940b11f9ab2ddcb7dbf5e07.tar.bz2
toolchain_gcc-62347ae6628bd4460940b11f9ab2ddcb7dbf5e07.zip
[4.9] Extend MIPS GCC4.9 -mldc1-sdc1 to control ldxc1/sdxc1 too
See 79ba8bc76c0534e9f2544af2d1943b1581c84c77 Change-Id: I79a7c1cb378ca3f75d55ca4303a17ecbf7ecff1b
Diffstat (limited to 'gcc-4.9')
-rw-r--r--gcc-4.9/gcc/config/mips/mips.md4
-rw-r--r--gcc-4.9/gcc/config/mips/mips.opt2
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc-4.9/gcc/config/mips/mips.md b/gcc-4.9/gcc/config/mips/mips.md
index 1e3e9e659..9bf8cb7f4 100644
--- a/gcc-4.9/gcc/config/mips/mips.md
+++ b/gcc-4.9/gcc/config/mips/mips.md
@@ -4531,7 +4531,7 @@
[(set (match_operand:ANYF 0 "register_operand" "=f")
(mem:ANYF (plus:P (match_operand:P 1 "register_operand" "d")
(match_operand:P 2 "register_operand" "d"))))]
- "ISA_HAS_LXC1_SXC1"
+ "ISA_HAS_LXC1_SXC1 && (<MODE>mode == SFmode || TARGET_LDC1_SDC1)"
"<ANYF:loadx>\t%0,%1(%2)"
[(set_attr "type" "fpidxload")
(set_attr "mode" "<ANYF:UNITMODE>")])
@@ -4540,7 +4540,7 @@
[(set (mem:ANYF (plus:P (match_operand:P 1 "register_operand" "d")
(match_operand:P 2 "register_operand" "d")))
(match_operand:ANYF 0 "register_operand" "f"))]
- "ISA_HAS_LXC1_SXC1"
+ "ISA_HAS_LXC1_SXC1 && (<MODE>mode == SFmode || TARGET_LDC1_SDC1)"
"<ANYF:storex>\t%0,%1(%2)"
[(set_attr "type" "fpidxstore")
(set_attr "mode" "<ANYF:UNITMODE>")])
diff --git a/gcc-4.9/gcc/config/mips/mips.opt b/gcc-4.9/gcc/config/mips/mips.opt
index 6a1221f4f..dd8aff479 100644
--- a/gcc-4.9/gcc/config/mips/mips.opt
+++ b/gcc-4.9/gcc/config/mips/mips.opt
@@ -269,7 +269,7 @@ Use MIPS-3D instructions
mldc1-sdc1
Target Report Var(TARGET_LDC1_SDC1) Init(1)
-Use ldc1 and sdc1 instruction
+Use ldc1/ldxc1 and sdc1/sdxc1 instruction
mllsc
Target Report Mask(LLSC)