1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=gfx90a -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - | FileCheck %s
5 name: assert_align_vgpr
8 tracksRegLiveness: true
13 ; CHECK-LABEL: name: assert_align_vgpr
14 ; CHECK: liveins: $vgpr0_vgpr1
16 ; CHECK-NEXT: %copy:vgpr(p1) = COPY $vgpr0_vgpr1
17 ; CHECK-NEXT: %assert_align:vgpr(p1) = G_ASSERT_ALIGN %copy, 4
18 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_align(p1)
19 %copy:_(p1) = COPY $vgpr0_vgpr1
20 %assert_align:_(p1) = G_ASSERT_ALIGN %copy, 4
21 S_ENDPGM 0, implicit %assert_align
25 name: assert_align_sgpr
28 tracksRegLiveness: true
33 ; CHECK-LABEL: name: assert_align_sgpr
34 ; CHECK: liveins: $sgpr8_sgpr9
36 ; CHECK-NEXT: %copy:sgpr(p1) = COPY $sgpr8_sgpr9
37 ; CHECK-NEXT: %assert_align:sgpr(p1) = G_ASSERT_ALIGN %copy, 4
38 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_align(p1)
39 %copy:_(p1) = COPY $sgpr8_sgpr9
40 %assert_align:_(p1) = G_ASSERT_ALIGN %copy, 4
41 S_ENDPGM 0, implicit %assert_align
45 name: assert_align_agpr
48 tracksRegLiveness: true
53 ; CHECK-LABEL: name: assert_align_agpr
54 ; CHECK: liveins: $agpr0_agpr1
56 ; CHECK-NEXT: %copy:agpr(p1) = COPY $agpr0_agpr1
57 ; CHECK-NEXT: %assert_align:agpr(p1) = G_ASSERT_ALIGN %copy, 4
58 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_align(p1)
59 %copy:_(p1) = COPY $agpr0_agpr1
60 %assert_align:_(p1) = G_ASSERT_ALIGN %copy, 4
61 S_ENDPGM 0, implicit %assert_align