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
e879eb2f
Commit
e879eb2f
authored
Apr 24, 2002
by
Jan Hubicka
Committed by
Jan Hubicka
Apr 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (canonicalize_condition): Use gen_int_mode.
From-SVN: r52715
parent
4287a893
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
gcc/ChangeLog
+4
-0
gcc/loop.c
+4
-4
No files found.
gcc/ChangeLog
View file @
e879eb2f
Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
* loop.c (canonicalize_condition): Use gen_int_mode.
2002-04-24 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/altivec.h: Cleanup file. Add non individual
...
...
gcc/loop.c
View file @
e879eb2f
...
...
@@ -9264,7 +9264,7 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
{
case
LE
:
if
((
unsigned
HOST_WIDE_INT
)
const_val
!=
max_val
>>
1
)
code
=
LT
,
op1
=
GEN_INT
(
const_val
+
1
);
code
=
LT
,
op1
=
gen_int_mode
(
const_val
+
1
,
GET_MODE
(
op0
)
);
break
;
/* When cross-compiling, const_val might be sign-extended from
...
...
@@ -9273,17 +9273,17 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
if
((
HOST_WIDE_INT
)
(
const_val
&
max_val
)
!=
(((
HOST_WIDE_INT
)
1
<<
(
GET_MODE_BITSIZE
(
GET_MODE
(
op0
))
-
1
))))
code
=
GT
,
op1
=
GEN_INT
(
const_val
-
1
);
code
=
GT
,
op1
=
gen_int_mode
(
const_val
-
1
,
GET_MODE
(
op0
)
);
break
;
case
LEU
:
if
(
uconst_val
<
max_val
)
code
=
LTU
,
op1
=
GEN_INT
(
uconst_val
+
1
);
code
=
LTU
,
op1
=
gen_int_mode
(
uconst_val
+
1
,
GET_MODE
(
op0
)
);
break
;
case
GEU
:
if
(
uconst_val
!=
0
)
code
=
GTU
,
op1
=
GEN_INT
(
uconst_val
-
1
);
code
=
GTU
,
op1
=
gen_int_mode
(
uconst_val
-
1
,
GET_MODE
(
op0
)
);
break
;
default
:
...
...
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