Pass the right sign to TLI->isLegalICmpImmediate.
[oota-llvm.git] / test / CodeGen / ARM / commute-movcc.ll
index f53ac17876f26f3ee3a19554a1c90e8f2dd5ed09..7316452cd617abfb3a026dc87aba4dfc1027479d 100644 (file)
 ; CHECK: movls
 ; CHECK-NOT: mov
 
+; This is really an LSR test: Make sure that cmp is using the incremented
+; induction variable.
 ; CHECK: %if.end8
+; CHECK: add{{(s|\.w)?}} [[IV:r[0-9]+]], {{.*}}#1
+; CHECK: cmp [[IV]], #
 
 define i32 @f(i32* nocapture %a, i32 %Pref) nounwind ssp {
 entry: