[llvm-commits] [llvm] r51000 - in /llvm/trunk/lib/Target/X86: X86ISelLowering.cpp X86ISelLowering.h X86InstrSSE.td
Nate Begeman
natebegeman at mac.com
Tue May 13 10:17:57 PDT 2008
On May 13, 2008, at 10:02 AM, Evan Cheng wrote:
>
> On May 12, 2008, at 1:34 PM, Nate Begeman wrote:
>>
>>
>> if (Subtarget->hasMMX()) {
>> @@ -614,6 +615,7 @@
>> setOperationAction(ISD::VECTOR_SHUFFLE, MVT::v4f32, Custom);
>> setOperationAction(ISD::EXTRACT_VECTOR_ELT, MVT::v4f32, Custom);
>> setOperationAction(ISD::SELECT, MVT::v4f32, Custom);
>> + setOperationAction(ISD::VSETCC, MVT::v4f32, Legal);
>> }
>>
>> if (Subtarget->hasSSE2()) {
>> @@ -639,6 +641,12 @@
>> setOperationAction(ISD::FSQRT, MVT::v2f64, Legal);
>> setOperationAction(ISD::FNEG, MVT::v2f64, Custom);
>>
>> + setOperationAction(ISD::VSETCC, MVT::v2f64, Legal);
>> + setOperationAction(ISD::VSETCC, MVT::v16i8, Legal);
>> + setOperationAction(ISD::VSETCC, MVT::v8i16, Legal);
>> + setOperationAction(ISD::VSETCC, MVT::v4i32, Legal);
>> + setOperationAction(ISD::VSETCC, MVT::v2i64, Legal);
>> +
>
> Is VSETCC legal for v4f32 and v2f64? I don't see how they are isel'd.
Yes, check the cmpps and cmppd instructions.
Nate
More information about the llvm-commits
mailing list