[llvm-commits] [llvm] r112664 - in /llvm/trunk: lib/Target/ARM/ARMISelDAGToDAG.cpp lib/Target/ARM/ARMInstrInfo.td lib/Target/ARM/ARMInstrThumb2.td test/CodeGen/ARM/mvncc.ll test/CodeGen/Thumb2/thumb2-mvncc.ll

Bill Wendling isanbard at gmail.com
Tue Aug 31 18:05:07 PDT 2010


True. I didn't know what the protocol was for this. :)

-bw

On Aug 31, 2010, at 3:49 PM, Eric Christopher wrote:

> You can merge these two tests together and use a check prefix.
> 
> -eric
> 
> On Aug 31, 2010, at 3:41 PM, Bill Wendling wrote:
> 
>> Added: llvm/trunk/test/CodeGen/ARM/mvncc.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/mvncc.ll?rev=112664&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/CodeGen/ARM/mvncc.ll (added)
>> +++ llvm/trunk/test/CodeGen/ARM/mvncc.ll Tue Aug 31 17:41:22 2010
>> @@ -0,0 +1,12 @@
>> +; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s
>> +
>> +define i32 @f1(i32 %t) nounwind {
>> +; CHECK: f1
>> +; CHECK-NOT: tst
>> +; CHECK: and
>> +; CHECK: mvnne
>> +  %and = and i32 %t, 256
>> +  %tobool = icmp eq i32 %and, 0
>> +  %retval.0 = select i1 %tobool, i32 0, i32 -26
>> +  ret i32 %retval.0
>> +}
>> 
>> Added: llvm/trunk/test/CodeGen/Thumb2/thumb2-mvncc.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb2/thumb2-mvncc.ll?rev=112664&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/CodeGen/Thumb2/thumb2-mvncc.ll (added)
>> +++ llvm/trunk/test/CodeGen/Thumb2/thumb2-mvncc.ll Tue Aug 31 17:41:22 2010
>> @@ -0,0 +1,13 @@
>> +; RUN: llc < %s -mtriple=thumbv7-apple-darwin | FileCheck %s
>> +
>> +define i32 @f1(i32 %t) nounwind {
>> +; CHECK: f1
>> +; CHECK-NOT: tst
>> +; CHECK: ands
>> +; CHECK: it ne
>> +; CHECK: mvnne
>> +  %and = and i32 %t, 256
>> +  %tobool = icmp eq i32 %and, 0
>> +  %retval.0 = select i1 %tobool, i32 0, i32 -26
>> +  ret i32 %retval.0
>> +}
> 
> 
> _______________________________________________
> 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