[clang] [clang][sema] Suppress unsupported 128-bit mode attribute diagnostic for OpenMP device compilation (PR #214497)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 09:18:47 PDT 2026


================
@@ -0,0 +1,11 @@
+// Host-side compilation on x86 (no errors expected).
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -aux-triple nvptx64 -fopenmp -x c -fsyntax-only -verify=host %s
+
+// Device-side compilation for targets without 128-bit float/complex support (no errors expected).
----------------
tahonermann wrote:

I think @Fznamznon's example should produce a (possibly deferred) diagnostic as should this example: https://godbolt.org/z/h354W9T7d.

At a minimum, the test(s) should exercise use in a device function with a FIXME stating that a diagnostic should be issued for such usage.


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


More information about the cfe-commits mailing list