commit | f075cac445c9aa2e7d251d7ca2eb0edc3355e9ce | [log] [tgz] |
---|---|---|
author | Andrew Lenharth <andrewl@lenharth.org> | Sat Jul 23 07:46:48 2005 +0000 |
committer | Andrew Lenharth <andrewl@lenharth.org> | Sat Jul 23 07:46:48 2005 +0000 |
tree | 97a018c9e83218574831915908cee51a1b0619c7 | |
parent | aa68f7fa0920bd7eaf61e1f9a838f8aeb4f61b2a [diff] [blame] |
fix compile error git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22508 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 1b76406..6d5dbea 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -2083,7 +2083,7 @@ { int64_t val = (int64_t)cast<ConstantSDNode>(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;