diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-13 21:33:06 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-13 21:33:06 +0000 |
commit | 31cbe684302a5ccb001fa2131c0e4aeaa372f5c0 (patch) | |
tree | 3b6780d2ccc7e433e62e1f80237dc1200c62b8f2 /test/Preprocessor | |
parent | e4c7f90da208ed2caeab784b32f416a50eed8da3 (diff) |
Revert r148138; it's causing test failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/pic.c | 6 | ||||
-rw-r--r-- | test/Preprocessor/x86_target_features.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/test/Preprocessor/pic.c b/test/Preprocessor/pic.c index ebc028ae17..886beb7159 100644 --- a/test/Preprocessor/pic.c +++ b/test/Preprocessor/pic.c @@ -1,9 +1,9 @@ -// RUN: %clang -target i386-unknown-unknown -static -dM -E -o %t %s +// RUN: %clang -ccc-host-triple i386-unknown-unknown -static -dM -E -o %t %s // RUN: grep '#define __PIC__' %t | count 0 // RUN: grep '#define __pic__' %t | count 0 -// RUN: %clang -target i386-unknown-unknown -fpic -dM -E -o %t %s +// RUN: %clang -ccc-host-triple i386-unknown-unknown -fpic -dM -E -o %t %s // RUN: grep '#define __PIC__ 1' %t | count 1 // RUN: grep '#define __pic__ 1' %t | count 1 -// RUN: %clang -target i386-unknown-unknown -fPIC -dM -E -o %t %s +// RUN: %clang -ccc-host-triple i386-unknown-unknown -fPIC -dM -E -o %t %s // RUN: grep '#define __PIC__ 2' %t | count 1 // RUN: grep '#define __pic__ 2' %t | count 1 diff --git a/test/Preprocessor/x86_target_features.c b/test/Preprocessor/x86_target_features.c index ad7ee85eb2..f39c2208a4 100644 --- a/test/Preprocessor/x86_target_features.c +++ b/test/Preprocessor/x86_target_features.c @@ -1,4 +1,6 @@ -// RUN: %clang -target i386-unknown-unknown -march=core2 -msse4 -x c -E -dM -o %t %s +// FIXME: Use -triple, not -ccc-host-triple. + +// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=core2 -msse4 -x c -E -dM -o %t %s // RUN: grep '#define __SSE2_MATH__ 1' %t // RUN: grep '#define __SSE2__ 1' %t // RUN: grep '#define __SSE3__ 1' %t @@ -8,7 +10,7 @@ // RUN: grep '#define __SSE__ 1' %t // RUN: grep '#define __SSSE3__ 1' %t -// RUN: %clang -target i386-unknown-unknown -march=core2 -msse4 -mno-sse2 -x c -E -dM -o %t %s +// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=core2 -msse4 -mno-sse2 -x c -E -dM -o %t %s // RUN: grep '#define __SSE2_MATH__ 1' %t | count 0 // RUN: grep '#define __SSE2__ 1' %t | count 0 // RUN: grep '#define __SSE3__ 1' %t | count 0 @@ -18,7 +20,7 @@ // RUN: grep '#define __SSE__ 1' %t // RUN: grep '#define __SSSE3__ 1' %t | count 0 -// RUN: %clang -target i386-unknown-unknown -march=pentium-m -x c -E -dM -o %t %s +// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=pentium-m -x c -E -dM -o %t %s // RUN: grep '#define __SSE2_MATH__ 1' %t // RUN: grep '#define __SSE2__ 1' %t // RUN: grep '#define __SSE3__ 1' %t | count 0 |