[llvm] [NVPTX] Support llvm.{exp2, log2} for f32 and vector of f32 (PR #120519)

Justin Fargnoli via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 12:14:29 PST 2024


================
@@ -0,0 +1,61 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 -mattr=+ptx32 -nvptx-approx-exp2f32 | FileCheck --check-prefixes=CHECK %s
+; RUN: %if ptxas-12.0 %{ llc < %s -march=nvptx64 -mcpu=sm_20 -mattr=+ptx86 -nvptx-approx-exp2f32 | %ptxas-verify -arch=sm_20 %}
----------------
justinfargnoli wrote:

Why is the PTX version different between these two `llc` invocations? 

https://github.com/llvm/llvm-project/pull/120519


More information about the llvm-commits mailing list