summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2/thumb2-cmp.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-09-09 06:05:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-09-09 06:05:16 +0000
commit28d63b169938fa95cf481b64ef6e4bc1849dabef (patch)
tree9767908e74d84007815ab04c4daa179182a05cdd /test/CodeGen/Thumb2/thumb2-cmp.ll
parent4a38930a4595d94b1f379d6955c531c48e5c2aa0 (diff)
downloadllvm-28d63b169938fa95cf481b64ef6e4bc1849dabef.tar.gz
llvm-28d63b169938fa95cf481b64ef6e4bc1849dabef.tar.bz2
llvm-28d63b169938fa95cf481b64ef6e4bc1849dabef.tar.xz
Cast MO.getImm() to unsigned before comparing with an unsigned limit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-cmp.ll')
-rw-r--r--test/CodeGen/Thumb2/thumb2-cmp.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-cmp.ll b/test/CodeGen/Thumb2/thumb2-cmp.ll
index 86fc542f25..d4773bb580 100644
--- a/test/CodeGen/Thumb2/thumb2-cmp.ll
+++ b/test/CodeGen/Thumb2/thumb2-cmp.ll
@@ -19,7 +19,7 @@ define i1 @f2(i32 %a) {
; 0xcc00cc00 = 3422604288
define i1 @f3(i32 %a) {
; CHECK: f3:
-; CHECK: cmp r0, #-872363008
+; CHECK: cmp.w r0, #-872363008
%tmp = icmp ne i32 %a, 3422604288
ret i1 %tmp
}
@@ -27,7 +27,7 @@ define i1 @f3(i32 %a) {
; 0xdddddddd = 3722304989
define i1 @f4(i32 %a) {
; CHECK: f4:
-; CHECK: cmp r0, #-572662307
+; CHECK: cmp.w r0, #-572662307
%tmp = icmp ne i32 %a, 3722304989
ret i1 %tmp
}