[cfe-commits] r158370 - /cfe/trunk/test/Driver/clang-translation.c

Bob Wilson bob.wilson at apple.com
Tue Jun 12 13:22:45 PDT 2012


Author: bwilson
Date: Tue Jun 12 15:22:45 2012
New Revision: 158370

URL: http://llvm.org/viewvc/llvm-project?rev=158370&view=rev
Log:
Fix test to work when clang is built without powerpc64 support.

Modified:
    cfe/trunk/test/Driver/clang-translation.c

Modified: cfe/trunk/test/Driver/clang-translation.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/clang-translation.c?rev=158370&r1=158369&r2=158370&view=diff
==============================================================================
--- cfe/trunk/test/Driver/clang-translation.c (original)
+++ cfe/trunk/test/Driver/clang-translation.c Tue Jun 12 15:22:45 2012
@@ -52,21 +52,24 @@
 // ARMV5E: "-cc1"
 // ARMV5E: "-target-cpu" "arm1022e"
 
-// RUN: %clang -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log \
+// RUN: %clang -ccc-clang-archs powerpc64 \
+// RUN:   -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log \
 // RUN:   -mcpu=G5
 // RUN: FileCheck -check-prefix=PPCG5 %s < %t.log
 // PPCG5: clang
 // PPCG5: "-cc1"
 // PPCG5: "-target-cpu" "g5"
 
-// RUN: %clang -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log \
+// RUN: %clang -ccc-clang-archs powerpc64 \
+// RUN:   -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log      \
 // RUN:   -mcpu=power7
 // RUN: FileCheck -check-prefix=PPCPWR7 %s < %t.log
 // PPCPWR7: clang
 // PPCPWR7: "-cc1"
 // PPCPWR7: "-target-cpu" "pwr7"
 
-// RUN: %clang -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log
+// RUN: %clang -ccc-clang-archs powerpc64 \
+// RUN:   -target powerpc64-unknown-linux-gnu -### -S %s 2> %t.log
 // RUN: FileCheck -check-prefix=PPC64NS %s < %t.log
 // PPC64NS: clang
 // PPC64NS: "-cc1"





More information about the cfe-commits mailing list