From 62347ae6628bd4460940b11f9ab2ddcb7dbf5e07 Mon Sep 17 00:00:00 2001 From: Iceberg Fu Date: Mon, 14 Apr 2014 21:23:25 -0700 Subject: [4.9] Extend MIPS GCC4.9 -mldc1-sdc1 to control ldxc1/sdxc1 too See 79ba8bc76c0534e9f2544af2d1943b1581c84c77 Change-Id: I79a7c1cb378ca3f75d55ca4303a17ecbf7ecff1b --- gcc-4.9/gcc/config/mips/mips.md | 4 ++-- gcc-4.9/gcc/config/mips/mips.opt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc-4.9/gcc') 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 == SFmode || TARGET_LDC1_SDC1)" "\t%0,%1(%2)" [(set_attr "type" "fpidxload") (set_attr "mode" "")]) @@ -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 == SFmode || TARGET_LDC1_SDC1)" "\t%0,%1(%2)" [(set_attr "type" "fpidxstore") (set_attr "mode" "")]) 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) -- cgit v1.2.3