aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-04-14 16:24:00 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-04-14 16:24:00 +0000
commit3ae1829fe5fa2523437e7f37f085010af37c475e (patch)
treedc2454e8183c375884574809bcdf2ac60e343e71 /lib/Target/Alpha/AlphaISelPattern.cpp
parent80563ff1a520653391742e206e94d6a3a0e7de41 (diff)
a 21264 fix, and fix the operator precidence on an and -> zap check (should fix hundreds of test cases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index e594c8664a..18cc35a356 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1695,9 +1695,9 @@ unsigned ISel::SelectExpr(SDOperand N) {
unsigned int build = 0;
for(int i = 0; i < 8; ++i)
{
- if (k & 0xFF == 0xFF)
+ if ((k & 0x00FF) == 0x00FF)
build |= 1 << i;
- else if (k & 0xFF != 0)
+ else if ((k & 0x00FF) != 0)
{ build = 0; break; }
k >>= 8;
}