[PATCH] D153310: Add codegen for llvm pow builtin

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 18 12:42:32 PDT 2023


arsenm added a comment.

Add a test for the strictfp case (there's an existing strictfp test for all the elementwise builtins)



================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3241
+    unsigned Opc = llvm::Intrinsic::pow;
+    Value* Result = Builder.CreateBinaryIntrinsic(Opc, Op0, Op1, nullptr, "elt.pow");
+    return RValue::get(Result);
----------------
emitBinaryBuiltin?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153310



More information about the cfe-commits mailing list