This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Fix lowering of fp16 ISD::FNEG.
ClosedPublic

Authored by tra on Jan 18 2017, 3:44 PM.

Details

Summary

There's no neg.f16 instruction, so negation has to be done via subtraction from zero.

Diff Detail

Repository
rL LLVM

Event Timeline

tra created this revision.Jan 18 2017, 3:44 PM
tra updated this revision to Diff 84899.Jan 18 2017, 3:47 PM

use CHECK-DAG for the instructions that could be generated in different order.

jlebar accepted this revision.Jan 18 2017, 4:10 PM
This revision is now accepted and ready to land.Jan 18 2017, 4:10 PM
This revision was automatically updated to reflect the committed changes.