[llvm] 0e099fa - [AArch64][SME] NFC: use update_test_checks.py for sme-pstate(sm|za)-attrs.ll

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 05:48:06 PDT 2023


Author: Sander de Smalen
Date: 2023-10-06T12:46:20Z
New Revision: 0e099faff157f63dbe47cda5634c6d66f19a7d43

URL: https://github.com/llvm/llvm-project/commit/0e099faff157f63dbe47cda5634c6d66f19a7d43
DIFF: https://github.com/llvm/llvm-project/commit/0e099faff157f63dbe47cda5634c6d66f19a7d43.diff

LOG: [AArch64][SME] NFC: use update_test_checks.py for sme-pstate(sm|za)-attrs.ll

Added: 
    

Modified: 
    llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
    llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll b/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
index 4e7074ec75dd63e..3df5400875ae288 100644
--- a/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
+++ b/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
@@ -1,45 +1,73 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
 ; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -mattr=+sme -S -passes=inline | FileCheck %s
 
 declare void @inlined_body() "aarch64_pstate_sm_compatible";
 
-;
 ; Define some functions that will be called by the functions below.
 ; These just call a '...body()' function. If we see the call to one of
 ; these functions being replaced by '...body()', then we know it has been
 ; inlined.
-;
 
 define void @normal_callee() {
+; CHECK-LABEL: define void @normal_callee
+; CHECK-SAME: () #[[ATTR1:[0-9]+]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @inlined_body()
   ret void
 }
 
 define void @streaming_callee() "aarch64_pstate_sm_enabled" {
+; CHECK-LABEL: define void @streaming_callee
+; CHECK-SAME: () #[[ATTR2:[0-9]+]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @inlined_body()
   ret void
 }
 
 define void @locally_streaming_callee() "aarch64_pstate_sm_body" {
+; CHECK-LABEL: define void @locally_streaming_callee
+; CHECK-SAME: () #[[ATTR3:[0-9]+]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @inlined_body()
   ret void
 }
 
 define void @streaming_compatible_callee() "aarch64_pstate_sm_compatible" {
+; CHECK-LABEL: define void @streaming_compatible_callee
+; CHECK-SAME: () #[[ATTR0:[0-9]+]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @inlined_body()
   ret void
 }
 
 define void @streaming_compatible_locally_streaming_callee() "aarch64_pstate_sm_compatible" "aarch64_pstate_sm_body" {
+; CHECK-LABEL: define void @streaming_compatible_locally_streaming_callee
+; CHECK-SAME: () #[[ATTR4:[0-9]+]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @inlined_body()
   ret void
 }
 
-;
 ; Now test that inlining only happens when their streaming modes match.
 ; Test for a number of combinations, where:
 ; N       Normal-interface (PSTATE.SM=0 on entry/exit)
