Commit 8f0cc7f0 by Richard Stallman

(mulsi3_big): Use low half of result.

Use offset 1 in subregs in actual fmlow insn.
(fmlow pattern): Split this into alternatives for big and little end.

From-SVN: r2055
parent dac45ea3
...@@ -1725,9 +1725,9 @@ ...@@ -1725,9 +1725,9 @@
[(set (subreg:SI (match_dup 4) 1) (match_operand:SI 1 "general_operand" "")) [(set (subreg:SI (match_dup 4) 1) (match_operand:SI 1 "general_operand" ""))
(set (subreg:SI (match_dup 5) 1) (match_operand:SI 2 "general_operand" "")) (set (subreg:SI (match_dup 5) 1) (match_operand:SI 2 "general_operand" ""))
(clobber (match_dup 3)) (clobber (match_dup 3))
(set (subreg:SI (match_dup 3) 0) (set (subreg:SI (match_dup 3) 1)
(mult:SI (subreg:SI (match_dup 4) 0) (subreg:SI (match_dup 5) 0))) (mult:SI (subreg:SI (match_dup 4) 1) (subreg:SI (match_dup 5) 1)))
(set (match_operand:SI 0 "register_operand" "") (subreg:SI (match_dup 3) 0))] (set (match_operand:SI 0 "register_operand" "") (subreg:SI (match_dup 3) 1))]
"WORDS_BIG_ENDIAN" "WORDS_BIG_ENDIAN"
" "
{ {
...@@ -1740,7 +1740,14 @@ ...@@ -1740,7 +1740,14 @@
[(set (subreg:SI (match_operand:DI 0 "register_operand" "=f") 0) [(set (subreg:SI (match_operand:DI 0 "register_operand" "=f") 0)
(mult:SI (subreg:SI (match_operand:DI 1 "register_operand" "f") 0) (mult:SI (subreg:SI (match_operand:DI 1 "register_operand" "f") 0)
(subreg:SI (match_operand:DI 2 "register_operand" "f") 0)))] (subreg:SI (match_operand:DI 2 "register_operand" "f") 0)))]
"" "! WORDS_BIG_ENDIAN"
"fmlow.dd %2,%1,%0")
(define_insn ""
[(set (subreg:SI (match_operand:DI 0 "register_operand" "=f") 1)
(mult:SI (subreg:SI (match_operand:DI 1 "register_operand" "f") 1)
(subreg:SI (match_operand:DI 2 "register_operand" "f") 1)))]
"WORDS_BIG_ENDIAN"
"fmlow.dd %2,%1,%0") "fmlow.dd %2,%1,%0")
;;- and instructions (with compliment also) ;;- and instructions (with compliment also)
......
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