Skip to content

Commit db44b41

Browse files
committed
Add test
1 parent 3d02e23 commit db44b41

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,19 @@ define amdgpu_kernel void @physreg_raises_limit() {
652652
ret void
653653
}
654654

655+
; FIXME: This should require 9. We cannot allocate an a128 at a0.
656+
define amdgpu_kernel void @physreg_tuple_alignment_raises_limit() {
657+
; CHECK-LABEL: define amdgpu_kernel void @physreg_tuple_alignment_raises_limit(
658+
; CHECK-SAME: ) #[[ATTR1]] {
659+
; CHECK-NEXT: call void asm sideeffect "
660+
; CHECK-NEXT: call void @use_most()
661+
; CHECK-NEXT: ret void
662+
;
663+
call void asm sideeffect "; use $0, $1", "a,{a[1:4]}"(<4 x i32> poison, <4 x i32> poison)
664+
call void @use_most()
665+
ret void
666+
}
667+
655668
attributes #0 = { "amdgpu-agpr-alloc"="0" }
656669
;.
657670
; CHECK: attributes #[[ATTR0]] = { "amdgpu-agpr-alloc"="0" "target-cpu"="gfx90a" "uniform-work-group-size"="false" }

0 commit comments

Comments
 (0)