[clang] [llvm] [HLSL] Implement `rsqrt` intrinsic (PR #84820)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 14 09:20:34 PDT 2024


================
@@ -0,0 +1,26 @@
+; RUN: opt -S -dxil-op-lower < %s | FileCheck %s
+
+; Make sure dxil operation function calls for rsqrt are generated for float and half.
+; CHECK:call float @dx.op.unary.f32(i32 25, float %{{.*}})
+; CHECK:call half @dx.op.unary.f16(i32 25, half %{{.*}})
----------------
bogner wrote:

Better for readability to put these check lines next to the functions they test. Could arguably throw in some `CHECK-LABEL` to anchor the checks too

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


More information about the cfe-commits mailing list