[clang] [HLSL][Sema] Fix Struct Size Calculation containing 16/32 bit scalars (PR #128086)

Ashley Coleman via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 15:53:07 PST 2025


================
@@ -0,0 +1,60 @@
+// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
+// RUN:   dxil-pc-shadermodel6.3-library %s -fnative-half-type \
+// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefix=CHECK-HALF
+
+// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
+// RUN:   dxil-pc-shadermodel6.3-library %s \
+// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s --check-prefix=CHECK-FLOAT
+
+
----------------
V-FEXrt wrote:

Pushed what I could get done before leaving for a flight. Test structure has been updated but I need to add more test cases

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


More information about the cfe-commits mailing list