[clang] [HLSL] Add `-Gis` option to clang-dxc (PR #146448)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 10:48:14 PDT 2025
================
@@ -0,0 +1,12 @@
+// RUN: %clang_dxc -T lib_6_4 -Gis %s 2>&1 -### | FileCheck -check-prefix=Gis %s
+// RUN: %clang_dxc -T lib_6_4 %s 2>&1 -### | FileCheck -check-prefix=NO_Gis %s
+// RUN: not %clang_dxc -T lib_6_4 /Gis gibberish -### %s 2>&1 | FileCheck -check-prefix=CHECK-ERR %s
+
+// Gis: "-fmath-errno" "-ffp-contract=off" "-frounding-math" "-ffp-exception-behavior=strict" "-complex-range=full"
+// assert expected floating point options are present
+// NO_Gis-NOT: "-fmath-errno" "-ffp-contract=off" "-frounding-math" "-ffp-exception-behavior=strict" "-complex-range=full"
+// CHECK-ERR: error: no such file or directory: 'gibberish'
----------------
llvm-beanz wrote:
This error check seems unrelated to the change you're making here.
https://github.com/llvm/llvm-project/pull/146448
More information about the cfe-commits
mailing list