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
f57f9cb8
Commit
f57f9cb8
authored
Sep 04, 2002
by
Dale Johannesen
Committed by
Dale Johannesen
Sep 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix struct rtx_const so veclo and vechi don't share storage.
From-SVN: r56825
parent
ed6cc1f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
gcc/ChangeLog
+5
-0
gcc/varasm.c
+8
-6
No files found.
gcc/ChangeLog
View file @
f57f9cb8
2002
-
09
-
04
Dale
Johannesen
<
dalej
@apple
.
com
>
*
varasm
.
c
(
struct
rtx_const
,
decode_rtx_const
)
:
Make
veclo
and
vechi
fields
not
share
storage
.
Thu
Sep
5
00
:
34
:
33
2002
J
"orn Rennecke <joern.rennecke@superh.com>
* loop.c (scan_loop): Don't mark separate insns out of a libcall
...
...
gcc/varasm.c
View file @
f57f9cb8
...
...
@@ -2167,8 +2167,10 @@ struct rtx_const GTY(())
}
GTY
((
tag
(
"0"
)))
di
;
/* The max vector size we have is 8 wide. This should be enough. */
HOST_WIDE_INT
veclo
[
16
];
HOST_WIDE_INT
vechi
[
16
];
struct
rtx_const_vec
{
HOST_WIDE_INT
veclo
;
HOST_WIDE_INT
vechi
;
}
GTY
((
tag
(
"2"
)))
vec
[
16
];
}
GTY
((
desc
(
"%1.kind >= RTX_INT"
),
descbits
(
"1"
)))
un
;
};
...
...
@@ -2980,13 +2982,13 @@ decode_rtx_const (mode, x, value)
elt
=
CONST_VECTOR_ELT
(
x
,
i
);
if
(
GET_MODE_CLASS
(
mode
)
==
MODE_VECTOR_INT
)
{
value
->
un
.
vec
lo
[
i
]
=
(
HOST_WIDE_INT
)
INTVAL
(
elt
);
value
->
un
.
vec
hi
[
i
]
=
0
;
value
->
un
.
vec
[
i
].
veclo
=
(
HOST_WIDE_INT
)
INTVAL
(
elt
);
value
->
un
.
vec
[
i
].
vechi
=
0
;
}
else
if
(
GET_MODE_CLASS
(
mode
)
==
MODE_VECTOR_FLOAT
)
{
value
->
un
.
vec
lo
[
i
]
=
(
HOST_WIDE_INT
)
CONST_DOUBLE_LOW
(
elt
);
value
->
un
.
vec
hi
[
i
]
=
(
HOST_WIDE_INT
)
CONST_DOUBLE_HIGH
(
elt
);
value
->
un
.
vec
[
i
].
veclo
=
(
HOST_WIDE_INT
)
CONST_DOUBLE_LOW
(
elt
);
value
->
un
.
vec
[
i
].
vechi
=
(
HOST_WIDE_INT
)
CONST_DOUBLE_HIGH
(
elt
);
}
else
abort
();
...
...
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