1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -mcpu=gfx1031 -verify-machineinstrs -run-pass=localizer -o - %s | FileCheck %s
4 # Previously this was placing the new G_CONSTANT after the use call
6 name: wrong_user_insert_pt
7 tracksRegLiveness: true
9 ; CHECK-LABEL: name: wrong_user_insert_pt
11 ; CHECK-NEXT: successors: %bb.1(0x80000000)
13 ; CHECK-NEXT: [[C:%[0-9]+]]:_(p0) = G_CONSTANT i64 0
14 ; CHECK-NEXT: G_BR %bb.1
17 ; CHECK-NEXT: ADJCALLSTACKUP 0, 0, implicit-def $scc
18 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(p0) = G_CONSTANT i64 0
19 ; CHECK-NEXT: $sgpr30_sgpr31 = G_SI_CALL [[C1]](p0), 0, csr_amdgpu
20 ; CHECK-NEXT: ADJCALLSTACKDOWN 0, 0, implicit-def $scc
21 ; CHECK-NEXT: S_SETPC_B64_return undef $sgpr30_sgpr31
23 %0:_(p0) = G_CONSTANT i64 0
27 ADJCALLSTACKUP 0, 0, implicit-def $scc
28 $sgpr30_sgpr31 = G_SI_CALL %0, 0, csr_amdgpu
29 ADJCALLSTACKDOWN 0, 0, implicit-def $scc
30 S_SETPC_B64_return undef $sgpr30_sgpr31