[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 06:42:42 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rG2d6a5e4fe45d: [OpenMP][Test] Add check for aux-triple predefined macros (authored by bader).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71413/new/

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.233609.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191212/eabe503b/attachment.bin>


More information about the cfe-commits mailing list