[llvm-commits] [llvm] r81288 - /llvm/trunk/test/CodeGen/Thumb2/thumb2-cmp.ll
Evan Cheng
evan.cheng at apple.com
Tue Sep 8 22:41:39 PDT 2009
On Sep 8, 2009, at 4:44 PM, Chris Lattner wrote:
> Author: lattner
> Date: Tue Sep 8 18:44:53 2009
> New Revision: 81288
>
> URL: http://llvm.org/viewvc/llvm-project?rev=81288&view=rev
> Log:
> adjust for signedness change. I'd appreciate it if an ARM flavored
> person
> could look at this: the top undefined bits of an immediate shouldn't
> affect
> isel (cmp vs cmp.w)
>
> Modified:
> llvm/trunk/test/CodeGen/Thumb2/thumb2-cmp.ll
>
> Modified: llvm/trunk/test/CodeGen/Thumb2/thumb2-cmp.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb2/thumb2-cmp.ll?rev=81288&r1=81287&r2=81288&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/test/CodeGen/Thumb2/thumb2-cmp.ll (original)
> +++ llvm/trunk/test/CodeGen/Thumb2/thumb2-cmp.ll Tue Sep 8 18:44:53
> 2009
> @@ -19,7 +19,7 @@
> ; 0xcc00cc00 = 3422604288
> define i1 @f3(i32 %a) {
> ; CHECK: f3:
> -; CHECK: cmp.w r0, #3422604288
> +; CHECK: cmp r0, #-872363008
This is definitely breaking Thumb2. It now believes the cmp is a 16-
bit instruction. I'll check what's going on.
Evan
> %tmp = icmp ne i32 %a, 3422604288
> ret i1 %tmp
> }
> @@ -27,7 +27,7 @@
> ; 0xdddddddd = 3722304989
> define i1 @f4(i32 %a) {
> ; CHECK: f4:
> -; CHECK: cmp.w r0, #3722304989
> +; CHECK: cmp r0, #-572662307
> %tmp = icmp ne i32 %a, 3722304989
> ret i1 %tmp
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list