Skip to content

Commit 352ee93

Browse files
committed
Another test
1 parent a6fa5fd commit 352ee93

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

llvm/test/CodeGen/AMDGPU/amdgpu-attributor-no-agpr.ll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,18 @@ define amdgpu_kernel void @mixed_physreg_vreg_tuples_1() {
640640
ret void
641641
}
642642

643+
define amdgpu_kernel void @physreg_raises_limit() {
644+
; CHECK-LABEL: define amdgpu_kernel void @physreg_raises_limit(
645+
; CHECK-SAME: ) #[[ATTR1]] {
646+
; CHECK-NEXT: call void asm sideeffect "
647+
; CHECK-NEXT: call void @use_most()
648+
; CHECK-NEXT: ret void
649+
;
650+
call void asm sideeffect "; use $0, $1", "a,{a[5:8]}"(<4 x i32> poison, <4 x i32> poison)
651+
call void @use_most()
652+
ret void
653+
}
654+
643655
attributes #0 = { "amdgpu-agpr-alloc"="0" }
644656
;.
645657
; CHECK: attributes #[[ATTR0]] = { "amdgpu-agpr-alloc"="0" "target-cpu"="gfx90a" "uniform-work-group-size"="false" }

0 commit comments

Comments
 (0)