================
@@ -0,0 +1,16 @@
+/// Check "-fsycl-is-device" and the default triple "spirv64-unknown-unknown"
+//  is passed when compiling for device.
+
+// RUN:   %clang -### -fsycl -fsycl-device-only %s 2>&1 \
+// RUN:   | FileCheck %s
+
+// CHECK: "-triple" "spirv64-unknown-unknown" {{.*}} "-fsycl-is-device"
+
+/// Check "-fsycl-is-device" and explicitly specified triple "nvptx" is
+//  passed when compiling for device.
+
+// RUN:   %clang -### -fsycl -fsycl-device-only --target=nvptx %s 2>&1 \
+// RUN:   | FileCheck %s -check-prefix=TARGET
+//
+// TARGET: "-triple" "spirv32-unknown-unknown" "-aux-triple" "nvptx"
----------------
tahonermann wrote:

Hmm, this isn't the result I expected for `--target=nvptx`. I think Nvidia 
discontinued support for 32-bit targets a while ago. What is produced for 
`--target=nvptx64`?

https://github.com/llvm/llvm-project/pull/172366
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to