From 14ff2e97915bb265e26b2b45b11e974ba3b5b82c Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Sat, 23 Jul 2005 07:46:48 +0000 Subject: [PATCH] fix compile error llvm-svn: 22508 --- lib/Target/Alpha/AlphaISelPattern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 1b764061b07..6d5dbeafc87 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -2083,7 +2083,7 @@ unsigned AlphaISel::SelectExpr(SDOperand N) { { int64_t val = (int64_t)cast(N)->getValue(); int zero_extend_top = 0; - if (val > 0 && (val & 0xFFFFFFFF00000000) == 0 && + if (val > 0 && (val & 0xFFFFFFFF00000000ULL) == 0 && ((int32_t)val < 0)) { //try a small load and zero extend val = (int32_t)val;