]> granicus.if.org Git - clang/commitdiff
[test] Pass in fixed triple for openmp-offload.c
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 4 Oct 2017 13:54:09 +0000 (13:54 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 4 Oct 2017 13:54:09 +0000 (13:54 +0000)
This should fix the test on other architectures.

Related to: https://reviews.llvm.org/D38372

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314904 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/openmp-offload.c

index 0eb1d4abf8796434e9a8ed7482cd2db773db5c50..67098c902238151a1020978cf01f5b9670dc4491 100644 (file)
@@ -64,7 +64,7 @@
 /// ##########################################################################
 
 /// Check -march=pwr7 is NOT passed to nvptx64-nvidia-cuda.
-// RUN:    %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda -march=pwr7 %s 2>&1 \
+// RUN:    %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda -target powerpc64le-ibm-linux-gnu -march=pwr7 %s 2>&1 \
 // RUN:    | FileCheck -check-prefix=CHK-FOPENMP-MARCH-TO-GPU %s
 
 // CHK-FOPENMP-MARCH-TO-GPU-NOT: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-device"
@@ -72,7 +72,7 @@
 /// ###########################################################################
 
 /// Check -march=pwr7 is NOT passed to x86_64-unknown-linux-gnu.
-// RUN:    %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=x86_64-unknown-linux-gnu -march=pwr7 %s 2>&1 \
+// RUN:    %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=x86_64-unknown-linux-gnu -target powerpc64le-ibm-linux-gnu -march=pwr7 %s 2>&1 \
 // RUN:    | FileCheck -check-prefix=CHK-FOPENMP-MARCH-TO-X86 %s
 
 // CHK-FOPENMP-MARCH-TO-X86-NOT: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-device"