From 1dcf988e44886833678a144ac97033e4a20ddd31 Mon Sep 17 00:00:00 2001 From: Daniel Cederman Date: Sun, 16 Jul 2017 10:43:15 +0000 Subject: [PATCH] sparc.md (divdf3_fix): Add NOP to prevent back to back store errata sensitive sequence from being... * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back to back store errata sensitive sequence from being generated. (sqrtdf2_fix): Likewise. From-SVN: r250234 --- gcc/ChangeLog | 6 ++++++ gcc/config/sparc/sparc.md | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9470e63e365..c6b933ddefb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-07-16 Daniel Cederman + + * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back + to back store errata sensitive sequence from being generated. + (sqrtdf2_fix): Likewise. + 2017-07-07 Jan Hubicka * tree-ssa-threadupdate.c (compute_path_counts, diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index afdc7d12700..b154003c54a 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -6171,10 +6171,10 @@ visl") (div:DF (match_operand:DF 1 "register_operand" "e") (match_operand:DF 2 "register_operand" "e")))] "TARGET_FPU && sparc_fix_ut699" - "fdivd\t%1, %2, %0\n\tstd\t%0, [%%sp-8]" + "fdivd\t%1, %2, %0\n\tstd\t%0, [%%sp-8]\n\tnop" [(set_attr "type" "fpdivd") (set_attr "fptype" "double") - (set_attr "length" "2")]) + (set_attr "length" "3")]) (define_insn "divsf3" [(set (match_operand:SF 0 "register_operand" "=f") @@ -6423,10 +6423,10 @@ visl") [(set (match_operand:DF 0 "register_operand" "=e") (sqrt:DF (match_operand:DF 1 "register_operand" "e")))] "TARGET_FPU && sparc_fix_ut699" - "fsqrtd\t%1, %0\n\tstd\t%0, [%%sp-8]" + "fsqrtd\t%1, %0\n\tstd\t%0, [%%sp-8]\n\tnop" [(set_attr "type" "fpsqrtd") (set_attr "fptype" "double") - (set_attr "length" "2")]) + (set_attr "length" "3")]) (define_insn "sqrtsf2" [(set (match_operand:SF 0 "register_operand" "=f") -- 2.30.2