Skip to content

Commit 3cafb04

Browse files
committed
Add another test
1 parent 9579deb commit 3cafb04

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,30 @@ define amdgpu_kernel void @physreg_def_a32___def_vreg_a512_use_vreg_a256() {
616616
ret void
617617
}
618618

619+
define amdgpu_kernel void @mixed_physreg_vreg_tuples_0() {
620+
; CHECK-LABEL: define amdgpu_kernel void @mixed_physreg_vreg_tuples_0(
621+
; CHECK-SAME: ) #[[ATTR1]] {
622+
; CHECK-NEXT: call void asm sideeffect "
623+
; CHECK-NEXT: call void @use_most()
624+
; CHECK-NEXT: ret void
625+
;
626+
call void asm sideeffect "; use $0, $1", "{a[1:4]},a"(<4 x i32> poison, <4 x i32> poison)
627+
call void @use_most()
628+
ret void
629+
}
630+
631+
define amdgpu_kernel void @mixed_physreg_vreg_tuples_1() {
632+
; CHECK-LABEL: define amdgpu_kernel void @mixed_physreg_vreg_tuples_1(
633+
; CHECK-SAME: ) #[[ATTR1]] {
634+
; CHECK-NEXT: call void asm sideeffect "
635+
; CHECK-NEXT: call void @use_most()
636+
; CHECK-NEXT: ret void
637+
;
638+
call void asm sideeffect "; use $0, $1", "a,{a[0:3]}"(<4 x i32> poison, <4 x i32> poison)
639+
call void @use_most()
640+
ret void
641+
}
642+
619643
attributes #0 = { "amdgpu-agpr-alloc"="0" }
620644
;.
621645
; CHECK: attributes #[[ATTR0]] = { "amdgpu-agpr-alloc"="0" "target-cpu"="gfx90a" "uniform-work-group-size"="false" }

0 commit comments

Comments
 (0)