[clang] [clang][CUDA] Disable float128 diagnostics for device compilation (PR #83918)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 15:03:45 PST 2024


================
@@ -0,0 +1,9 @@
+// CPU-side compilation on x86 (no errors expected).
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -aux-triple nvptx64 -x cuda -fsyntax-only -verify %s
+
+// GPU-side compilation on x86 (no errors expected)
+// RUN: %clang_cc1 -triple nvptx64 -aux-triple x86_64-unknown-linux-gnu -fcuda-is-device -x cuda -fsyntax-only -verify %s
----------------
Artem-B wrote:

I'd add a test verifying that we do emit diagnostics if fp128 is used in the GPU code.
It would probably need to be done somewhere in the codegen tests as it will not fire in the syntax-only checks.

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


More information about the cfe-commits mailing list