From: Eli Friedman Date: Mon, 6 Jun 2011 21:23:05 +0000 (+0000) Subject: Start fixing up clang tests to work on the clang-native-arm-cortex-a9 builder. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e283f00fe9502150cf41bb1db70a5cd16693794;p=clang Start fixing up clang tests to work on the clang-native-arm-cortex-a9 builder. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132691 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/special/class.dtor/p3-0x.cpp b/test/CXX/special/class.dtor/p3-0x.cpp index 94b72a15e9..6cdd167983 100644 --- a/test/CXX/special/class.dtor/p3-0x.cpp +++ b/test/CXX/special/class.dtor/p3-0x.cpp @@ -26,9 +26,9 @@ void foo() { A a; C c; E e; - // CHECK: invoke void @_ZN1ED1Ev - // CHECK: invoke void @_ZN1CD1Ev - // CHECK: call void @_ZN1AD1Ev + // CHECK: invoke {{.*}} @_ZN1ED1Ev + // CHECK: invoke {{.*}} @_ZN1CD1Ev + // CHECK: call {{.*}} @_ZN1AD1Ev } struct F { @@ -88,9 +88,9 @@ void tfoo() { TA a; TC c; TE e; - // CHECK: invoke void @_ZN2TEIiED1Ev - // CHECK: invoke void @_ZN2TCIiED1Ev - // CHECK: call void @_ZN2TAIiED1Ev + // CHECK: invoke {{.*}} @_ZN2TEIiED1Ev + // CHECK: invoke {{.*}} @_ZN2TCIiED1Ev + // CHECK: call {{.*}} @_ZN2TAIiED1Ev } template @@ -122,7 +122,7 @@ void tinst() { TG g; TH h; } -// CHECK: define linkonce_odr void @_ZN2THIiED1Ev +// CHECK: define linkonce_odr {{.*}} @_ZN2THIiED1Ev // CHECK: _ZTIi // CHECK: __cxa_call_unexpected @@ -164,11 +164,11 @@ void tsw() { Sw swi; Sw swb; } -// CHECK-NOT: define linkonce_odr void @_ZN2SwI1BED1Ev({{.*}} nounwind -// CHECK: define linkonce_odr void @_ZN2SwI1BED1Ev({{.*}} +// CHECK-NOT: define linkonce_odr {{.*}} @_ZN2SwI1BED1Ev({{.*}} nounwind +// CHECK: define linkonce_odr {{.*}} @_ZN2SwI1BED1Ev({{.*}} // CHECK: _ZTIi // CHECK: __cxa_call_unexpected -// CHECK: define linkonce_odr void @_ZN2SwIiED1Ev({{.*}} nounwind +// CHECK: define linkonce_odr {{.*}} @_ZN2SwIiED1Ev({{.*}} nounwind template struct TVC : VX diff --git a/test/PCH/objcxx-ivar-class.mm b/test/PCH/objcxx-ivar-class.mm index 89d3e087f9..821495747d 100644 --- a/test/PCH/objcxx-ivar-class.mm +++ b/test/PCH/objcxx-ivar-class.mm @@ -6,7 +6,7 @@ // RUN: %clang_cc1 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s // CHECK: [C position] -// CHECK: call void @_ZN1SC1ERKS_ +// CHECK: call {{.*}} @_ZN1SC1ERKS_ // CHECK: [C setPosition:] // CHECK: call %struct.S* @_ZN1SaSERKS_ diff --git a/test/Sema/carbon.c b/test/Sema/carbon.c index f0affd2540..409ead3d03 100644 --- a/test/Sema/carbon.c +++ b/test/Sema/carbon.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -target-cpu pentium4 %s -print-stats +// RUN: %clang_cc1 %s -print-stats #ifdef __APPLE__ #include #endif diff --git a/test/Sema/stdcall-fastcall.c b/test/Sema/stdcall-fastcall.c index 4531eb2a81..eeacf94eb4 100644 --- a/test/Sema/stdcall-fastcall.c +++ b/test/Sema/stdcall-fastcall.c @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-pc-linux-gnu %s +// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-apple-darwin10 %s // CC qualifier can be applied only to functions int __attribute__((stdcall)) var1; // expected-warning{{'stdcall' only applies to function types; type here is 'int'}} diff --git a/test/Sema/x86-builtin-palignr.c b/test/Sema/x86-builtin-palignr.c index 23443065a4..83719a379f 100644 --- a/test/Sema/x86-builtin-palignr.c +++ b/test/Sema/x86-builtin-palignr.c @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -ffreestanding -fsyntax-only -target-feature +ssse3 -verify %s +// RUN: %clang_cc1 -ffreestanding -fsyntax-only -target-feature +ssse3 -verify -triple x86_64-pc-linux-gnu %s +// RUN: %clang_cc1 -ffreestanding -fsyntax-only -target-feature +ssse3 -verify -triple i686-apple-darwin10 %s #include diff --git a/test/SemaCXX/attr-regparm.cpp b/test/SemaCXX/attr-regparm.cpp index b98631abe5..91ee613be1 100644 --- a/test/SemaCXX/attr-regparm.cpp +++ b/test/SemaCXX/attr-regparm.cpp @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-pc-linux-gnu %s +// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-apple-darwin10 %s // PR7025 struct X0 {