projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a36846
)
(gen_lowpart): If gen_lowpart_common fails for a REG, load it into a
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 14 Sep 1995 20:20:28 +0000
(16:20 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 14 Sep 1995 20:20:28 +0000
(16:20 -0400)
pseudo and try again.
From-SVN: r10349
gcc/emit-rtl.c
patch
|
blob
|
history
diff --git
a/gcc/emit-rtl.c
b/gcc/emit-rtl.c
index
1404770
..
9600f2f
100644
(file)
--- a/
gcc/emit-rtl.c
+++ b/
gcc/emit-rtl.c
@@
-857,6
+857,13
@@
gen_lowpart (mode, x)
if (result)
return result;
+ else if (GET_CODE (x) == REG)
+ {
+ /* Must be a hard reg that's not valid in MODE. */
+ result = gen_lowpart_common (mode, copy_to_reg (x));
+ if (result == 0)
+ abort ();
+ }
else if (GET_CODE (x) == MEM)
{
/* The only additional case we can do is MEM. */