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
8365d59b
Commit
8365d59b
authored
32 years ago
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_ior): Don't handle reg operands.
From-SVN: r3636
parent
d5db6922
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
22 deletions
+17
-22
gcc/config/pa/pa.c
+17
-22
No files found.
gcc/config/pa/pa.c
View file @
8365d59b
...
...
@@ -1445,34 +1445,29 @@ char *
output_ior
(
operands
)
rtx
*
operands
;
{
if
(
GET_CODE
(
operands
[
2
])
==
CONST_INT
)
{
unsigned
mask
=
INTVAL
(
operands
[
2
]);
int
bs0
,
bs1
,
bs2
,
p
,
len
;
unsigned
mask
=
INTVAL
(
operands
[
2
]);
int
bs0
,
bs1
,
bs2
,
p
,
len
;
if
(
INTVAL
(
operands
[
2
])
==
0
)
return
"copy %1,%0"
;
if
(
INTVAL
(
operands
[
2
])
==
0
)
return
"copy %1,%0"
;
for
(
bs0
=
0
;
bs0
<
32
;
bs0
++
)
if
((
mask
&
(
1
<<
bs0
))
!=
0
)
break
;
for
(
bs0
=
0
;
bs0
<
32
;
bs0
++
)
if
((
mask
&
(
1
<<
bs0
))
!=
0
)
break
;
for
(
bs1
=
bs0
;
bs1
<
32
;
bs1
++
)
if
((
mask
&
(
1
<<
bs1
))
==
0
)
break
;
for
(
bs1
=
bs0
;
bs1
<
32
;
bs1
++
)
if
((
mask
&
(
1
<<
bs1
))
==
0
)
break
;
if
(
bs1
!=
32
&&
((
unsigned
)
1
<<
bs1
)
<=
mask
)
abort
();
if
(
bs1
!=
32
&&
((
unsigned
)
1
<<
bs1
)
<=
mask
)
abort
();
p
=
31
-
bs0
;
len
=
bs1
-
bs0
;
p
=
31
-
bs0
;
len
=
bs1
-
bs0
;
operands
[
2
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
p
);
operands
[
3
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
len
);
return
"depi -1,%2,%3,%0"
;
}
else
return
"or %1,%2,%0"
;
operands
[
2
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
p
);
operands
[
3
]
=
gen_rtx
(
CONST_INT
,
VOIDmode
,
len
);
return
"depi -1,%2,%3,%0"
;
}
/* Output an ascii string. */
...
...
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