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
24c50999
Commit
24c50999
authored
Nov 06, 1996
by
Joern Rennecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gen_shl_and): Try to generate shorter constant for and.
From-SVN: r13101
parent
62acf5fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gcc/config/sh/sh.c
+5
-0
No files found.
gcc/config/sh/sh.c
View file @
24c50999
...
@@ -1273,6 +1273,11 @@ gen_shl_and (dest, left_rtx, mask_rtx, source)
...
@@ -1273,6 +1273,11 @@ gen_shl_and (dest, left_rtx, mask_rtx, source)
shift_gen_fun
=
gen_shifty_op
;
shift_gen_fun
=
gen_shifty_op
;
case
2
:
case
2
:
case
3
:
case
3
:
/* If the topmost bit that matters is set, set the topmost bits
that don't matter. This way, we might be able to get a shorter
signed constant. */
if
(
mask
&
((
HOST_WIDE_INT
)
1
<<
31
-
total_shift
))
mask
|=
(
HOST_WIDE_INT
)
~
0
<<
(
31
-
total_shift
);
/* Don't expand fine-grained when combining, because that will
/* Don't expand fine-grained when combining, because that will
make the pattern fail. */
make the pattern fail. */
if
(
rtx_equal_function_value_matters
if
(
rtx_equal_function_value_matters
...
...
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