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
3595d104
Commit
3595d104
authored
29 years ago
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix abs not to use powerpc instructions on -mcpu=common
From-SVN: r9569
parent
a5a799d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
gcc/config/rs6000/rs6000.md
+12
-2
No files found.
gcc/config/rs6000/rs6000.md
View file @
3595d104
...
...
@@ -1044,7 +1044,12 @@
(abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0")))
(clobber (match_scratch:SI 2 "=&r,&r"))]
"!TARGET_POWER"
"{srai|srawi} %2,%1,31
\;
xor %0,%2,%1
\;
subf %0,%2,%0"
"
*
{
return (TARGET_POWERPC)
?
\"
{srai|srawi} %2,%1,31
\;
xor %0,%2,%1
\;
subf %0,%2,%0
\"
:
\"
{srai|srawi} %2,%1,31
\;
xor %0,%2,%1
\;
{sf|subfc} %0,%2,%0
\"
;
}"
[
(set_attr "length" "12")
]
)
(define_split
...
...
@@ -1068,7 +1073,12 @@
(neg:SI (abs:SI (match_operand:SI 1 "gpc_reg_operand" "r,0"))))
(clobber (match_scratch:SI 2 "=&r,&r"))]
"!TARGET_POWER"
"{srai|srawi} %2,%1,31
\;
xor %0,%2,%1
\;
subf %0,%0,%2"
"
*
{
return (TARGET_POWERPC)
?
\"
{srai|srawi} %2,%1,31
\;
xor %0,%2,%1
\;
subf %0,%0,%2
\"
:
\"
{srai|srawi} %2,%1,31
\;
xor %0,%2,%1
\;
{sf|subfc} %0,%0,%2
\"
;
}"
[
(set_attr "length" "12")
]
)
(define_split
...
...
This diff is collapsed.
Click to expand it.
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