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
9dd11dcb
Commit
9dd11dcb
authored
Apr 16, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_field_assignment): Allow XOR in final case.
From-SVN: r11820
parent
7f9ca37e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/combine.c
+3
-3
No files found.
gcc/combine.c
View file @
9dd11dcb
...
@@ -6602,7 +6602,7 @@ make_field_assignment (x)
...
@@ -6602,7 +6602,7 @@ make_field_assignment (x)
return
x
;
return
x
;
}
}
/* If SRC is (ior (ashift (const_int 1) POS
DEST)
), this is a set of a
/* If SRC is (ior (ashift (const_int 1) POS
) DEST
), this is a set of a
one-bit field. */
one-bit field. */
else
if
(
GET_CODE
(
src
)
==
IOR
&&
GET_CODE
(
XEXP
(
src
,
0
))
==
ASHIFT
else
if
(
GET_CODE
(
src
)
==
IOR
&&
GET_CODE
(
XEXP
(
src
,
0
))
==
ASHIFT
&&
XEXP
(
XEXP
(
src
,
0
),
0
)
==
const1_rtx
&&
XEXP
(
XEXP
(
src
,
0
),
0
)
==
const1_rtx
...
@@ -6616,14 +6616,14 @@ make_field_assignment (x)
...
@@ -6616,14 +6616,14 @@ make_field_assignment (x)
}
}
/* The other case we handle is assignments into a constant-position
/* The other case we handle is assignments into a constant-position
field. They look like (ior (and DEST C1) OTHER). If C1 represents
field. They look like (ior
/xor
(and DEST C1) OTHER). If C1 represents
a mask that has all one bits except for a group of zero bits and
a mask that has all one bits except for a group of zero bits and
OTHER is known to have zeros where C1 has ones, this is such an
OTHER is known to have zeros where C1 has ones, this is such an
assignment. Compute the position and length from C1. Shift OTHER
assignment. Compute the position and length from C1. Shift OTHER
to the appropriate position, force it to the required mode, and
to the appropriate position, force it to the required mode, and
make the extraction. Check for the AND in both operands. */
make the extraction. Check for the AND in both operands. */
if
(
GET_CODE
(
src
)
!=
IOR
)
if
(
GET_CODE
(
src
)
!=
IOR
&&
GET_CODE
(
src
)
!=
XOR
)
return
x
;
return
x
;
rhs
=
expand_compound_operation
(
XEXP
(
src
,
0
));
rhs
=
expand_compound_operation
(
XEXP
(
src
,
0
));
...
...
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