summaryrefslogtreecommitdiff
path: root/usr.bin/pcc/powerpc
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2007-11-22 21:20:44 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2007-11-22 21:20:44 +0000
commit88e22e8a6bbf5f77c474b9c5d1255d186fbfea12 (patch)
treef4a9c6e34a0b5df8cc47354cf9dea4d99cfbf8e4 /usr.bin/pcc/powerpc
parentee47caae1d1895b4186845502fa392507cb39ea9 (diff)
Pull from master repo:
Fix the other rule that did not load small negative 64-bit constants correctly. The error shows up if you compile main(){long long = -1;} with -xtemps.
Diffstat (limited to 'usr.bin/pcc/powerpc')
-rw-r--r--usr.bin/pcc/powerpc/table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pcc/powerpc/table.c b/usr.bin/pcc/powerpc/table.c
index d581b018eaa..3f454516741 100644
--- a/usr.bin/pcc/powerpc/table.c
+++ b/usr.bin/pcc/powerpc/table.c
@@ -1,5 +1,5 @@
/*-
- * $OpenBSD: table.c,v 1.4 2007/11/19 22:59:03 stefan Exp $
+ * $OpenBSD: table.c,v 1.5 2007/11/22 21:20:43 stefan Exp $
*
* Copyright (c) 2007 Gregory McGarry <g.mcgarry@ieee.org>
*
@@ -491,7 +491,7 @@ struct optab table[] = {
SSCON, TANY,
0, RDEST,
" li AL,AR\n"
- " li UL,0\n", },
+ " li UL,UR\n", },
/* assign constant to register */
{ ASSIGN, FOREFF|INAREG,