[clang] [llvm] [Matrix] Implement matrix support for the `abs` intrinsic (PR #227131)

Kaitlin Peng via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 14:56:01 PDT 2026


================
@@ -0,0 +1,564 @@
+// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple \
----------------
kmpeng wrote:

I don't really think testing all these types + sizes is necessary - just `int`/`uint`/`half` should cover the three distinct `abs` paths. I tested all of them to mirror the scalar/vector `abs.hlsl` test and other matrix tests which test all types + sizes the intrinsic supports, but I'm open to changing it.

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


More information about the cfe-commits mailing list