[PATCH] D29942: Add custom lowering for llvm.log{, 10}.{f16, f32} intrinsics

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 9 10:56:10 PST 2017


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUISelLowering.cpp:16-18
+#define M_LOG2E_F     1.44269504088896340735992468100189214f
+#define M_LN2_F       0.693147180559945309417232121458176568f
+#define M_LN10_F      2.30258509299404568401799145468436421f
----------------
Should name something else that doesn't collide with the standard names


================
Comment at: test/CodeGen/AMDGPU/llvm.log10.ll:3
+; RUN: llc < %s -march=r600 -mcpu=cayman | FileCheck %s --check-prefix=CM --check-prefix=FUNC
+; RUN: llc < %s -march=amdgcn -mcpu=SI | FileCheck %s --check-prefix=SI --check-prefix=FUNC
+; RUN: llc < %s -march=amdgcn -mcpu=tonga | FileCheck %s --check-prefix=SI --check-prefix=FUNC
----------------
Remove -mcpu=SI. Also should sort r600 lines later


https://reviews.llvm.org/D29942





More information about the llvm-commits mailing list