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
6d7512e4
Commit
6d7512e4
authored
Jul 30, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ffssi2 and ffshi2 recognizers): Generate unique labels by hand.
From-SVN: r5041
parent
81d57b8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
4 deletions
+40
-4
gcc/config/i386/i386.md
+40
-4
No files found.
gcc/config/i386/i386.md
View file @
6d7512e4
...
...
@@ -4461,15 +4461,33 @@
"
*
{
rtx xops
[
3
]
;
static int ffssi_label_number;
char buffer
[
30
]
;
xops
[
0
]
= operands
[
0
]
;
xops
[
1
]
= operands
[
1
]
;
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 (
\"
jnz 1f
\"
, xops);
#ifdef LOCAL_LABEL_PREFIX
sprintf (buffer,
\"
jnz %sLFFSSI%d
\"
,
LOCAL_LABEL_PREFIX, ffssi_label_number);
#else
sprintf (buffer,
\"
jnz %sLFFSSI%d
\"
,
\"\"
, ffssi_label_number);
#endif
output_asm_insn (buffer, xops);
output_asm_insn (AS2 (mov%L0,%2,%0), xops);
output_asm_insn (
\"
1:
\"
, xops);
#ifdef LOCAL_LABEL_PREFIX
sprintf (buffer,
\"
%sLFFSSI%d:
\"
,
LOCAL_LABEL_PREFIX, ffssi_label_number);
#else
sprintf (buffer,
\"
%sLFFSSI%d:
\"
,
\"\"
, ffssi_label_number);
#endif
output_asm_insn (buffer, xops);
ffssi_label_number++;
return
\"\"
;
}")
...
...
@@ -4490,14 +4508,32 @@
"
*
{
rtx xops
[
3
]
;
static int ffshi_label_number;
char buffer
[
30
]
;
xops
[
0
]
= operands
[
0
]
;
xops
[
1
]
= operands
[
1
]
;
xops
[
2
]
= constm1_rtx;
output_asm_insn (AS2 (bsf%W0,%1,%0), xops);
output_asm_insn (
\"
jnz 1f
\"
, xops);
#ifdef LOCAL_LABEL_PREFIX
sprintf (buffer,
\"
jnz %sLFFSHI%d
\"
,
LOCAL_LABEL_PREFIX, ffshi_label_number);
#else
sprintf (buffer,
\"
jnz %sLFFSHI%d
\"
,
\"\"
, ffshi_label_number);
#endif
output_asm_insn (buffer, xops);
output_asm_insn (AS2 (mov%W0,%2,%0), xops);
output_asm_insn (
\"
1:
\"
, xops);
#ifdef LOCAL_LABEL_PREFIX
sprintf (buffer,
\"
%sLFFSHI%d:
\"
,
LOCAL_LABEL_PREFIX, ffshi_label_number);
#else
sprintf (buffer,
\"
%sLFFSHI%d:
\"
,
\"\"
, ffshi_label_number);
#endif
output_asm_insn (buffer, xops);
ffshi_label_number++;
return
\"\"
;
}")
...
...
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