Skip to content

Commit 5c2579a

Browse files
author
mattarde
committed
add 32 and 64 fcmp test
1 parent 611a5ff commit 5c2579a

File tree

3 files changed

+667
-58
lines changed

3 files changed

+667
-58
lines changed

llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,10 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
449449
// fp comparison
450450
getActionDefinitionsBuilder(G_FCMP)
451451
.legalIf([=](const LegalityQuery &Query) {
452-
return (HasSSE1 && typePairInSet(0, 1, {{s8, s32}})(Query)) ||
453-
(HasSSE2 && typePairInSet(0, 1, {{s8, s64}})(Query)) ||
452+
return ((HasSSE1 || UseX87) &&
453+
typePairInSet(0, 1, {{s8, s32}})(Query)) ||
454+
((HasSSE2 || UseX87) &&
455+
typePairInSet(0, 1, {{s8, s64}})(Query)) ||
454456
(UseX87 && typePairInSet(0, 1, {{s8, s80}})(Query));
455457
})
456458
.clampScalar(0, s8, s8)

0 commit comments

Comments
 (0)