[PATCH] D71413: [OpenMP][Test] Add check for aux-triple predefined macros

Alexey Bader via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 12 05:01:12 PST 2019


bader created this revision.
bader added a reviewer: ABataev.
Herald added subscribers: cfe-commits, ebevhan, guansong.
Herald added a reviewer: jdoerfert.
Herald added a project: clang.

Make sure that auxiliary target specific macros are defined in OpenMP
mode.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71413

Files:
  clang/test/OpenMP/aux-triple-macros.cpp


Index: clang/test/OpenMP/aux-triple-macros.cpp
===================================================================
--- /dev/null
+++ clang/test/OpenMP/aux-triple-macros.cpp
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -triple nvptx64 -aux-triple x86_64-unknown-linux-gnu -E -dM | FileCheck %s
+// RUN: %clang_cc1 %s -fopenmp -fopenmp-is-device -triple nvptx64 -aux-triple x86_64-unknown-linux-gnu -E -dM | FileCheck --check-prefix=CHECK-OMP-DEVICE %s
+
+// CHECK-NOT:#define __x86_64__ 1
+// CHECK-OMP-DEVICE:#define __x86_64__ 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71413.233583.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191212/f0107a06/attachment.bin>


More information about the cfe-commits mailing list