diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-04 04:12:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-04 04:12:25 +0000 |
commit | ff7cea8c1ada07d68adbeb86313d884f6e3f91f1 (patch) | |
tree | b1b0924408b6ff9d47a0e370810e65f03037b8ec /clang/test/CodeGen | |
parent | 1d1844a7c74575eda7969f3eefa1b562966c3a65 (diff) | |
download | bcm5719-llvm-ff7cea8c1ada07d68adbeb86313d884f6e3f91f1.tar.gz bcm5719-llvm-ff7cea8c1ada07d68adbeb86313d884f6e3f91f1.zip |
Don't pass -O0 to clang_cc1, it is the default.
llvm-svn: 189910
Diffstat (limited to 'clang/test/CodeGen')
28 files changed, 34 insertions, 34 deletions
diff --git a/clang/test/CodeGen/2007-02-25-C-DotDotDot.c b/clang/test/CodeGen/2007-02-25-C-DotDotDot.c index abc46683cee..1c3a3df5709 100644 --- a/clang/test/CodeGen/2007-02-25-C-DotDotDot.c +++ b/clang/test/CodeGen/2007-02-25-C-DotDotDot.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin -O0 %s -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s // Make sure the call to foo is compiled as: // call float @foo() diff --git a/clang/test/CodeGen/2007-05-07-PaddingElements.c b/clang/test/CodeGen/2007-05-07-PaddingElements.c index 2295176396f..f8ec2483a8d 100644 --- a/clang/test/CodeGen/2007-05-07-PaddingElements.c +++ b/clang/test/CodeGen/2007-05-07-PaddingElements.c @@ -1,6 +1,6 @@ // PR 1278 -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | grep struct.s | not grep "4 x i8] zeroinitializer" -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | not grep "i32 0, i32 2" +// RUN: %clang_cc1 %s -emit-llvm -o - | grep struct.s | not grep "4 x i8] zeroinitializer" +// RUN: %clang_cc1 %s -emit-llvm -o - | not grep "i32 0, i32 2" struct s { double d1; int s1; diff --git a/clang/test/CodeGen/2008-05-19-AlwaysInline.c b/clang/test/CodeGen/2008-05-19-AlwaysInline.c index 16ea7aca9b2..419951b1594 100644 --- a/clang/test/CodeGen/2008-05-19-AlwaysInline.c +++ b/clang/test/CodeGen/2008-05-19-AlwaysInline.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | not grep sabrina +// RUN: %clang_cc1 %s -emit-llvm -o - | not grep sabrina static inline int sabrina (void) __attribute__((always_inline)); static inline int sabrina (void) diff --git a/clang/test/CodeGen/2008-08-07-AlignPadding2.c b/clang/test/CodeGen/2008-08-07-AlignPadding2.c index ecf28dd72de..cef71a30940 100644 --- a/clang/test/CodeGen/2008-08-07-AlignPadding2.c +++ b/clang/test/CodeGen/2008-08-07-AlignPadding2.c @@ -1,4 +1,4 @@ -/* RUN: %clang_cc1 %s -emit-llvm -o - -O0 | grep zeroinitializer | count 1 +/* RUN: %clang_cc1 %s -emit-llvm -o - | grep zeroinitializer | count 1 The FE must not generate padding here between array elements. PR 2533. */ diff --git a/clang/test/CodeGen/2010-01-18-Inlined-Debug.c b/clang/test/CodeGen/2010-01-18-Inlined-Debug.c index cf00be7752c..bdc6fc5267e 100644 --- a/clang/test/CodeGen/2010-01-18-Inlined-Debug.c +++ b/clang/test/CodeGen/2010-01-18-Inlined-Debug.c @@ -1,5 +1,5 @@ // PR: 6058 -// RUN: %clang_cc1 -g -emit-llvm %s -O0 -o /dev/null +// RUN: %clang_cc1 -g -emit-llvm %s -o /dev/null static inline int foo(double) __attribute__ ((always_inline)); static inline int foo(double __x) { return __x; } diff --git a/clang/test/CodeGen/2010-03-5-LexicalScope.c b/clang/test/CodeGen/2010-03-5-LexicalScope.c index e0e41dd2379..8dc68d70557 100644 --- a/clang/test/CodeGen/2010-03-5-LexicalScope.c +++ b/clang/test/CodeGen/2010-03-5-LexicalScope.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -O0 -g %s -o - | FileCheck %s +// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s // CHECK: DW_TAG_lexical_block // CHECK: DW_TAG_lexical_block int foo(int i) { diff --git a/clang/test/CodeGen/2010-07-08-DeclDebugLineNo.c b/clang/test/CodeGen/2010-07-08-DeclDebugLineNo.c index 1637a493674..5e9edd9acd9 100644 --- a/clang/test/CodeGen/2010-07-08-DeclDebugLineNo.c +++ b/clang/test/CodeGen/2010-07-08-DeclDebugLineNo.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -O0 -g %s -o - | FileCheck %s +// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s // Insure that dbg.declare lines for locals refer to correct line number records. // Radar 8152866. void foo() { diff --git a/clang/test/CodeGen/2010-08-12-asm-aggr-arg.c b/clang/test/CodeGen/2010-08-12-asm-aggr-arg.c index 5ddc4122d60..dcd507d8195 100644 --- a/clang/test/CodeGen/2010-08-12-asm-aggr-arg.c +++ b/clang/test/CodeGen/2010-08-12-asm-aggr-arg.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // Radar 8288710: A small aggregate can be passed as an integer. Make sure // we don't get an error with "input constraint with a matching output // constraint of incompatible type!" diff --git a/clang/test/CodeGen/attr-minsize.cpp b/clang/test/CodeGen/attr-minsize.cpp index 997194df7f9..0f07725fe8d 100644 --- a/clang/test/CodeGen/attr-minsize.cpp +++ b/clang/test/CodeGen/attr-minsize.cpp @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -Oz -emit-llvm %s -o - | FileCheck %s -check-prefix=Oz -// RUN: %clang_cc1 -O0 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER +// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER // RUN: %clang_cc1 -O1 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER // RUN: %clang_cc1 -O2 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER // RUN: %clang_cc1 -O3 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER diff --git a/clang/test/CodeGen/available-externally-suppress.c b/clang/test/CodeGen/available-externally-suppress.c index b6c8ff89fe8..390d2017884 100644 --- a/clang/test/CodeGen/available-externally-suppress.c +++ b/clang/test/CodeGen/available-externally-suppress.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm -o - -O0 -triple x86_64-apple-darwin10 %s | FileCheck %s +// RUN: %clang_cc1 -emit-llvm -o - -triple x86_64-apple-darwin10 %s | FileCheck %s // Ensure that we don't emit available_externally functions at -O0. int x; diff --git a/clang/test/CodeGen/bitfield-assign.c b/clang/test/CodeGen/bitfield-assign.c index 058f5ed63d3..270f44de52f 100644 --- a/clang/test/CodeGen/bitfield-assign.c +++ b/clang/test/CodeGen/bitfield-assign.c @@ -4,7 +4,7 @@ /* Check that we get one load for each simple assign and two for the compound assign (load the old value before the add then load again to store back). Also check that our g0 pattern is good. */ -// RUN: %clang_cc1 -triple i386-unknown-unknown -O0 -emit-llvm -o %t %s +// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o %t %s // RUN: grep 'load ' %t | count 5 // RUN: grep "@g0" %t | count 4 diff --git a/clang/test/CodeGen/builtins-overflow.c b/clang/test/CodeGen/builtins-overflow.c index a1108b721d8..5c5500d5684 100644 --- a/clang/test/CodeGen/builtins-overflow.c +++ b/clang/test/CodeGen/builtins-overflow.c @@ -1,9 +1,9 @@ // Test CodeGen for Security Check Overflow Builtins. // rdar://13421498 -// RUN: %clang_cc1 -triple "i686-unknown-unknown" -emit-llvm -x c %s -o - -O0 | FileCheck %s -// RUN: %clang_cc1 -triple "x86_64-unknown-unknown" -emit-llvm -x c %s -o - -O0 | FileCheck %s -// RUN: %clang_cc1 -triple "x86_64-mingw32" -emit-llvm -x c %s -o - -O0 | FileCheck %s +// RUN: %clang_cc1 -triple "i686-unknown-unknown" -emit-llvm -x c %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple "x86_64-unknown-unknown" -emit-llvm -x c %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple "x86_64-mingw32" -emit-llvm -x c %s -o - | FileCheck %s extern unsigned UnsignedErrorCode; extern unsigned long UnsignedLongErrorCode; diff --git a/clang/test/CodeGen/implicit-arg.c b/clang/test/CodeGen/implicit-arg.c index 52ab58ec980..c25f034a1a3 100644 --- a/clang/test/CodeGen/implicit-arg.c +++ b/clang/test/CodeGen/implicit-arg.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - +// RUN: %clang_cc1 %s -emit-llvm -o - // RUN: %clang_cc1 %s -emit-llvm -O1 -o - // rdar://6518089 diff --git a/clang/test/CodeGen/libcalls-d.c b/clang/test/CodeGen/libcalls-d.c index b375f2bb83a..3d88eb1a305 100644 --- a/clang/test/CodeGen/libcalls-d.c +++ b/clang/test/CodeGen/libcalls-d.c @@ -1,8 +1,8 @@ // llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't // and -fno-builtins shouldn't. // -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not. -// RUN: %clang_cc1 %s -emit-llvm -fno-math-errno -O0 -o - | grep {call.*exp2\\.f64} -// RUN: %clang_cc1 %s -emit-llvm -fmath-errno -O0 -o - | grep {call.*exp2} +// RUN: %clang_cc1 %s -emit-llvm -fno-math-errno -o - | grep {call.*exp2\\.f64} +// RUN: %clang_cc1 %s -emit-llvm -fmath-errno -o - | grep {call.*exp2} // RUN: %clang_cc1 %s -emit-llvm -O1 -o - | grep {call.*ldexp} // RUN: %clang_cc1 %s -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2} diff --git a/clang/test/CodeGen/libcalls-ld.c b/clang/test/CodeGen/libcalls-ld.c index 2758761b5ee..dfa7835d6b7 100644 --- a/clang/test/CodeGen/libcalls-ld.c +++ b/clang/test/CodeGen/libcalls-ld.c @@ -1,8 +1,8 @@ // llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't // and -fno-builtins shouldn't. // -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not. -// RUN: %clang_cc1 %s -emit-llvm -fno-math-errno -O0 -o - | grep {call.*exp2\\..*f} -// RUN: %clang_cc1 %s -emit-llvm -fmath-errno -O0 -o - | grep {call.*exp2l} +// RUN: %clang_cc1 %s -emit-llvm -fno-math-errno -o - | grep {call.*exp2\\..*f} +// RUN: %clang_cc1 %s -emit-llvm -fmath-errno -o - | grep {call.*exp2l} // RUN: %clang_cc1 %s -emit-llvm -O1 -o - | grep {call.*ldexp} // RUN: %clang_cc1 %s -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2l} diff --git a/clang/test/CodeGen/ms-inline-asm-64.c b/clang/test/CodeGen/ms-inline-asm-64.c index dd7b9b3349e..f667708c659 100644 --- a/clang/test/CodeGen/ms-inline-asm-64.c +++ b/clang/test/CodeGen/ms-inline-asm-64.c @@ -1,5 +1,5 @@ // REQUIRES: x86-64-registered-target -// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -O0 -fasm-blocks -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s void t1() { int var = 10; diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c index c71a8df0ec7..c4486f6f332 100644 --- a/clang/test/CodeGen/ms-inline-asm.c +++ b/clang/test/CodeGen/ms-inline-asm.c @@ -1,5 +1,5 @@ // REQUIRES: x86-64-registered-target -// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -O0 -fasm-blocks -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s void t1() { // CHECK: @t1 diff --git a/clang/test/CodeGen/ms-inline-asm.cpp b/clang/test/CodeGen/ms-inline-asm.cpp index cd182a1d557..64b8558b483 100644 --- a/clang/test/CodeGen/ms-inline-asm.cpp +++ b/clang/test/CodeGen/ms-inline-asm.cpp @@ -1,5 +1,5 @@ // REQUIRES: x86-64-registered-target -// RUN: %clang_cc1 -x c++ %s -triple i386-apple-darwin10 -O0 -fasm-blocks -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -x c++ %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s // rdar://13645930 diff --git a/clang/test/CodeGen/no-opt-volatile-memcpy.c b/clang/test/CodeGen/no-opt-volatile-memcpy.c index c78fcd82993..718d704a333 100644 --- a/clang/test/CodeGen/no-opt-volatile-memcpy.c +++ b/clang/test/CodeGen/no-opt-volatile-memcpy.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -O0 -triple=x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple=x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s // rdar://11861085 struct s { diff --git a/clang/test/CodeGen/ppc64-extend.c b/clang/test/CodeGen/ppc64-extend.c index 68d28c79b52..d46b6510439 100644 --- a/clang/test/CodeGen/ppc64-extend.c +++ b/clang/test/CodeGen/ppc64-extend.c @@ -1,5 +1,5 @@ // REQUIRES: ppc64-registered-target -// RUN: %clang_cc1 -O0 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s void f1(int x) { return; } // CHECK: define void @f1(i32 signext %x) [[NUW:#[0-9]+]] diff --git a/clang/test/CodeGen/ppc64-struct-onefloat.c b/clang/test/CodeGen/ppc64-struct-onefloat.c index 73aaefab375..e26987f44a0 100644 --- a/clang/test/CodeGen/ppc64-struct-onefloat.c +++ b/clang/test/CodeGen/ppc64-struct-onefloat.c @@ -1,5 +1,5 @@ // REQUIRES: ppc64-registered-target -// RUN: %clang_cc1 -O0 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s typedef struct s1 { float f; } Sf; typedef struct s2 { double d; } Sd; diff --git a/clang/test/CodeGen/pr3518.c b/clang/test/CodeGen/pr3518.c index f96a5aa65f1..ff8d75e7b90 100644 --- a/clang/test/CodeGen/pr3518.c +++ b/clang/test/CodeGen/pr3518.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // PR 3518 // Some of the objects were coming out as unintialized (external) before 3518 // was fixed. Internal names are different between llvm-gcc and clang so they diff --git a/clang/test/CodeGen/pr4349.c b/clang/test/CodeGen/pr4349.c index 94b4fbd5db4..016995871a4 100644 --- a/clang/test/CodeGen/pr4349.c +++ b/clang/test/CodeGen/pr4349.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // PR 4349 union reg diff --git a/clang/test/CodeGen/sret.c b/clang/test/CodeGen/sret.c index ed1f9a44ef1..828bf9b42d6 100644 --- a/clang/test/CodeGen/sret.c +++ b/clang/test/CodeGen/sret.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | grep sret | count 5 +// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | count 5 struct abc { long a; diff --git a/clang/test/CodeGen/sret2.c b/clang/test/CodeGen/sret2.c index c96ce4d5c4e..37574625116 100644 --- a/clang/test/CodeGen/sret2.c +++ b/clang/test/CodeGen/sret2.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -O0 -o - | grep sret | count 2 +// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | count 2 struct abc { long a; diff --git a/clang/test/CodeGen/switch-dce.c b/clang/test/CodeGen/switch-dce.c index a18d3bc89e7..5a68ff26c6f 100644 --- a/clang/test/CodeGen/switch-dce.c +++ b/clang/test/CodeGen/switch-dce.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple i386-unknown-unknown -O0 %s -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s // PR9322 and rdar://6970405 diff --git a/clang/test/CodeGen/tbaa-for-vptr.cpp b/clang/test/CodeGen/tbaa-for-vptr.cpp index 93690361906..334c9ddaf4a 100644 --- a/clang/test/CodeGen/tbaa-for-vptr.cpp +++ b/clang/test/CodeGen/tbaa-for-vptr.cpp @@ -1,8 +1,8 @@ -// RUN: %clang_cc1 -emit-llvm -o - -O0 -fsanitize=thread %s | FileCheck %s +// RUN: %clang_cc1 -emit-llvm -o - -fsanitize=thread %s | FileCheck %s // RUN: %clang_cc1 -emit-llvm -o - -O1 %s | FileCheck %s // RUN: %clang_cc1 -emit-llvm -o - -O1 -relaxed-aliasing -fsanitize=thread %s | FileCheck %s // -// RUN: %clang_cc1 -emit-llvm -o - -O0 %s | FileCheck %s --check-prefix=NOTBAA +// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s --check-prefix=NOTBAA // RUN: %clang_cc1 -emit-llvm -o - -O2 -relaxed-aliasing %s | FileCheck %s --check-prefix=NOTBAA // // Check that we generate TBAA for vtable pointer loads and stores. diff --git a/clang/test/CodeGen/vld_dup.c b/clang/test/CodeGen/vld_dup.c index 2bc251989b6..95904124c59 100644 --- a/clang/test/CodeGen/vld_dup.c +++ b/clang/test/CodeGen/vld_dup.c @@ -1,7 +1,7 @@ // REQUIRES: arm-registered-target // RUN: %clang_cc1 -triple armv7a-linux-gnueabi \ // RUN: -target-cpu cortex-a8 \ -// RUN: -emit-llvm -O0 -o - %s | FileCheck %s +// RUN: -emit-llvm -o - %s | FileCheck %s #include <arm_neon.h> int main(){ int32_t v0[3]; |