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
ad626759
Commit
ad626759
authored
Nov 25, 1994
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment on ffs to say why optimizing it further is a bad idea.
From-SVN: r8564
parent
00f8ff66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/config/i386/i386.md
+4
-1
No files found.
gcc/config/i386/i386.md
View file @
ad626759
...
@@ -5439,6 +5439,10 @@
...
@@ -5439,6 +5439,10 @@
""
""
"operands
[
2
]
= gen_reg_rtx (SImode);")
"operands
[
2
]
= gen_reg_rtx (SImode);")
;; Note, you cannot optimize away the branch following the bsfl by assuming
;; that the destination is not modified if the input is 0, since not all
;; x86 implementations do this.
(define_insn ""
(define_insn ""
[
(set (match_operand:SI 0 "general_operand" "=&r")
[
(set (match_operand:SI 0 "general_operand" "=&r")
(plus:SI (ffs:SI (match_operand:SI 1 "general_operand" "rm"))
(plus:SI (ffs:SI (match_operand:SI 1 "general_operand" "rm"))
...
@@ -5453,7 +5457,6 @@
...
@@ -5453,7 +5457,6 @@
xops
[
0
]
= operands
[
0
]
;
xops
[
0
]
= operands
[
0
]
;
xops
[
1
]
= operands
[
1
]
;
xops
[
1
]
= operands
[
1
]
;
xops
[
2
]
= constm1_rtx;
xops
[
2
]
= constm1_rtx;
/
* Can there be a way to avoid the jump here? *
/
output_asm_insn (AS2 (bsf%L0,%1,%0), xops);
output_asm_insn (AS2 (bsf%L0,%1,%0), xops);
#ifdef LOCAL_LABEL_PREFIX
#ifdef LOCAL_LABEL_PREFIX
sprintf (buffer,
\"
jnz %sLFFSSI%d
\"
,
sprintf (buffer,
\"
jnz %sLFFSSI%d
\"
,
...
...
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