aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1992-04-13 15:15:23 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1992-04-13 15:15:23 -0400
commitcd0ec0d175eee798161ac17ad2bd8d9ca80bf03c (patch)
tree134be20c1eee4094d6b3f79cc27d9b0484db71b4 /gcc
parent3391e1bc78ab135f11a25cda9e8e6fc9ff521440 (diff)
downloadgcc-cd0ec0d175eee798161ac17ad2bd8d9ca80bf03c.zip
gcc-cd0ec0d175eee798161ac17ad2bd8d9ca80bf03c.tar.gz
gcc-cd0ec0d175eee798161ac17ad2bd8d9ca80bf03c.tar.bz2
*** empty log message ***
From-SVN: r737
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index ee49f29..1af952f8 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -1061,6 +1061,17 @@
int start = INTVAL (operands[3]) & 31;
int size = INTVAL (operands[2]) & 31;
+ if ((start < 16 && start + size <= 16) || start >= 16)
+ {
+ operands[3] = gen_rtx (CONST_INT, VOIDmode,
+ ((1 << (16 - (start & 15)))
+ - (1 << (16 - (start & 15) - size))));
+ if (start < 16)
+ return \"andiu. %4,%1,%3\";
+ else
+ return \"andil. %4,%1,%3\";
+ }
+
if (start + size >= 32)
operands[3] = const0_rtx;
else