forked from OSchip/llvm-project
parent
72404b801e
commit
668b1ab6f1
|
@ -1354,9 +1354,15 @@ static unsigned X86ChooseCmpOpcode(EVT VT, const X86Subtarget *Subtarget) {
|
|||
case MVT::i32: return X86::CMP32rr;
|
||||
case MVT::i64: return X86::CMP64rr;
|
||||
case MVT::f32:
|
||||
return X86ScalarSSEf32 ? (HasAVX512 ? X86::VUCOMISSZrr : HasAVX ? X86::VUCOMISSrr : X86::UCOMISSrr) : 0;
|
||||
return X86ScalarSSEf32
|
||||
? (HasAVX512 ? X86::VUCOMISSZrr
|
||||
: HasAVX ? X86::VUCOMISSrr : X86::UCOMISSrr)
|
||||
: 0;
|
||||
case MVT::f64:
|
||||
return X86ScalarSSEf64 ? (HasAVX512 ? X86::VUCOMISDZrr : HasAVX ? X86::VUCOMISDrr : X86::UCOMISDrr) : 0;
|
||||
return X86ScalarSSEf64
|
||||
? (HasAVX512 ? X86::VUCOMISDZrr
|
||||
: HasAVX ? X86::VUCOMISDrr : X86::UCOMISDrr)
|
||||
: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue