Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / GlobalISel / regbankselect-assert-align.mir
blobe6d1bc7717cb0c214d72d32ff4bff3dc0bdf6373
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
4 ---
5 name:            assert_align_vgpr
6 alignment:       4
7 legalized:       true
8 tracksRegLiveness: true
9 body:             |
10   bb.0:
11     liveins: $vgpr0_vgpr1
13     ; CHECK-LABEL: name: assert_align_vgpr
14     ; CHECK: liveins: $vgpr0_vgpr1
15     ; CHECK-NEXT: {{  $}}
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
22 ...
24 ---
25 name:            assert_align_sgpr
26 alignment:       4
27 legalized:       true
28 tracksRegLiveness: true
29 body:             |
30   bb.0:
31     liveins: $sgpr8_sgpr9
33     ; CHECK-LABEL: name: assert_align_sgpr
34     ; CHECK: liveins: $sgpr8_sgpr9
35     ; CHECK-NEXT: {{  $}}
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
42 ...
44 ---
45 name:            assert_align_agpr
46 alignment:       4
47 legalized:       true
48 tracksRegLiveness: true
49 body:             |
50   bb.0:
51     liveins: $agpr0_agpr1
53     ; CHECK-LABEL: name: assert_align_agpr
54     ; CHECK: liveins: $agpr0_agpr1
55     ; CHECK-NEXT: {{  $}}
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
62 ...