From 985d1c5d15d7a09d4cf7fdad1d502aadc1672fd6 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 15 Feb 2013 21:30:01 +0000 Subject: Add the 'target-cpu' and 'target-features' attributes to functions. The back-end will use these values to reconfigure code generation for different features. llvm-svn: 175308 --- clang/test/CodeGenCXX/cxx11-exception-spec.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'clang/test/CodeGenCXX/cxx11-exception-spec.cpp') diff --git a/clang/test/CodeGenCXX/cxx11-exception-spec.cpp b/clang/test/CodeGenCXX/cxx11-exception-spec.cpp index 194b80cdd47..03b17d1b2ba 100644 --- a/clang/test/CodeGenCXX/cxx11-exception-spec.cpp +++ b/clang/test/CodeGenCXX/cxx11-exception-spec.cpp @@ -10,9 +10,9 @@ template struct S { static void g() noexcept(sizeof(T) == 4); }; -// CHECK: define {{.*}} @_Z1fIsEvv() { +// CHECK: define {{.*}} @_Z1fIsEvv() "target-features"={{.*}} { template<> void f() { h(); } -// CHECK: define {{.*}} @_Z1fIA2_sEvv() nounwind { +// CHECK: define {{.*}} @_Z1fIA2_sEvv() nounwind "target-features"={{.*}} { template<> void f() noexcept { h(); } // CHECK: define {{.*}} @_ZN1SIsE1fEv() @@ -21,9 +21,9 @@ template<> void S::f() { h(); } // CHECK: define {{.*}} @_ZN1SIA2_sE1fEv() nounwind template<> void S::f() noexcept { h(); } -// CHECK: define {{.*}} @_Z1fIDsEvv() { +// CHECK: define {{.*}} @_Z1fIDsEvv() "target-features"={{.*}} { template void f(); -// CHECK: define {{.*}} @_Z1fIA2_DsEvv() nounwind { +// CHECK: define {{.*}} @_Z1fIA2_DsEvv() nounwind "target-features"={{.*}} { template void f(); // CHECK: define {{.*}} @_ZN1SIDsE1fEv() @@ -33,9 +33,9 @@ template void S::f(); template void S::f(); void h() { - // CHECK: define {{.*}} @_Z1fIiEvv() nounwind { + // CHECK: define {{.*}} @_Z1fIiEvv() nounwind "target-features"={{.*}} { f(); - // CHECK: define {{.*}} @_Z1fIA2_iEvv() { + // CHECK: define {{.*}} @_Z1fIA2_iEvv() "target-features"={{.*}} { f(); // CHECK: define {{.*}} @_ZN1SIiE1fEv() nounwind @@ -44,9 +44,9 @@ void h() { // CHECK-NOT: nounwind S::f(); - // CHECK: define {{.*}} @_Z1fIfEvv() nounwind { + // CHECK: define {{.*}} @_Z1fIfEvv() nounwind "target-features"={{.*}} { void (*f1)() = &f; - // CHECK: define {{.*}} @_Z1fIdEvv() { + // CHECK: define {{.*}} @_Z1fIdEvv() "target-features"={{.*}} { void (*f2)() = &f; // CHECK: define {{.*}} @_ZN1SIfE1fEv() nounwind @@ -55,9 +55,9 @@ void h() { // CHECK-NOT: nounwind void (*f4)() = &S::f; - // CHECK: define {{.*}} @_Z1fIA4_cEvv() nounwind { + // CHECK: define {{.*}} @_Z1fIA4_cEvv() nounwind "target-features"={{.*}} { (void)&f; - // CHECK: define {{.*}} @_Z1fIcEvv() { + // CHECK: define {{.*}} @_Z1fIcEvv() "target-features"={{.*}} { (void)&f; // CHECK: define {{.*}} @_ZN1SIA4_cE1fEv() nounwind -- cgit v1.2.3