Found in one of the ubsan testcases: a branch went out of range because
of this incorrect length.  Committing to mainline.


Segher


2016-06-02  Segher Boessenkool  <seg...@kernel.crashing.org>

        * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.

---
 gcc/config/rs6000/dfp.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/dfp.md b/gcc/config/rs6000/dfp.md
index a631ff5..7029eb6 100644
--- a/gcc/config/rs6000/dfp.md
+++ b/gcc/config/rs6000/dfp.md
@@ -173,7 +173,8 @@ (define_insn "trunctddd2"
    (clobber (match_scratch:TD 2 "=d"))]
   "TARGET_DFP"
   "drdpq %2,%1\;fmr %0,%2"
-  [(set_attr "type" "fp")])
+  [(set_attr "type" "fp")
+   (set_attr "length" "8")])
 
 (define_insn "adddd3"
   [(set (match_operand:DD 0 "gpc_reg_operand" "=d")
-- 
1.9.3

Reply via email to