Skip to content

Commit 1e692b2

Browse files
committed
update FunctionAttr test to use check-globals
1 parent e065350 commit 1e692b2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

llvm/test/Transforms/FunctionAttrs/convergent.ll

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals
22
; RUN: opt -passes=function-attrs -S < %s | FileCheck %s
33

44
define i32 @nonleaf() convergent {
@@ -158,3 +158,14 @@ define i32 @nonleaf_convergent() convergent {
158158

159159

160160
declare token @llvm.experimental.convergence.entry() #1
161+
;.
162+
; CHECK: attributes #[[ATTR0]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) }
163+
; CHECK: attributes #[[ATTR1]] = { convergent }
164+
; CHECK: attributes #[[ATTR2]] = { norecurse }
165+
; CHECK: attributes #[[ATTR3:[0-9]+]] = { convergent nocallback nounwind }
166+
; CHECK: attributes #[[ATTR4]] = { convergent norecurse nounwind }
167+
; CHECK: attributes #[[ATTR5]] = { nofree nosync nounwind memory(none) }
168+
; CHECK: attributes #[[ATTR6]] = { convergent noinline optnone }
169+
; CHECK: attributes #[[ATTR7]] = { convergent mustprogress nofree norecurse nosync nounwind willreturn memory(none) }
170+
; CHECK: attributes #[[ATTR8:[0-9]+]] = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
171+
;.

0 commit comments

Comments
 (0)