Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
49a7ec10
Commit
49a7ec10
authored
Jul 31, 1996
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(negtf2,abstf2): Fix v9 case.
From-SVN: r12578
parent
a24d629d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
gcc/config/sparc/sparc.md
+14
-12
No files found.
gcc/config/sparc/sparc.md
View file @
49a7ec10
...
...
@@ -4769,20 +4769,21 @@
(define_insn "negtf2"
[(set (match_operand:TF 0 "register_operand" "=e,e")
(neg:TF (match_operand:TF 1 "register_operand" "0,e")))]
; We don't use quad float insns here so we don't need TARGET_HARD_QUAD.
"TARGET_FPU"
"*
{
if (TARGET_V9)
return \"fnegd %1,%0\"; /* Can't use fnegs, won't work with upper regs. */
else if (which_alternative == 0)
return \"fnegs %0,%0\";
/* v9: can't use fnegs, won't work with upper regs. */
if (which_alternative == 0)
return TARGET_V9 ? \"fnegd %0,%0\" : \"fnegs %0,%0\";
else
return \"fnegs %1,%0\;fmovs %R1,%R0\;fmovs %S1,%S0\;fmovs %T1,%T0\";
return TARGET_V9 ? \"fnegd %1,%0\;fmovd %S1,%S0\"
: \"fnegs %1,%0\;fmovs %R1,%R0\;fmovs %S1,%S0\;fmovs %T1,%T0\";
}"
[(set_attr "type" "fp")
(set_attr_alternative "length"
[(const_int 1)
(if_then_else (eq_attr "isa" "v9") (const_int
1
) (const_int 4))])])
(if_then_else (eq_attr "isa" "v9") (const_int
2
) (const_int 4))])])
(define_insn "negdf2"
[(set (match_operand:DF 0 "register_operand" "=e,e")
...
...
@@ -4812,20 +4813,21 @@
(define_insn "abstf2"
[(set (match_operand:TF 0 "register_operand" "=e,e")
(abs:TF (match_operand:TF 1 "register_operand" "0,e")))]
; We don't use quad float insns here so we don't need TARGET_HARD_QUAD.
"TARGET_FPU"
"*
{
if (TARGET_V9)
return \"fabsd %1,%0\"; /* Can't use fabss, won't work with upper regs. */
else if (which_alternative == 0)
return \"fabss %0,%0\";
/* v9: can't use fabss, won't work with upper regs. */
if (which_alternative == 0)
return TARGET_V9 ? \"fabsd %0,%0\" : \"fabss %0,%0\";
else
return \"fabss %1,%0\;fmovs %R1,%R0\;fmovs %S1,%S0\;fmovs %T1,%T0\";
return TARGET_V9 ? \"fabsd %1,%0\;fmovd %S1,%S0\"
: \"fabss %1,%0\;fmovs %R1,%R0\;fmovs %S1,%S0\;fmovs %T1,%T0\";
}"
[(set_attr "type" "fp")
(set_attr_alternative "length"
[(const_int 1)
(if_then_else (eq_attr "isa" "v9") (const_int
1
) (const_int 4))])])
(if_then_else (eq_attr "isa" "v9") (const_int
2
) (const_int 4))])])
(define_insn "absdf2"
[(set (match_operand:DF 0 "register_operand" "=e,e")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment