aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arc/fpu.md
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@gmail.com>2020-03-03 10:34:50 +0200
committerClaudiu Zissulescu <claziss@gmail.com>2020-03-03 10:34:50 +0200
commit9c3044a210d69d475f76e4e269752e21ca4d3ac0 (patch)
tree5ef211f502e1ab534201a960bcea09019a9f13e7 /gcc/config/arc/fpu.md
parentadaa539557bea248e81b3972d10b3b04cfe1c600 (diff)
downloadgcc-9c3044a210d69d475f76e4e269752e21ca4d3ac0.zip
gcc-9c3044a210d69d475f76e4e269752e21ca4d3ac0.tar.gz
gcc-9c3044a210d69d475f76e4e269752e21ca4d3ac0.tar.bz2
arc: Use accl_operand predicate for fma instructions.
With the refurbish of ARC600' accumulator support, the mlo_operand doesn't reflect the proper low accumulator register for the newer ARCv2 accumulator register used by the fma instructions. Hence, replace it with accl_operand predicate. gcc/ xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.md (fmasf4_fpu): Use accl_operand predicate. (fnmasf4_fpu): Likewise.
Diffstat (limited to 'gcc/config/arc/fpu.md')
-rw-r--r--gcc/config/arc/fpu.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/arc/fpu.md b/gcc/config/arc/fpu.md
index 6729795..14ebd86 100644
--- a/gcc/config/arc/fpu.md
+++ b/gcc/config/arc/fpu.md
@@ -89,7 +89,7 @@
[(set (match_operand:SF 0 "register_operand" "=r,r,r,r,r")
(fma:SF (match_operand:SF 1 "nonmemory_operand" "%0,r,0,r,F")
(match_operand:SF 2 "nonmemory_operand" "r,r,F,F,r")
- (match_operand:SF 3 "mlo_operand" "")))]
+ (match_operand:SF 3 "accl_operand" "")))]
"TARGET_FP_SP_FUSED
&& (register_operand (operands[1], SFmode)
|| register_operand (operands[2], SFmode))"
@@ -104,7 +104,7 @@
[(set (match_operand:SF 0 "register_operand" "=r,r,r,r,r")
(fma:SF (neg:SF (match_operand:SF 1 "nonmemory_operand" "%0,r,0,r,F"))
(match_operand:SF 2 "nonmemory_operand" "r,r,F,F,r")
- (match_operand:SF 3 "mlo_operand" "")))]
+ (match_operand:SF 3 "accl_operand" "")))]
"TARGET_FP_SP_FUSED
&& (register_operand (operands[1], SFmode)
|| register_operand (operands[2], SFmode))"