1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt -S -passes=normalize < %s | FileCheck %s
4 ; Function Attrs: convergent nounwind readnone
5 define i32 @nested(i32 %src) #0 {
6 ; CHECK-LABEL: define i32 @nested(
7 ; CHECK-SAME: i32 [[A0:%.*]]) #[[ATTR0:[0-9]+]] {
8 ; CHECK-NEXT: [[BB15160:.*:]]
9 ; CHECK-NEXT: [[T1:%.*]] = call token @llvm.experimental.convergence.entry()
10 ; CHECK-NEXT: %"vl15001llvm.experimental.convergence.anchor()" = call token @llvm.experimental.convergence.anchor()
11 ; CHECK-NEXT: %"op68297llvm.amdgcn.readfirstlane.i32([[A0]], vl15001llvm.experimental.convergence.anchor())" = call i32 @llvm.amdgcn.readfirstlane.i32(i32 [[A0]]) [ "convergencectrl"(token %"vl15001llvm.experimental.convergence.anchor()") ]
12 ; CHECK-NEXT: ret i32 undef
14 %t1 = call token @llvm.experimental.convergence.entry()
15 %t2 = call token @llvm.experimental.convergence.anchor()
16 %r2 = call i32 @llvm.amdgcn.readfirstlane(i32 %src) [ "convergencectrl"(token %t2) ]
20 ; Function Attrs: convergent nounwind readnone
21 declare i32 @llvm.amdgcn.readfirstlane(i32) #0
23 declare token @llvm.experimental.convergence.entry()
25 declare token @llvm.experimental.convergence.anchor()
27 attributes #0 = { convergent nounwind readnone }