[llvm] [DirectX] Add atan2 intrinsic and expand for DXIL backend (p1) (PR #108865)

Tex Riddell via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 10:38:38 PDT 2024


================
@@ -0,0 +1,52 @@
+; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s
+
+; Make sure correct dxil expansions for atan2 are generated for float and half.
----------------
tex3d wrote:

I added the expansion-only test.  I experimented with -scalarizer for vector tests, but since this just expands to atan and other instructions, it's just testing scalarization of the atan intrinsic, which is already tested elsewhere.  I can add a vector expansion-only test, if you think that's useful (I have one, but didn't add it here yet).

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


More information about the llvm-commits mailing list