[PATCH] D89904: [OpenMP] Fixing OpenMP/driver.c failing on 32-bit hosts
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 21 14:01:52 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcd4a4ae97a7c: [OpenMP] Fixing OpenMP/driver.c failing on 32-bit hosts (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89904/new/
https://reviews.llvm.org/D89904
Files:
clang/test/OpenMP/driver-openmp-target.c
clang/test/lit.cfg.py
Index: clang/test/lit.cfg.py
===================================================================
--- clang/test/lit.cfg.py
+++ clang/test/lit.cfg.py
@@ -1,7 +1,6 @@
# -*- Python -*-
import os
-import sys
import platform
import re
import subprocess
@@ -168,9 +167,11 @@
if platform.system() not in ['Windows']:
config.available_features.add('can-remove-opened-file')
-# Check 64-bit host
-if sys.maxsize > 2**32:
- config.available_features.add("clang-64-bits")
+# Features
+known_arches = ["x86_64", "mips64", "ppc64", "aarch64"]
+if (any(config.target_triple.startswith(x) for x in known_arches)):
+ config.available_features.add("clang-target-64-bits")
+
def calculate_arch_features(arch_string):
Index: clang/test/OpenMP/driver-openmp-target.c
===================================================================
--- clang/test/OpenMP/driver-openmp-target.c
+++ clang/test/OpenMP/driver-openmp-target.c
@@ -1,5 +1,5 @@
// REQUIRES: x86-registered-target
-// REQUIRES: clang-64-bits
+// REQUIRES: clang-target-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
// CHECK-45-VERSION: #define _OPENMP 201511
// CHECK-45-VERSION2: #define _OPENMP 201511
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89904.299802.patch
Type: text/x-patch
Size: 1323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201021/49fa2933/attachment-0001.bin>
More information about the cfe-commits
mailing list