Remove explicit uses of -emit-llvm, the test infrastructure adds it

automatically.  Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).

llvm-svn: 120160
This commit is contained in:
Duncan Sands 2010-11-25 21:39:17 +00:00
parent 0be0ae625d
commit 5fe97a0490
47 changed files with 63 additions and 63 deletions

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep unwind
// RUN: %llvmgxx -xc++ %s -S -o - | grep unwind
struct S { ~S(); };

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc -xc++ -c -o /dev/null %s |& not grep WARNING
// RUN: %llvmgcc -xc++ -S -o /dev/null %s |& not grep WARNING
struct iterator {
iterator();

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep getelementptr
// RUN: %llvmgxx -xc++ %s -S -o - | grep getelementptr
struct foo {
int array[100];

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc++ -c -o - %s | llvm-dis | grep _ZN11AccessFlags6strlenEv
// RUN: %llvmgcc -xc++ -S -o - %s | grep _ZN11AccessFlags6strlenEv
struct AccessFlags {
void strlen();

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep callDefaultCtor | \
// RUN: %llvmgxx -xc++ %s -S -o - | grep callDefaultCtor | \
// RUN: not grep declare
// This is a testcase for LLVM PR445, which was a problem where the

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -xc++ %s -c -o - | opt -die | llvm-dis | not grep cast
// RUN: %llvmgxx -xc++ %s -S -o - | opt -die -S | not grep cast
void foo(int*);

View File

@ -1,5 +1,5 @@
// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep {i32 1,}
// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep {i32 2,}
// RUN: %llvmgxx -O0 -S -g -o - %s | grep {i32 1,}
// RUN: %llvmgxx -O0 -S -g -o - %s | grep {i32 2,}
class A {
public:
int x;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -emit-llvm -S -o -
// RUN: %llvmgxx %s -S -o -
// PR954
struct _Refcount_Base {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -emit-llvm -S -o -
// RUN: %llvmgxx %s -S -o -
// PR1027
struct sys_var {

View File

@ -1,6 +1,6 @@
// Make sure unbounded arrays compile with debug information.
//
// RUN: %llvmgcc -O0 -c -g %s
// RUN: %llvmgcc -O0 -S -g %s
// PR1068

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep gnu.linkonce.
// RUN: %llvmgxx %s -S -o - | not grep gnu.linkonce.
// PR1085
class

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -emit-llvm -S -o -
// RUN: %llvmgxx %s -S -o -
// PR1084
extern "C"

View File

@ -1,5 +1,5 @@
// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep eprintf1
// RUN: %llvmgxx %s -emit-llvm -S -o - | grep eprintf
// RUN: %llvmgxx %s -S -o - | not grep eprintf1
// RUN: %llvmgxx %s -S -o - | grep eprintf
// Only one eprintf should exist in the output

View File

@ -1,16 +1,16 @@
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
// RUN: grep xglobWeak | grep linkonce | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
// RUN: grep xextWeak | grep linkonce | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
// RUN: grep xWeaknoinline | grep weak | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
// RUN: grep xWeakextnoinline | grep weak | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
// RUN: grep xglobnoWeak | grep linkonce | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
// RUN: grep xstatnoWeak | grep internal | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgxx %s -S -O0 -o - | grep define | \
// RUN: grep xextnoWeak | grep linkonce | count 1
inline int xglobWeak(int) __attribute__((weak));
inline int xglobWeak (int i) {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o -
// RUN: %llvmgxx %s -S -O0 -o -
// PR1378
typedef float v4sf __attribute__((vector_size(16)));

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -emit-llvm -S -o -
// RUN: %llvmgxx %s -S -o -
#pragma reverse_bitfields on
typedef unsigned long UINT32;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | ignore grep _Unwind_Resume | \
// RUN: %llvmgxx %s -S -O2 -o - | ignore grep _Unwind_Resume | \
// RUN: wc -l | grep {\[23\]}
struct One { };

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
// RUN: %llvmgxx -S %s -o - | grep noalias
void foo(int * __restrict myptr1, int * myptr2) {
myptr1[0] = 0;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
// RUN: %llvmgxx -S %s -o - | grep noalias
void foo(int & __restrict myptr1, int & myptr2) {
myptr1 = 0;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep noalias
// RUN: %llvmgxx -S %s -o - | grep noalias
class foo {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o -
// RUN: %llvmgxx -S %s -o -
// PR1634
namespace Manta

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c %s -o /dev/null
// RUN: %llvmgxx -S %s -o /dev/null
#pragma pack(4)

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -c -o /dev/null
// RUN: %llvmgxx %s -S -o /dev/null
// PR2917
#include <complex>

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S -g --emit-llvm %s -o - | grep "\~A"
// RUN: %llvmgcc -S -g %s -o - | grep "\~A"
class A {
int i;
public:

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o /dev/null -g
// RUN: %llvmgxx -S %s -o /dev/null -g
// XTARGET: darwin,linux
// XFAIL: *
template <typename T1,typename T2>

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c -g %s -o - | llc -O0 -o %t.s
// RUN: %llvmgcc -S -g %s -o - | llc -O0 -o %t.s
// RUN: %compile_c %t.s -o %t.o
// PR4025

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o /dev/null
// RUN: %llvmgxx -S %s -o /dev/null
// g++.old-deja/g++.jason/bool2.C from gcc testsuite.
// Crashed before 67975 went in.
struct F {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -S -emit-llvm %s -o - | grep nounwind | count 4
// RUN: %llvmgxx -S %s -o - | grep nounwind | count 4
int c(void) __attribute__((const));
int p(void) __attribute__((pure));
int t(void);

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o /dev/null -g
// RUN: %llvmgxx -S %s -o /dev/null -g
// This crashes if we try to emit debug info for TEMPLATE_DECL members.
template <class T> class K2PtrVectorBase {};
template <class T> class K2Vector {};

View File

@ -1,10 +1,10 @@
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep baz | grep global | grep {struct.bar}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep ccc | grep global | grep {struct.CC}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep quux | grep global | grep {struct.bar}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep foo | grep global | grep {struct.SRCFilter::FilterEntry}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.bar} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.CC} | grep {struct.payre<KBFP,float*} | grep {.base.32} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o - | grep {struct.SRCFilter::FilterEntry} | not grep {1 x i32}
// RUN: %llvmgxx -S -m32 %s -o - | grep baz | grep global | grep {struct.bar}
// RUN: %llvmgxx -S -m32 %s -o - | grep ccc | grep global | grep {struct.CC}
// RUN: %llvmgxx -S -m32 %s -o - | grep quux | grep global | grep {struct.bar}
// RUN: %llvmgxx -S -m32 %s -o - | grep foo | grep global | grep {struct.SRCFilter::FilterEntry}
// RUN: %llvmgxx -S -m32 %s -o - | grep {struct.bar} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 %s -o - | grep {struct.CC} | grep {struct.payre<KBFP,float*} | grep {.base.32} | grep {1 x i32}
// RUN: %llvmgxx -S -m32 %s -o - | grep {struct.SRCFilter::FilterEntry} | not grep {1 x i32}
// XFAIL: *
// XTARGET: powerpc-apple-darwin

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -c -emit-llvm %s -o -
// RUN: %llvmgxx -S %s -o -
// rdar://7114564
struct A {
unsigned long long : (sizeof(unsigned long long) * 8) - 16;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -c -o /dev/null
// RUN: %llvmgxx %s -S -o /dev/null
// <rdar://problem/7096460>
typedef void (*Func) ();
typedef long long m64 __attribute__((__vector_size__(8), __may_alias__));

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -emit-llvm -fapple-kext -S -o -
// RUN: %llvmgxx %s -fapple-kext -S -o -
// The extra check in 71555 caused this to crash on Darwin X86
// in an assert build.
class foo {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -S -m32 -emit-llvm %s -o /dev/null
// RUN: %llvmgxx -S -m32 %s -o /dev/null
class X {
public:
virtual ~X();

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -emit-llvm -S %s -o /dev/null
// RUN: %llvmgxx -S %s -o /dev/null
// Radar 7328944
typedef struct

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -S -emit-llvm %s -o - -O2 | FileCheck %s
// RUN: %llvmgxx -S %s -o - -O2 | FileCheck %s
namespace boost {
namespace detail {
template <typename T> struct cv_traits_imp {};

View File

@ -1,5 +1,5 @@
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | not grep ZN12basic_stringIcEC1Ev
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep ZN12basic_stringIcED1Ev | count 2
// RUN: %llvmgxx -xc++ %s -S -o - | not grep ZN12basic_stringIcEC1Ev
// RUN: %llvmgxx -xc++ %s -S -o - | grep ZN12basic_stringIcED1Ev | count 2
template<class charT>
class basic_string

View File

@ -1,4 +1,4 @@
//RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep DW_TAG_auto_variable
//RUN: %llvmgxx -O0 -S -g -o - %s | grep DW_TAG_auto_variable
class Foo
{
public:

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -g -c %s
// RUN: %llvmgxx -g -S %s
struct TEST2
{
int subid:32;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -g -c %s
// RUN: %llvmgxx -g -S %s
struct s8_0 { unsigned : 0; };
struct s8_1 { double x; };
struct s8 { s8_0 a; s8_1 b; };

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null
// RUN: %llvmgcc %s -S -m32 -fasm-blocks -o /dev/null
// This should not warn about unreferenced label. 8195660.
// XFAIL: *
// XTARGET: x86,i386,i686

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -emit-llvm -S -g %s -o - | FileCheck %s
// RUN: %llvmgxx -S -g %s -o - | FileCheck %s
// Require the template function declaration refer to the correct filename.
// First, locate the function decl in metadata, and pluck out the file handle:
// CHECK: {{extract_dwarf_data_from_header.*extract_dwarf_data_from_header.*extract_dwarf_data_from_header.*[^ ]+", metadata !}}[[filehandle:[0-9]+]],

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -S -emit-llvm %s -o - | FileCheck %s
// RUN: %llvmgxx -S %s -o - | FileCheck %s
// XFAIL: arm,powerpc
// rdar://7268289

View File

@ -1,6 +1,6 @@
// PR1602
// RUN: %llvmgxx -c -emit-llvm %s -o - -O3 | llvm-dis | not grep ptrtoint
// RUN: %llvmgxx -c -emit-llvm %s -o - -O3 | llvm-dis | grep getelementptr | count 1
// RUN: %llvmgxx -S %s -o - -O3 | not grep ptrtoint
// RUN: %llvmgxx -S %s -o - -O3 | grep getelementptr | count 1
struct S { virtual void f(); };

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -S -emit-llvm %s -o - | FileCheck %s
// RUN: %llvmgxx -S %s -o - | FileCheck %s
// rdar://7309675
// PR4678

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx %s -S -emit-llvm -O2 -o - | not grep {_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag}
// RUN: %llvmgxx %s -S -O2 -o - | not grep {_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag}
// PR4262
// The "basic_string" extern template instantiation declaration is supposed to

View File

@ -1,4 +1,4 @@
// RUN: %llvmgxx -S -emit-llvm %s -o - | grep byval | count 2
// RUN: %llvmgxx -S %s -o - | grep byval | count 2
// XTARGET: x86
// PR4242
// (PR 4242 bug is on 64-bit only, test passes on x86-32 as well)