Commit 58733f96 by Michael Meissner

Define long double versions of sin/cos

From-SVN: r9055
parent f33985c6
...@@ -3489,6 +3489,13 @@ ...@@ -3489,6 +3489,13 @@
&& (TARGET_IEEE_FP || flag_fast_math) " && (TARGET_IEEE_FP || flag_fast_math) "
"fsin") "fsin")
(define_insn "sinxf2"
[(set (match_operand:XF 0 "register_operand" "=f")
(unspec:XF [(match_operand:XF 1 "register_operand" "0")] 1))]
"! TARGET_NO_FANCY_MATH_387 && TARGET_80387
&& (TARGET_IEEE_FP || flag_fast_math) "
"fsin")
(define_insn "cosdf2" (define_insn "cosdf2"
[(set (match_operand:DF 0 "register_operand" "=f") [(set (match_operand:DF 0 "register_operand" "=f")
(unspec:DF [(match_operand:DF 1 "register_operand" "0")] 2))] (unspec:DF [(match_operand:DF 1 "register_operand" "0")] 2))]
...@@ -3511,6 +3518,13 @@ ...@@ -3511,6 +3518,13 @@
&& (TARGET_IEEE_FP || flag_fast_math) " && (TARGET_IEEE_FP || flag_fast_math) "
"fcos") "fcos")
(define_insn "cosxf2"
[(set (match_operand:XF 0 "register_operand" "=f")
(unspec:XF [(match_operand:XF 1 "register_operand" "0")] 2))]
"! TARGET_NO_FANCY_MATH_387 && TARGET_80387
&& (TARGET_IEEE_FP || flag_fast_math) "
"fcos")
;;- one complement instructions ;;- one complement instructions
(define_insn "one_cmplsi2" (define_insn "one_cmplsi2"
......
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