[PATCH] D19346: [CUDA] Copy host builtin types to NVPTXTargetInfo.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 29 15:24:18 PDT 2016


rsmith accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: test/Preprocessor/cuda-types.cu:7-9
@@ +6,5 @@
+// RUN: %clang --cuda-device-only -nocudainc -target i386-unknown-linux-gnu -x cuda -E -dM -o - /dev/null > %T/i386-device-defines
+// RUN: grep 'define __[^ ]*\(TYPE\|MAX\|SIZEOF|WIDTH\)' %T/i386-host-defines   | grep -v '__LDBL\|_LONG_DOUBLE' > %T/i386-host-defines-filtered
+// RUN: grep 'define __[^ ]*\(TYPE\|MAX\|SIZEOF|WIDTH\)' %T/i386-device-defines | grep -v '__LDBL\|_LONG_DOUBLE' > %T/i386-device-defines-filtered
+// RUN: diff %T/i386-host-defines-filtered %T/i386-device-defines-filtered
+
----------------
I expect you'll also need a `REQUIRES: shell` for this stuff.


http://reviews.llvm.org/D19346





More information about the cfe-commits mailing list