This is an archive of the discontinued LLVM Phabricator instance.

Fixed a bug in FP logic operation lowering on AVX-512
ClosedPublic

Authored by delena on Dec 1 2015, 7:16 AM.

Details

Summary

FP logic instructions are supported in DQ extension on AVX-512 target.
We can use integer operations instead.
Added tests.
I also enabled FABS in this patch in order to check ANDPS.

Diff Detail

Repository
rL LLVM

Event Timeline

delena updated this revision to Diff 41506.Dec 1 2015, 7:16 AM
delena retitled this revision from to Fixed a bug in FP logic operation lowering on AVX-512.
delena updated this object.
delena added a reviewer: craig.topper.
delena set the repository for this revision to rL LLVM.
delena added a subscriber: llvm-commits.

FP logic instructions are supported in DQ extension on AVX-512 target.
We can use integer operations instead.
Added tests.
I also enabled FABS in this patch in order to check ANDPS.

--> Is it possible to separate enabling of FABS?

Cheers,
Manman

../lib/Target/X86/X86ISelLowering.cpp
26171 ↗(On Diff #41506)

Nit: period at end.

26182 ↗(On Diff #41506)

Nit: llvm_unreachable?

I can't enable FABS before I fix ANDPS.
I can fix the ANDPS, but I don't know how to test it without FABS.

  • Elena
delena marked 2 inline comments as done.Dec 5 2015, 11:50 PM
delena added a reviewer: igorb.Dec 7 2015, 1:39 AM
igorb accepted this revision.Dec 7 2015, 5:43 AM
igorb edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 7 2015, 5:43 AM
This revision was automatically updated to reflect the committed changes.