[clang] Adding `asuint` implementation to hlsl (PR #107292)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 6 12:07:22 PDT 2024


================
@@ -0,0 +1,26 @@
+// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.3-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -o - | FileCheck %s
+
+
+// CHECK-LABEL: test_asuint4_uint
+// CHECK: ret i32 %0
+export uint test_asuint4_uint(uint p0) {
----------------
bogner wrote:

This function name is confusing (asuint4 isn't a thing). I'd probably just simplify all of the test function names to "test_<input-type>", so just "test_uint" here.

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


More information about the cfe-commits mailing list