Author: hans Date: Tue May 24 18:37:56 2016 New Revision: 270633 URL: http://llvm.org/viewvc/llvm-project?rev=270633&view=rev Log: Rename test/CodeGen/inline-optim.cc to .c and provide a triple
Added: cfe/trunk/test/CodeGen/inline-optim.c - copied, changed from r270615, cfe/trunk/test/CodeGen/inline-optim.cc Removed: cfe/trunk/test/CodeGen/inline-optim.cc Copied: cfe/trunk/test/CodeGen/inline-optim.c (from r270615, cfe/trunk/test/CodeGen/inline-optim.cc) URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/inline-optim.c?p2=cfe/trunk/test/CodeGen/inline-optim.c&p1=cfe/trunk/test/CodeGen/inline-optim.cc&r1=270615&r2=270633&rev=270633&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/inline-optim.cc (original) +++ cfe/trunk/test/CodeGen/inline-optim.c Tue May 24 18:37:56 2016 @@ -1,8 +1,8 @@ // Make sure -finline-functions family flags are behaving correctly. -// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s -// RUN: %clang_cc1 -O3 -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s -// RUN: %clang_cc1 -finline-functions -emit-llvm %s -o - | FileCheck -check-prefix=INLINE %s +// RUN: %clang_cc1 -triple i686-pc-win32 -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s +// RUN: %clang_cc1 -triple i686-pc-win32 -O3 -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s +// RUN: %clang_cc1 -triple i686-pc-win32 -finline-functions -emit-llvm %s -o - | FileCheck -check-prefix=INLINE %s inline int inline_hint(int a, int b) { return(a+b); } Removed: cfe/trunk/test/CodeGen/inline-optim.cc URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/inline-optim.cc?rev=270632&view=auto ============================================================================== --- cfe/trunk/test/CodeGen/inline-optim.cc (original) +++ cfe/trunk/test/CodeGen/inline-optim.cc (removed) @@ -1,26 +0,0 @@ -// Make sure -finline-functions family flags are behaving correctly. - -// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s -// RUN: %clang_cc1 -O3 -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s -// RUN: %clang_cc1 -finline-functions -emit-llvm %s -o - | FileCheck -check-prefix=INLINE %s - -inline int inline_hint(int a, int b) { return(a+b); } - -int inline_no_hint(int a, int b) { return (a/b); } - -inline __attribute__ ((__always_inline__)) int inline_always(int a, int b) { return(a*b); } - -volatile int *pa = (int*) 0x1000; -void foo() { -// NOINLINE-LABEL: @foo -// INLINE-LABEL: @foo -// NOINLINE: call i32 @inline_hint -// INLINE-NOT: call i32 @inline_hint - pa[0] = inline_hint(pa[1],pa[2]); -// NOINLINE-NOT: call i32 @inline_always -// INLINE-NOT: call i32 @inline_always - pa[3] = inline_always(pa[4],pa[5]); -// NOINLINE: call i32 @inline_no_hint -// INLINE-NOT: call i32 @inline_no_hint - pa[6] = inline_no_hint(pa[7], pa[8]); -} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits