Commit 42e86f85 by Jeff Law

pa.md (zero_extendqihi2): No need to explicitly set a length, the defaults are correct.

        * pa.md (zero_extendqihi2): No need to explicitly set a length,
        the defaults are correct.
        (zero_extendqisi2, floatsisf2, floatsidf2): Likewise.
        (floatdisf2, floatdidf2, fix_truncsfsi2): Likewise.
        (fix_truncdfsi2, fix_truncsfdi2, fix_truncdfdi2): Likewise.

From-SVN: r5181
parent 1bc695cd
...@@ -1592,8 +1592,7 @@ ...@@ -1592,8 +1592,7 @@
"@ "@
extru %1,31,8,%0 extru %1,31,8,%0
ldb%M1 %1,%0" ldb%M1 %1,%0"
[(set_attr "type" "unary,load") [(set_attr "type" "unary,load")])
(set_attr "length" "4,4")])
(define_insn "zero_extendqisi2" (define_insn "zero_extendqisi2"
[(set (match_operand:SI 0 "register_operand" "=r,r") [(set (match_operand:SI 0 "register_operand" "=r,r")
...@@ -1603,8 +1602,7 @@ ...@@ -1603,8 +1602,7 @@
"@ "@
extru %1,31,8,%0 extru %1,31,8,%0
ldb%M1 %1,%0" ldb%M1 %1,%0"
[(set_attr "type" "unary,load") [(set_attr "type" "unary,load")])
(set_attr "length" "4,4")])
;;- sign extension instructions ;;- sign extension instructions
...@@ -1671,8 +1669,7 @@ ...@@ -1671,8 +1669,7 @@
(float:SF (match_operand:SI 1 "register_operand" "fx")))] (float:SF (match_operand:SI 1 "register_operand" "fx")))]
"" ""
"fcnvxf,sgl,sgl %1,%0" "fcnvxf,sgl,sgl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
;; This pattern forces (set (reg:DF ...) (float:DF (const_int ...))) ;; This pattern forces (set (reg:DF ...) (float:DF (const_int ...)))
;; to be reloaded by putting the constant into memory. ;; to be reloaded by putting the constant into memory.
...@@ -1690,8 +1687,7 @@ ...@@ -1690,8 +1687,7 @@
(float:DF (match_operand:SI 1 "register_operand" "fx")))] (float:DF (match_operand:SI 1 "register_operand" "fx")))]
"" ""
"fcnvxf,sgl,dbl %1,%0" "fcnvxf,sgl,dbl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
(define_expand "floatunssisf2" (define_expand "floatunssisf2"
[(set (subreg:SI (match_dup 2) 1) [(set (subreg:SI (match_dup 2) 1)
...@@ -1718,16 +1714,14 @@ ...@@ -1718,16 +1714,14 @@
(float:SF (match_operand:DI 1 "register_operand" "x")))] (float:SF (match_operand:DI 1 "register_operand" "x")))]
"TARGET_SNAKE" "TARGET_SNAKE"
"fcnvxf,dbl,sgl %1,%0" "fcnvxf,dbl,sgl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
(define_insn "floatdidf2" (define_insn "floatdidf2"
[(set (match_operand:DF 0 "general_operand" "=x") [(set (match_operand:DF 0 "general_operand" "=x")
(float:DF (match_operand:DI 1 "register_operand" "x")))] (float:DF (match_operand:DI 1 "register_operand" "x")))]
"TARGET_SNAKE" "TARGET_SNAKE"
"fcnvxf,dbl,dbl %1,%0" "fcnvxf,dbl,dbl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
;; Convert a float to an actual integer. ;; Convert a float to an actual integer.
;; Truncation is performed as part of the conversion. ;; Truncation is performed as part of the conversion.
...@@ -1737,32 +1731,28 @@ ...@@ -1737,32 +1731,28 @@
(fix:SI (fix:SF (match_operand:SF 1 "register_operand" "fx"))))] (fix:SI (fix:SF (match_operand:SF 1 "register_operand" "fx"))))]
"" ""
"fcnvfxt,sgl,sgl %1,%0" "fcnvfxt,sgl,sgl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
(define_insn "fix_truncdfsi2" (define_insn "fix_truncdfsi2"
[(set (match_operand:SI 0 "register_operand" "=fx") [(set (match_operand:SI 0 "register_operand" "=fx")
(fix:SI (fix:DF (match_operand:DF 1 "register_operand" "fx"))))] (fix:SI (fix:DF (match_operand:DF 1 "register_operand" "fx"))))]
"" ""
"fcnvfxt,dbl,sgl %1,%0" "fcnvfxt,dbl,sgl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
(define_insn "fix_truncsfdi2" (define_insn "fix_truncsfdi2"
[(set (match_operand:DI 0 "register_operand" "=x") [(set (match_operand:DI 0 "register_operand" "=x")
(fix:DI (fix:SF (match_operand:SF 1 "register_operand" "x"))))] (fix:DI (fix:SF (match_operand:SF 1 "register_operand" "x"))))]
"TARGET_SNAKE" "TARGET_SNAKE"
"fcnvfxt,sgl,dbl %1,%0" "fcnvfxt,sgl,dbl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
(define_insn "fix_truncdfdi2" (define_insn "fix_truncdfdi2"
[(set (match_operand:DI 0 "register_operand" "=x") [(set (match_operand:DI 0 "register_operand" "=x")
(fix:DI (fix:DF (match_operand:DF 1 "register_operand" "x"))))] (fix:DI (fix:DF (match_operand:DF 1 "register_operand" "x"))))]
"TARGET_SNAKE" "TARGET_SNAKE"
"fcnvfxt,dbl,dbl %1,%0" "fcnvfxt,dbl,dbl %1,%0"
[(set_attr "type" "fpalu") [(set_attr "type" "fpalu")])
(set_attr "length" "4")])
;;- arithmetic instructions ;;- arithmetic instructions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment