Skip to content

Commit 38e3379

Browse files
author
mattarde
committed
fix move
1 parent cb913a6 commit 38e3379

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
217217

218218
setTruncStoreAction(MVT::f64, MVT::f32, Expand);
219219

220+
// SETOEQ and SETUNE require checking two conditions.
221+
for (auto VT : {MVT::f32, MVT::f64, MVT::f80}) {
222+
setCondCodeAction(ISD::SETOEQ, VT, Expand);
223+
setCondCodeAction(ISD::SETUNE, VT, Expand);
224+
}
225+
220226
// Integer absolute.
221227
if (Subtarget.canUseCMOV()) {
222228
setOperationAction(ISD::ABS , MVT::i16 , Custom);
@@ -2495,11 +2501,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
24952501
addRegisterClass(MVT::x86amx, &X86::TILERegClass);
24962502
}
24972503

2498-
// SETOEQ and SETUNE require checking two conditions.
2499-
for (auto VT : {MVT::f32, MVT::f64, MVT::f80}) {
2500-
setCondCodeAction(ISD::SETOEQ, VT, Expand);
2501-
setCondCodeAction(ISD::SETUNE, VT, Expand);
2502-
}
25032504

25042505
// We want to custom lower some of our intrinsics.
25052506
setOperationAction(ISD::INTRINSIC_WO_CHAIN, MVT::Other, Custom);

0 commit comments

Comments
 (0)