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
c819adf2
Commit
c819adf2
authored
Aug 10, 1992
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_zdepi): New function (contents from pa.md).
From-SVN: r1789
parent
ba0443bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
gcc/config/pa/pa.c
+39
-0
No files found.
gcc/config/pa/pa.c
View file @
c819adf2
...
...
@@ -699,6 +699,45 @@ singlemove_string (operands)
}
char
*
output_zdepi
(
operands
)
rtx
*
operands
;
{
unsigned
long
x
=
INTVAL
(
operands
[
1
]);
int
i
;
for
(
i
=
0
;
i
<
32
;
i
++
)
{
if
((
x
&
1
)
!=
0
)
break
;
x
>>=
1
;
}
if
((
x
&
0x10
)
==
0
)
{
operands
[
1
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
x
);
operands
[
2
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
31
-
i
);
operands
[
3
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
32
-
i
<
4
?
32
-
i
:
4
);
}
else
{
operands
[
1
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
(
x
&
0xf
)
-
0x10
);
operands
[
2
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
31
-
i
);
x
>>=
5
;
for
(
i
=
0
;
i
<
32
;
i
++
)
{
if
((
x
&
1
)
==
0
)
break
;
x
>>=
1
;
}
operands
[
3
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
i
+
5
);
}
return
"zdepi %1,%2,%3,%0"
;
}
/* Output assembler code to perform a doubleword move insn
with operands OPERANDS. */
...
...
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