summaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-07 00:02:14 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-07 00:02:14 +0000
commit0f71ae501d47a031cf65ca3420f8811449cc7551 (patch)
tree682eba8a0ec2dd87f761dc3311658512ff06fdca /gcc/config/sh
parentee12e5fbe6ce29bb5492d56cc53d3369a3114047 (diff)
downloadgcc-0f71ae501d47a031cf65ca3420f8811449cc7551.tar.gz
* config/sh/sh.md (rsqrtsf2): Adjust for the recent rsqrt_optab changes
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231344 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/sh.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md
index 083febe5954..b6fe05c0edb 100644
--- a/gcc/config/sh/sh.md
+++ b/gcc/config/sh/sh.md
@@ -13744,12 +13744,11 @@ label:
(define_insn "rsqrtsf2"
[(set (match_operand:SF 0 "fp_arith_reg_operand" "=f")
- (div:SF (match_operand:SF 1 "immediate_operand" "i")
- (sqrt:SF (match_operand:SF 2 "fp_arith_reg_operand" "0"))))
+ (unspec:SF [(match_operand:SF 1 "fp_arith_reg_operand" "0")]
+ UNSPEC_FSRRA))
(clobber (reg:SI FPSCR_STAT_REG))
(use (reg:SI FPSCR_MODES_REG))]
- "TARGET_FPU_ANY && TARGET_FSRRA
- && operands[1] == CONST1_RTX (SFmode)"
+ "TARGET_FPU_ANY && TARGET_FSRRA"
"fsrra %0"
[(set_attr "type" "fsrra")
(set_attr "fp_mode" "single")])