From 67acacee0ead9b8b68e3ae8c9cfbeda6f702d792 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 6 Dec 2017 08:38:11 +0000 Subject: [PATCH] Revert 2017-11-29 Martin Aberg * config/sparc/sparc.md (divdf3_fix): Add NOP and adjust length to prevent b2bst errata sequence. (sqrtdf2_fix): Likewise. From-SVN: r255439 --- gcc/ChangeLog | 17 +++++++++++++---- gcc/config/sparc/sparc.md | 8 ++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b3f5784..ce17016 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2017-12-06 Eric Botcazou + + Revert + 2017-11-29 Martin Aberg + + * config/sparc/sparc.md (divdf3_fix): Add NOP and adjust length + to prevent b2bst errata sequence. + (sqrtdf2_fix): Likewise. + 2017-12-06 Jakub Jelinek PR tree-optimization/81945 @@ -556,14 +565,14 @@ 2017-11-29 Daniel Cederman * config/sparc/sparc.c (sparc_do_work_around_errata): Treat the - movsi_pic_gotdata_op instruction as a load for the UT699 errata - workaround. + movsi_pic_gotdata_op instruction as a load for the UT699 errata + workaround. 2017-11-29 Martin Aberg * config/sparc/sparc.md (divdf3_fix): Add NOP and adjust length - to prevent b2bst errata sequence. - (sqrtdf2_fix): Likewise. + to prevent b2bst errata sequence. + (sqrtdf2_fix): Likewise. 2017-11-29 Daniel Cederman diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index 4753c9b..d1af680 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -6212,10 +6212,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\tnop\n\tstd\t%0, [%%sp-8]\n\tnop" + "fdivd\t%1, %2, %0\n\tstd\t%0, [%%sp-8]\n\tnop" [(set_attr "type" "fpdivd") (set_attr "fptype" "double") - (set_attr "length" "4")]) + (set_attr "length" "3")]) (define_insn "divsf3" [(set (match_operand:SF 0 "register_operand" "=f") @@ -6464,10 +6464,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\tnop\n\tstd\t%0, [%%sp-8]\n\tnop" + "fsqrtd\t%1, %0\n\tstd\t%0, [%%sp-8]\n\tnop" [(set_attr "type" "fpsqrtd") (set_attr "fptype" "double") - (set_attr "length" "4")]) + (set_attr "length" "3")]) (define_insn "sqrtsf2" [(set (match_operand:SF 0 "register_operand" "=f") -- 2.7.4