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
2e676d78
Commit
2e676d78
authored
Apr 18, 2002
by
Bernd Schmidt
Committed by
Bernd Schmidt
Apr 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent aborts taking a vector mode subreg of a constant integer
From-SVN: r52467
parent
3d980b9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
gcc/ChangeLog
+4
-0
gcc/combine.c
+9
-0
No files found.
gcc/ChangeLog
View file @
2e676d78
...
...
@@ -4,6 +4,10 @@
(handle_vector_size_attribute): Use it to avoid generating a
new type node each time we are called.
* combine.c (subst): Avoid trying to make a vector mode subreg of
an integer constant.
(gen_lowpart_for_combine): Likewise.
2002-04-18 Roger Sayle <roger@eyesopen.com>
Jakub Jelinek <jakub@redhat.com>
...
...
gcc/combine.c
View file @
2e676d78
...
...
@@ -3538,6 +3538,9 @@ subst (x, from, to, in_dest, unique_copy)
if
(
GET_CODE
(
new
)
==
CONST_INT
&&
GET_CODE
(
x
)
==
SUBREG
)
{
if
(
VECTOR_MODE_P
(
GET_MODE
(
x
)))
return
gen_rtx_CLOBBER
(
VOIDmode
,
const0_rtx
);
x
=
simplify_subreg
(
GET_MODE
(
x
),
new
,
GET_MODE
(
SUBREG_REG
(
x
)),
SUBREG_BYTE
(
x
));
...
...
@@ -9800,6 +9803,12 @@ gen_lowpart_for_combine (mode, x)
||
GET_MODE_SIZE
(
GET_MODE
(
x
))
==
GET_MODE_SIZE
(
mode
)))
return
gen_rtx_CLOBBER
(
GET_MODE
(
x
),
const0_rtx
);
/* simplify_gen_subreg does not know how to handle the case where we try
to convert an integer constant to a vector.
??? We could try to teach it to generate CONST_VECTORs. */
if
(
GET_MODE
(
x
)
==
VOIDmode
&&
VECTOR_MODE_P
(
mode
))
return
gen_rtx_CLOBBER
(
GET_MODE
(
x
),
const0_rtx
);
/* X might be a paradoxical (subreg (mem)). In that case, gen_lowpart
won't know what to do. So we will strip off the SUBREG here and
process normally. */
...
...
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