[PATCH] D68857: [X86] Add strict fp support for operations of X87 instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 22:33:08 PDT 2019


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86InstrFPStack.td:372
 let SchedRW = [WriteMicrocoded] in {
-defm SIN : FPUnary<fsin, MRM_FE, "fsin">;
-defm COS : FPUnary<fcos, MRM_FF, "fcos">;
+defm SIN : FPUnary<any_fsin, MRM_FE, "fsin">;
+defm COS : FPUnary<any_fcos, MRM_FF, "fcos">;
----------------
LiuChen3 wrote:
> craig.topper wrote:
> > SIN/COS are not mentioned in the X86ISelLowering code you added.
> X86 uses library to calculate SIN/COS. X87 set SIN/COS as Expand. So I leave strict_fsin/strict_fcos as "expand" as default.
Ok then don't change these lines. We shouldn't have entries in the isel table that we don't need.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68857/new/

https://reviews.llvm.org/D68857





More information about the llvm-commits mailing list