[PATCH] D106150: [PowerPC] swdiv_nochk Builtins for XL Compat
Nemanja Ivanovic via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 16 06:56:57 PDT 2021
nemanjai accepted this revision.
nemanjai added a comment.
This revision is now accepted and ready to land.
LGTM other than a couple of nits.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:15627
+ Builder.getFastMathFlags().setFast();
+ Value *fdiv = Builder.CreateFDiv(Ops[0], Ops[1], "swdiv_nochk");
+ Builder.getFastMathFlags() &= (FMF);
----------------
Nit: naming convention for variables is that they are capitalized CamelCase.
================
Comment at: clang/test/CodeGen/builtins-ppc-xlcompat-swdiv_nochk.c:3
+// REQUIRES: powerpc-registered-target
+// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
+// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
----------------
One Linux run line and one AIX run line should suffice.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106150/new/
https://reviews.llvm.org/D106150
More information about the cfe-commits
mailing list