[PATCH] D38792: Fix float literals under XO & fp-armv8

Christof Douma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 03:07:52 PDT 2017


christof created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.

When targeting execute-only and fp-armv8, float constants in a compare resulted
in instruction selection failures in some cases. This is now fixed by using
vmov.f32 where possible, otherwise the floating point constant is lowered into
a integer constant that is moved into a floating point register.

This patch also restores using fpcmp with immediate 0 when fp-armv8 is specified.


Repository:
  rL LLVM

https://reviews.llvm.org/D38792

Files:
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMISelLowering.h
  lib/Target/ARM/ARMInstrVFP.td
  test/CodeGen/ARM/fcmp-xo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38792.118576.patch
Type: text/x-patch
Size: 6060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171011/0945a1d1/attachment.bin>


More information about the llvm-commits mailing list