From 95cb0fa61445b468006dfa1a286b4b31225ce4ee Mon Sep 17 00:00:00 2001 From: James Molloy Date: Thu, 12 Nov 2015 10:56:51 +0000 Subject: [PATCH] Update clang regression tests for 'norecurse' FunctionAttrs has just been taught how to infer 'norecurse'. Update clang tests for LLVM r252871. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252872 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/attr-minsize.cpp | 2 +- test/CodeGen/function-attributes.c | 6 +++--- test/CodeGenCXX/default-destructor-synthesis.cpp | 2 +- test/CodeGenCXX/member-initializers.cpp | 2 +- test/CodeGenCXX/pointers-to-data-members.cpp | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/CodeGen/attr-minsize.cpp b/test/CodeGen/attr-minsize.cpp index 0f07725fe8..65e18532b6 100644 --- a/test/CodeGen/attr-minsize.cpp +++ b/test/CodeGen/attr-minsize.cpp @@ -76,4 +76,4 @@ void test5(float arg); // Oz: attributes [[MINSIZE]] = { minsize{{.*}} } -// OTHER: attributes [[MS]] = { minsize nounwind{{.*}} } +// OTHER: attributes [[MS]] = { minsize {{(norecurse )?}}nounwind{{.*}} } diff --git a/test/CodeGen/function-attributes.c b/test/CodeGen/function-attributes.c index 177ad848f7..3590dffaef 100644 --- a/test/CodeGen/function-attributes.c +++ b/test/CodeGen/function-attributes.c @@ -128,9 +128,9 @@ void f20(void) { _setjmp(0); } -// CHECK: attributes [[NUW]] = { nounwind optsize readnone{{.*}} } -// CHECK: attributes [[AI]] = { alwaysinline nounwind optsize readnone{{.*}} } -// CHECK: attributes [[ALIGN]] = { nounwind optsize readnone alignstack=16{{.*}} } +// CHECK: attributes [[NUW]] = { norecurse nounwind optsize readnone{{.*}} } +// CHECK: attributes [[AI]] = { alwaysinline norecurse nounwind optsize readnone{{.*}} } +// CHECK: attributes [[ALIGN]] = { norecurse nounwind optsize readnone alignstack=16{{.*}} } // CHECK: attributes [[RT]] = { nounwind optsize returns_twice{{.*}} } // CHECK: attributes [[NR]] = { noreturn nounwind optsize } // CHECK: attributes [[NUW_RN]] = { nounwind optsize readnone } diff --git a/test/CodeGenCXX/default-destructor-synthesis.cpp b/test/CodeGenCXX/default-destructor-synthesis.cpp index af780044d1..8daf383232 100644 --- a/test/CodeGenCXX/default-destructor-synthesis.cpp +++ b/test/CodeGenCXX/default-destructor-synthesis.cpp @@ -35,4 +35,4 @@ int f() { return count; } -// CHECK: attributes [[NUW]] = { nounwind{{.*}} } +// CHECK: attributes [[NUW]] = { norecurse nounwind{{.*}} } diff --git a/test/CodeGenCXX/member-initializers.cpp b/test/CodeGenCXX/member-initializers.cpp index c98e6bf923..5bbf00b3d2 100644 --- a/test/CodeGenCXX/member-initializers.cpp +++ b/test/CodeGenCXX/member-initializers.cpp @@ -32,4 +32,4 @@ int test_fold() { return A(2).i; } -// CHECK: attributes [[NUW_RN]] = { nounwind readnone{{.*}} } +// CHECK: attributes [[NUW_RN]] = { norecurse nounwind readnone{{.*}} } diff --git a/test/CodeGenCXX/pointers-to-data-members.cpp b/test/CodeGenCXX/pointers-to-data-members.cpp index 94337d98a1..240d74084a 100644 --- a/test/CodeGenCXX/pointers-to-data-members.cpp +++ b/test/CodeGenCXX/pointers-to-data-members.cpp @@ -295,4 +295,4 @@ U u; // CHECK-GLOBAL: @_ZN11IndirectPDM1uE = global %"union.IndirectPDM::U" { %union.anon { i64 -1 } }, align 8 } -// CHECK-O3: attributes [[NUW]] = { nounwind readnone{{.*}} } +// CHECK-O3: attributes [[NUW]] = { norecurse nounwind readnone{{.*}} } -- 2.50.1