@@ -58,8 +86,12 @@ entry:
 ; [ ] N  -> N + B
 ; [ ] N  -> SC + B
 define void @normal_caller_normal_callee_inline() {
-; CHECK-LABEL: @normal_caller_normal_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @normal_caller_normal_callee_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @normal_callee()
   ret void
@@ -71,8 +103,12 @@ entry:
 ; [ ] N  -> N + B
 ; [ ] N  -> SC + B
 define void @normal_caller_streaming_callee_dont_inline() {
-; CHECK-LABEL: @normal_caller_streaming_callee_dont_inline(
-; CHECK: call void @streaming_callee()
+; CHECK-LABEL: define void @normal_caller_streaming_callee_dont_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @streaming_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_callee()
   ret void
@@ -84,8 +120,12 @@ entry:
 ; [ ] N  -> N + B
 ; [ ] N  -> SC + B
 define void @normal_caller_streaming_compatible_callee_inline() {
-; CHECK-LABEL: @normal_caller_streaming_compatible_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @normal_caller_streaming_compatible_callee_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_callee()
   ret void
@@ -97,8 +137,12 @@ entry:
 ; [x] N  -> N + B
 ; [ ] N  -> SC + B
 define void @normal_caller_locally_streaming_callee_dont_inline() {
-; CHECK-LABEL: @normal_caller_locally_streaming_callee_dont_inline(
-; CHECK: call void @locally_streaming_callee()
+; CHECK-LABEL: define void @normal_caller_locally_streaming_callee_dont_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @locally_streaming_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @locally_streaming_callee()
   ret void
@@ -110,8 +154,12 @@ entry:
 ; [ ] N  -> N + B
 ; [x] N  -> SC + B
 define void @normal_caller_streaming_compatible_locally_streaming_callee_dont_inline() {
-; CHECK-LABEL: @normal_caller_streaming_compatible_locally_streaming_callee_dont_inline(
-; CHECK: call void @streaming_compatible_locally_streaming_callee()
+; CHECK-LABEL: define void @normal_caller_streaming_compatible_locally_streaming_callee_dont_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @streaming_compatible_locally_streaming_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_locally_streaming_callee()
   ret void
@@ -123,8 +171,12 @@ entry:
 ; [ ] S  -> N + B
 ; [ ] S  -> SC + B
 define void @streaming_caller_normal_callee_dont_inline() "aarch64_pstate_sm_enabled" {
-; CHECK-LABEL: @streaming_caller_normal_callee_dont_inline(
-; CHECK: call void @normal_callee()
+; CHECK-LABEL: define void @streaming_caller_normal_callee_dont_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @normal_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @normal_callee()
   ret void
@@ -136,8 +188,12 @@ entry:
 ; [ ] S  -> N + B
 ; [ ] S  -> SC + B
 define void @streaming_caller_streaming_callee_inline() "aarch64_pstate_sm_enabled" {
-; CHECK-LABEL: @streaming_caller_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_caller_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_callee()
   ret void
@@ -149,8 +205,12 @@ entry:
 ; [ ] S  -> N + B
 ; [ ] S  -> SC + B
 define void @streaming_caller_streaming_compatible_callee_inline() "aarch64_pstate_sm_enabled" {
-; CHECK-LABEL: @streaming_caller_streaming_compatible_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_caller_streaming_compatible_callee_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_callee()
   ret void
@@ -162,8 +222,12 @@ entry:
 ; [x] S  -> N + B
 ; [ ] S  -> SC + B
 define void @streaming_caller_locally_streaming_callee_inline() "aarch64_pstate_sm_enabled" {
-; CHECK-LABEL: @streaming_caller_locally_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_caller_locally_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @locally_streaming_callee()
   ret void
@@ -175,8 +239,12 @@ entry:
 ; [ ] S  -> N + B
 ; [x] S  -> SC + B
 define void @streaming_caller_streaming_compatible_locally_streaming_callee_inline() "aarch64_pstate_sm_enabled" {
-; CHECK-LABEL: @streaming_caller_streaming_compatible_locally_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_caller_streaming_compatible_locally_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_locally_streaming_callee()
   ret void
@@ -188,8 +256,12 @@ entry:
 ; [ ] N + B -> N + B
 ; [ ] N + B -> SC + B
 define void @locally_streaming_caller_normal_callee_dont_inline() "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @locally_streaming_caller_normal_callee_dont_inline(
-; CHECK: call void @normal_callee()
+; CHECK-LABEL: define void @locally_streaming_caller_normal_callee_dont_inline
+; CHECK-SAME: () #[[ATTR3]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @normal_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @normal_callee()
   ret void
@@ -201,8 +273,12 @@ entry:
 ; [ ] N + B -> N + B
 ; [ ] N + B -> SC + B
 define void @locally_streaming_caller_streaming_callee_inline() "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @locally_streaming_caller_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @locally_streaming_caller_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR3]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_callee()
   ret void
@@ -214,8 +290,12 @@ entry:
 ; [ ] N + B -> N + B
 ; [ ] N + B -> SC + B
 define void @locally_streaming_caller_streaming_compatible_callee_inline() "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @locally_streaming_caller_streaming_compatible_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @locally_streaming_caller_streaming_compatible_callee_inline
+; CHECK-SAME: () #[[ATTR3]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_callee()
   ret void
@@ -227,8 +307,12 @@ entry:
 ; [x] N + B -> N + B
 ; [ ] N + B -> SC + B
 define void @locally_streaming_caller_locally_streaming_callee_inline() "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @locally_streaming_caller_locally_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @locally_streaming_caller_locally_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR3]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @locally_streaming_callee()
   ret void
@@ -240,8 +324,12 @@ entry:
 ; [ ] N + B -> N + B
 ; [x] N + B -> SC + B
 define void @locally_streaming_caller_streaming_compatible_locally_streaming_callee_inline() "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @locally_streaming_caller_streaming_compatible_locally_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @locally_streaming_caller_streaming_compatible_locally_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR3]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_locally_streaming_callee()
   ret void
@@ -253,8 +341,12 @@ entry:
 ; [ ] SC -> N + B
 ; [ ] SC -> SC + B
 define void @streaming_compatible_caller_normal_callee_dont_inline() "aarch64_pstate_sm_compatible" {
-; CHECK-LABEL: @streaming_compatible_caller_normal_callee_dont_inline(
-; CHECK: call void @normal_callee()
+; CHECK-LABEL: define void @streaming_compatible_caller_normal_callee_dont_inline
+; CHECK-SAME: () #[[ATTR0]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @normal_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @normal_callee()
   ret void
@@ -266,8 +358,12 @@ entry:
 ; [ ] SC -> N + B
 ; [ ] SC -> SC + B
 define void @streaming_compatible_caller_streaming_callee_dont_inline() "aarch64_pstate_sm_compatible" {
-; CHECK-LABEL: @streaming_compatible_caller_streaming_callee_dont_inline(
-; CHECK: call void @streaming_callee()
+; CHECK-LABEL: define void @streaming_compatible_caller_streaming_callee_dont_inline
+; CHECK-SAME: () #[[ATTR0]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @streaming_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_callee()
   ret void
@@ -279,8 +375,12 @@ entry:
 ; [ ] SC -> N + B
 ; [ ] SC -> SC + B
 define void @streaming_compatible_caller_streaming_compatible_callee_inline() "aarch64_pstate_sm_compatible" {
-; CHECK-LABEL: @streaming_compatible_caller_streaming_compatible_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_compatible_caller_streaming_compatible_callee_inline
+; CHECK-SAME: () #[[ATTR0]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_callee()
   ret void
@@ -292,8 +392,12 @@ entry:
 ; [x] SC -> N + B
 ; [ ] SC -> SC + B
 define void @streaming_compatible_caller_locally_streaming_callee_dont_inline() "aarch64_pstate_sm_compatible" {
-; CHECK-LABEL: @streaming_compatible_caller_locally_streaming_callee_dont_inline(
-; CHECK: call void @locally_streaming_callee()
+; CHECK-LABEL: define void @streaming_compatible_caller_locally_streaming_callee_dont_inline
+; CHECK-SAME: () #[[ATTR0]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @locally_streaming_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @locally_streaming_callee()
   ret void
@@ -305,8 +409,12 @@ entry:
 ; [ ] SC -> N + B
 ; [x] SC -> SC + B
 define void @streaming_compatible_caller_streaming_compatible_locally_streaming_callee_dont_inline() "aarch64_pstate_sm_compatible" {
-; CHECK-LABEL: @streaming_compatible_caller_streaming_compatible_locally_streaming_callee_dont_inline(
-; CHECK: call void @streaming_compatible_locally_streaming_callee()
+; CHECK-LABEL: define void @streaming_compatible_caller_streaming_compatible_locally_streaming_callee_dont_inline
+; CHECK-SAME: () #[[ATTR0]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @streaming_compatible_locally_streaming_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_locally_streaming_callee()
   ret void
@@ -317,8 +425,12 @@ entry:
 ; [ ] SC + B -> N + B
 ; [ ] SC + B -> SC + B
 define void @streaming_compatible_locally_streaming_caller_normal_callee_dont_inline() "aarch64_pstate_sm_compatible" "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @streaming_compatible_locally_streaming_caller_normal_callee_dont_inline(
-; CHECK: call void @normal_callee()
+; CHECK-LABEL: define void @streaming_compatible_locally_streaming_caller_normal_callee_dont_inline
+; CHECK-SAME: () #[[ATTR4]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @normal_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @normal_callee()
   ret void
@@ -330,8 +442,12 @@ entry:
 ; [ ] SC + B -> N + B
 ; [ ] SC + B -> SC + B
 define void @streaming_compatible_locally_streaming_caller_streaming_callee_inline() "aarch64_pstate_sm_compatible" "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @streaming_compatible_locally_streaming_caller_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_compatible_locally_streaming_caller_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR4]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_callee()
   ret void
@@ -343,8 +459,12 @@ entry:
 ; [ ] SC + B -> N + B
 ; [ ] SC + B -> SC + B
 define void @streaming_compatible_locally_streaming_caller_streaming_compatible_callee_inline() "aarch64_pstate_sm_compatible" "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @streaming_compatible_locally_streaming_caller_streaming_compatible_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_compatible_locally_streaming_caller_streaming_compatible_callee_inline
+; CHECK-SAME: () #[[ATTR4]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_callee()
   ret void
@@ -356,8 +476,12 @@ entry:
 ; [x] SC + B -> N + B
 ; [ ] SC + B -> SC + B
 define void @streaming_compatible_locally_streaming_caller_locally_streaming_callee_inline() "aarch64_pstate_sm_compatible" "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @streaming_compatible_locally_streaming_caller_locally_streaming_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_compatible_locally_streaming_caller_locally_streaming_callee_inline
+; CHECK-SAME: () #[[ATTR4]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @locally_streaming_callee()
   ret void
@@ -369,8 +493,12 @@ entry:
 ; [ ] SC + B -> N + B
 ; [x] SC + B -> SC + B
 define void @streaming_compatible_locally_streaming_caller_and_callee_inline() "aarch64_pstate_sm_compatible" "aarch64_pstate_sm_body" {
-; CHECK-LABEL: @streaming_compatible_locally_streaming_caller_and_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @streaming_compatible_locally_streaming_caller_and_callee_inline
+; CHECK-SAME: () #[[ATTR4]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @streaming_compatible_locally_streaming_callee()
   ret void

diff  --git a/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll b/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll
index bdc9e637fe90c2d..a833e7a911ac03f 100644
--- a/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll
+++ b/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll
@@ -1,32 +1,47 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
 ; RUN: opt -mtriple=aarch64-unknown-linux-gnu -mattr=+sme -S -passes=inline < %s | FileCheck %s
 
 declare void @inlined_body()
 
-;
 ; Define some functions that will be called by the functions below.
 ; These just call a '...body()' function. If we see the call to one of
 ; these functions being replaced by '...body()', then we know it has been
 ; inlined.
-;
 
 define void @nonza_callee() {
+; CHECK-LABEL: define void @nonza_callee
+; CHECK-SAME: () #[[ATTR0:[0-9]+]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @inlined_body()
   ret void
 }
 
 define void @shared_za_callee() "aarch64_pstate_za_shared" {
+; CHECK-LABEL: define void @shared_za_callee
+; CHECK-SAME: () #[[ATTR1:[0-9]+]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @inlined_body()
   ret void
 }
 
 define void @new_za_callee() "aarch64_pstate_za_new" {
+; CHECK-LABEL: define void @new_za_callee
+; CHECK-SAME: () #[[ATTR2:[0-9]+]] {
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
   call void @inlined_body()
   ret void
 }
 
-;
 ; Now test that inlining only happens when no lazy-save is needed.
 ; Test for a number of combinations, where:
 ; N   Not using ZA.
@@ -37,8 +52,12 @@ define void @new_za_callee() "aarch64_pstate_za_new" {
 ; [ ] N -> S (This combination is invalid)
 ; [ ] N -> Z
 define void @nonza_caller_nonza_callee_inline() {
-; CHECK-LABEL: @nonza_caller_nonza_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @nonza_caller_nonza_callee_inline
+; CHECK-SAME: () #[[ATTR0]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @nonza_callee()
   ret void
@@ -48,8 +67,12 @@ entry:
 ; [ ] N -> S (This combination is invalid)
 ; [x] N -> Z
 define void @nonza_caller_new_za_callee_dont_inline() {
-; CHECK-LABEL: @nonza_caller_new_za_callee_dont_inline(
-; CHECK: call void @new_za_callee()
+; CHECK-LABEL: define void @nonza_caller_new_za_callee_dont_inline
+; CHECK-SAME: () #[[ATTR0]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @new_za_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @new_za_callee()
   ret void
@@ -59,8 +82,12 @@ entry:
 ; [ ] Z -> S
 ; [ ] Z -> Z
 define void @new_za_caller_nonza_callee_dont_inline() "aarch64_pstate_za_new" {
-; CHECK-LABEL: @new_za_caller_nonza_callee_dont_inline(
-; CHECK: call void @nonza_callee()
+; CHECK-LABEL: define void @new_za_caller_nonza_callee_dont_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @nonza_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @nonza_callee()
   ret void
@@ -70,8 +97,12 @@ entry:
 ; [x] Z -> S
 ; [ ] Z -> Z
 define void @new_za_caller_shared_za_callee_inline() "aarch64_pstate_za_new" {
-; CHECK-LABEL: @new_za_caller_shared_za_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @new_za_caller_shared_za_callee_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @shared_za_callee()
   ret void
@@ -81,8 +112,12 @@ entry:
 ; [ ] Z -> S
 ; [x] Z -> Z
 define void @new_za_caller_new_za_callee_dont_inline() "aarch64_pstate_za_new" {
-; CHECK-LABEL: @new_za_caller_new_za_callee_dont_inline(
-; CHECK: call void @new_za_callee()
+; CHECK-LABEL: define void @new_za_caller_new_za_callee_dont_inline
+; CHECK-SAME: () #[[ATTR2]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @new_za_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @new_za_callee()
   ret void
@@ -92,8 +127,12 @@ entry:
 ; [ ] Z -> S
 ; [ ] Z -> Z
 define void @shared_za_caller_nonza_callee_dont_inline() "aarch64_pstate_za_shared" {
-; CHECK-LABEL: @shared_za_caller_nonza_callee_dont_inline(
-; CHECK: call void @nonza_callee()
+; CHECK-LABEL: define void @shared_za_caller_nonza_callee_dont_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @nonza_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @nonza_callee()
   ret void
@@ -103,8 +142,12 @@ entry:
 ; [x] S -> Z
 ; [ ] S -> S
 define void @shared_za_caller_new_za_callee_dont_inline() "aarch64_pstate_za_shared" {
-; CHECK-LABEL: @shared_za_caller_new_za_callee_dont_inline(
-; CHECK: call void @new_za_callee()
+; CHECK-LABEL: define void @shared_za_caller_new_za_callee_dont_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @new_za_callee()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @new_za_callee()
   ret void
@@ -114,8 +157,12 @@ entry:
 ; [ ] S -> Z
 ; [x] S -> S
 define void @shared_za_caller_shared_za_callee_inline() "aarch64_pstate_za_shared" {
-; CHECK-LABEL: @shared_za_caller_shared_za_callee_inline(
-; CHECK: call void @inlined_body()
+; CHECK-LABEL: define void @shared_za_caller_shared_za_callee_inline
+; CHECK-SAME: () #[[ATTR1]] {
+; CHECK-NEXT:  entry:
+; CHECK-NEXT:    call void @inlined_body()
+; CHECK-NEXT:    ret void
+;
 entry:
   call void @shared_za_callee()
   ret void


        


More information about the llvm-commits mailing list