mirror of https://github.com/microsoft/clang.git
Don't pass -O0 to clang_cc1, it is the default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8cb1bf8454
commit
a3f55b026f
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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. */
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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!"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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]+]]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -emit-llvm %s -O0 -o -
|
||||
// RUN: %clang_cc1 -emit-llvm %s -o -
|
||||
// PR1378
|
||||
|
||||
typedef float v4sf __attribute__((vector_size(16)));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -O0 -g %s -o /dev/null
|
||||
// RUN: %clang_cc1 -emit-llvm -g %s -o /dev/null
|
||||
// PR 7104
|
||||
|
||||
struct A {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -std=c++11 -g -O0 -emit-llvm -g -triple x86_64-apple-darwin %s -o %t
|
||||
// RUN: %clang_cc1 -std=c++11 -g -emit-llvm -g -triple x86_64-apple-darwin %s -o %t
|
||||
// RUN: cat %t | FileCheck %s -check-prefix=CHECK0
|
||||
// RUN: cat %t | FileCheck %s -check-prefix=CHECK1
|
||||
// RUN: cat %t | FileCheck %s -check-prefix=CHECK2
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 %s -O0 -gline-tables-only -S -emit-llvm -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 %s -gline-tables-only -S -emit-llvm -o - | FileCheck %s
|
||||
// Checks that clang with "-gline-tables-only" doesn't emit debug info
|
||||
// for variables and types.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx -target x86_64-unknown-unknown -g -O0 %s -emit-llvm -S -o - | FileCheck %s
|
||||
// RUN: %clangxx -target x86_64-unknown-unknown -g %s -emit-llvm -S -o - | FileCheck %s
|
||||
// PR14471
|
||||
|
||||
enum X {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -triple i686-linux-gnu -emit-llvm %s -O0 -o - | FileCheck %s --check-prefix=CHECK-O0
|
||||
// RUN: %clang_cc1 -triple i686-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK-O0
|
||||
// RUN: %clang_cc1 -triple i686-linux-gnu -emit-llvm %s -O1 -o - | FileCheck %s
|
||||
|
||||
// Check that we add an llvm.invariant.start to mark when a global becomes
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -std=c++03 -fexceptions -fcxx-exceptions -O0 -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm -std=c++03 -O0 -o - %s | FileCheck --check-prefix=CHECK-2 %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -std=c++03 -fexceptions -fcxx-exceptions -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm -std=c++03 -o - %s | FileCheck --check-prefix=CHECK-2 %s
|
||||
|
||||
struct POD {
|
||||
int w, x, y, z;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -O0 -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -emit-llvm -O -o - %s | FileCheck %s --check-prefix=CHECK-OPT
|
||||
|
||||
// CHECK: @_Z9no_return
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// For MSVC ABI compatibility, all structures returned by value using the
|
||||
// thiscall calling convention must use the hidden parameter.
|
||||
//
|
||||
// RUN: %clang_cc1 -triple i386-PC-Win32 %s -fms-compatibility -O0 -emit-llvm -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple i386-PC-Win32 %s -fms-compatibility -emit-llvm -o - | FileCheck %s
|
||||
|
||||
// This structure would normally be returned via EAX
|
||||
struct S {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -emit-llvm -O0 -o %t
|
||||
// RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -emit-llvm -o %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-TEST1 %s < %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-TEST2 %s < %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-TEST5 %s < %t
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: FileCheck --input-file=%t-32.layout %s
|
||||
// rdar://12184410
|
||||
// rdar://12752901
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: FileCheck --input-file=%t-32.layout %s
|
||||
// rdar://12184410
|
||||
// rdar://12752901
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: FileCheck --input-file=%t-64.layout %s
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: FileCheck -check-prefix=CHECK-i386 --input-file=%t-32.layout %s
|
||||
// rdar://12184410
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.layout %s
|
||||
// rdar://12184410
|
||||
// rdar://12752901
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -emit-llvm %s -o %t-64.s
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -emit-llvm %s -o %t-64.s
|
||||
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
|
||||
// rdar://9503326
|
||||
// rdar://9606600
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -S %s -o %t-64.s
|
||||
// RUN: %clang_cc1 -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -S %s -o %t-64.s
|
||||
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
|
||||
// REQUIRES: x86-64-registered-target
|
||||
// rdar://8991729
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fblocks -fexceptions -fobjc-exceptions -O2 -disable-llvm-optzns -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fblocks -fexceptions -fobjc-exceptions -O0 -disable-llvm-optzns -o - %s | FileCheck -check-prefix=NO-METADATA %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fblocks -fexceptions -fobjc-exceptions -disable-llvm-optzns -o - %s | FileCheck -check-prefix=NO-METADATA %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fblocks -fexceptions -fobjc-exceptions -O2 -disable-llvm-optzns -o - %s -fobjc-arc-exceptions | FileCheck -check-prefix=NO-METADATA %s
|
||||
|
||||
// The front-end should emit clang.arc.no_objc_arc_exceptions in -fobjc-arc-exceptions
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -g -triple x86_64-apple-darwin -O0 -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -g -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s
|
||||
|
||||
// rdar://problem/14386148
|
||||
// Test that the foo is aligned at an 8 byte boundary in the DWARF
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s
|
||||
|
||||
// rdar://12759433
|
||||
@class NSString;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.layout %s
|
||||
// rdar://12752901
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// REQUIRES: x86-64-registered-target
|
||||
// RUN: %clang_cc1 -emit-llvm -fblocks -fobjc-default-synthesize-properties -fobjc-arc -O0 -g -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -emit-llvm -fblocks -fobjc-default-synthesize-properties -fobjc-arc -g -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
|
||||
|
||||
// rdar://11562117
|
||||
typedef unsigned int NSUInteger;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// REQUIRES: x86-64-registered-target
|
||||
// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -O0 -S %s -o %t-64.s
|
||||
// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
|
||||
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
|
||||
|
||||
// rdar://8800513
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: x86-64-registered-target
|
||||
// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -O0 -S %s -o %t-64.s
|
||||
// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
|
||||
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
|
||||
// RUN: %clang_cc1 -x objective-c++ -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -O0 -S %s -o %t-64.s
|
||||
// RUN: %clang_cc1 -x objective-c++ -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
|
||||
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
|
||||
|
||||
@interface NSObject {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -fblocks -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-runtime-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: FileCheck --input-file=%t-64.layout %s
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-runtime-has-weak -triple i386-apple-darwin -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: %clang_cc1 -fblocks -fobjc-runtime-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
|
||||
// RUN: FileCheck -check-prefix=CHECK-i386 --input-file=%t-32.layout %s
|
||||
// rdar://12184410
|
||||
// rdar://12184410
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -emit-llvm -fobjc-arc -O0 -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -emit-llvm -fobjc-arc -o - %s | FileCheck %s
|
||||
|
||||
id makeObject1() __attribute__((ns_returns_retained));
|
||||
id makeObject2() __attribute__((ns_returns_retained));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -x objective-c++ -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -O0 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: %clang_cc1 -x objective-c++ -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
|
||||
// RUN: FileCheck --input-file=%t-64.layout %s
|
||||
// rdar://12184410
|
||||
// rdar://12752901
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -O0 -o - %s | FileCheck %s
|
||||
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
|
||||
|
||||
typedef unsigned int uint4 __attribute__((ext_vector_type(4)));
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
// NONFRAGILE:#define __OBJC2__ 1
|
||||
//
|
||||
//
|
||||
// RUN: %clang_cc1 -O0 -E -dM < /dev/null | FileCheck -check-prefix O0 %s
|
||||
// RUN: %clang_cc1 -E -dM < /dev/null | FileCheck -check-prefix O0 %s
|
||||
//
|
||||
// O0:#define __NO_INLINE__ 1
|
||||
// O0-NOT:#define __OPTIMIZE_SIZE__
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
// RUN: %clang_cc1 -Eonly %s -DOPT_O0 -O0 -verify
|
||||
// RUN: %clang_cc1 -Eonly %s -DOPT_O0 -verify
|
||||
#ifdef OPT_O0
|
||||
// expected-no-diagnostics
|
||||
#ifdef __OPTIMIZE__
|
||||
|
|
Loading…
Reference in New Issue