1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx90a -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - | FileCheck %s
8 tracksRegLiveness: true
13 ; CHECK-LABEL: name: assert_zext_vgpr
14 ; CHECK: liveins: $vgpr0
16 ; CHECK-NEXT: %copy:vgpr(s32) = COPY $vgpr0
17 ; CHECK-NEXT: %assert_zext:vgpr(s32) = G_ASSERT_ZEXT %copy, 4
18 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_zext(s32)
19 %copy:_(s32) = COPY $vgpr0
20 %assert_zext:_(s32) = G_ASSERT_ZEXT %copy, 4
21 S_ENDPGM 0, implicit %assert_zext
25 name: assert_zext_sgpr
28 tracksRegLiveness: true
33 ; CHECK-LABEL: name: assert_zext_sgpr
34 ; CHECK: liveins: $sgpr8
36 ; CHECK-NEXT: %copy:sgpr(s32) = COPY $sgpr8
37 ; CHECK-NEXT: %assert_zext:sgpr(s32) = G_ASSERT_ZEXT %copy, 4
38 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_zext(s32)
39 %copy:_(s32) = COPY $sgpr8
40 %assert_zext:_(s32) = G_ASSERT_ZEXT %copy, 4
41 S_ENDPGM 0, implicit %assert_zext
45 name: assert_zext_agpr
48 tracksRegLiveness: true
53 ; CHECK-LABEL: name: assert_zext_agpr
54 ; CHECK: liveins: $agpr0
56 ; CHECK-NEXT: %copy:agpr(s32) = COPY $agpr0
57 ; CHECK-NEXT: %assert_zext:agpr(s32) = G_ASSERT_ZEXT %copy, 4
58 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_zext(s32)
59 %copy:_(s32) = COPY $agpr0
60 %assert_zext:_(s32) = G_ASSERT_ZEXT %copy, 4
61 S_ENDPGM 0, implicit %assert_zext
65 name: assert_zext_vgpr_regclass
68 tracksRegLiveness: true
73 ; CHECK-LABEL: name: assert_zext_vgpr_regclass
74 ; CHECK: liveins: $vgpr0
76 ; CHECK-NEXT: %copy:vgpr_32(s32) = COPY $vgpr0
77 ; CHECK-NEXT: %assert_zext:vgpr(s32) = G_ASSERT_ZEXT %copy, 4
78 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_zext(s32)
79 %copy:vgpr_32(s32) = COPY $vgpr0
80 %assert_zext:_(s32) = G_ASSERT_ZEXT %copy, 4
81 S_ENDPGM 0, implicit %assert_zext
85 name: assert_zext_sgpr_regcllass
88 tracksRegLiveness: true
93 ; CHECK-LABEL: name: assert_zext_sgpr_regcllass
94 ; CHECK: liveins: $sgpr8
96 ; CHECK-NEXT: %copy:sgpr_32(s32) = COPY $sgpr8
97 ; CHECK-NEXT: %assert_zext:sgpr(s32) = G_ASSERT_ZEXT %copy, 4
98 ; CHECK-NEXT: S_ENDPGM 0, implicit %assert_zext(s32)
99 %copy:sgpr_32(s32) = COPY $sgpr8
100 %assert_zext:_(s32) = G_ASSERT_ZEXT %copy, 4
101 S_ENDPGM 0, implicit %assert_zext