[PATCH] D64193: [PowerPC] Add exception constraint to FP rounding operations
Qing Shan Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 29 22:29:32 PDT 2020
steven.zhang added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:352
+ if (Subtarget.hasVSX()) {
+ setOperationAction(ISD::FNEARBYINT, MVT::f64, Legal);
+ }
----------------
Why we have this lines of changes here ?
================
Comment at: llvm/test/CodeGen/PowerPC/build-vector-tests.ll:1514
; P9BE-NEXT: lfs f2, 4(r3)
+; P9BE-NEXT: xsrsp f0, f0
; P9BE-NEXT: xxmrghd vs1, vs2, vs1
----------------
Could you please explain more about this extra instruction produced ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64193/new/
https://reviews.llvm.org/D64193
More information about the llvm-commits
mailing list