[PATCH] D89696: [OpenMP] Fixing OpenMP/driver.c failing on 32-bit hosts

David Tenty via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 20 15:57:39 PDT 2020


daltenty added inline comments.


================
Comment at: clang/test/OpenMP/driver-openmp-target.c:2
+// REQUIRES: x86-registered-target
+// REQUIRES: clang-64-bits
+// RUN: %clang %s -c -E -dM -fopenmp=libomp -fopenmp-version=45 -fopenmp-targets=x86_64-unknown-unknown -o - | FileCheck --check-prefix=CHECK-45-VERSION --check-prefix=CHECK-45-VERSION2 %s
----------------
This tests still fails on AIX, presumably because we have a 64-bit host but the compiler is targeting 32-bit by default:

```
error: OpenMP target architecture 'x86_64-unknown-unknown' pointer size is incompatible with host 'powerpc-ibm-aix7.2.0.0'
```

Maybe adjust the test to check the default target instead of just the host?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89696



More information about the cfe-commits mailing list