summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/unwind-attr.c
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-15 21:30:01 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-15 21:30:01 +0000
commit985d1c5d15d7a09d4cf7fdad1d502aadc1672fd6 (patch)
treeb8a47e64d3688decb45cf1c7f3c5613f9bb7d2d6 /clang/test/CodeGen/unwind-attr.c
parente78ecc2cc70b48907fdaea4dbadf0aecb84f2f86 (diff)
downloadbcm5719-llvm-985d1c5d15d7a09d4cf7fdad1d502aadc1672fd6.tar.gz
bcm5719-llvm-985d1c5d15d7a09d4cf7fdad1d502aadc1672fd6.zip
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
Diffstat (limited to 'clang/test/CodeGen/unwind-attr.c')
-rw-r--r--clang/test/CodeGen/unwind-attr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGen/unwind-attr.c b/clang/test/CodeGen/unwind-attr.c
index 7a79cb6047a..3241b0d6146 100644
--- a/clang/test/CodeGen/unwind-attr.c
+++ b/clang/test/CodeGen/unwind-attr.c
@@ -3,22 +3,22 @@
int opaque();
-// CHECK: define [[INT:i.*]] @test0() {
-// CHECK-NOEXC: define [[INT:i.*]] @test0() nounwind {
+// CHECK: define [[INT:i.*]] @test0() "target-features"={{.*}} {
+// CHECK-NOEXC: define [[INT:i.*]] @test0() nounwind{{.*}} {
int test0(void) {
return opaque();
}
// <rdar://problem/8087431>: locally infer nounwind at -O0
-// CHECK: define [[INT:i.*]] @test1() nounwind {
-// CHECK-NOEXC: define [[INT:i.*]] @test1() nounwind {
+// CHECK: define [[INT:i.*]] @test1() nounwind{{.*}} {
+// CHECK-NOEXC: define [[INT:i.*]] @test1() nounwind{{.*}} {
int test1(void) {
return 0;
}
// <rdar://problem/8283071>: not for weak functions
-// CHECK: define weak [[INT:i.*]] @test2() {
-// CHECK-NOEXC: define weak [[INT:i.*]] @test2() nounwind {
+// CHECK: define weak [[INT:i.*]] @test2() "target-features"={{.*}} {
+// CHECK-NOEXC: define weak [[INT:i.*]] @test2() nounwind{{.*}} {
__attribute__((weak)) int test2(void) {
return 0;
}
OpenPOWER on IntegriCloud