1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=i386-unknown-linux-musl -verify-machineinstrs -run-pass=regallocfast -o - %s | FileCheck %s
4 # Make sure this case doesn't assert or try to assign $ecx to %1 on
9 tracksRegLiveness: true
12 ; CHECK-LABEL: name: foo
13 ; CHECK: renamable $eax = IMPLICIT_DEF
14 ; CHECK: renamable $edx = MOVZX32rm8 renamable $eax, 1, $noreg, 0, $noreg :: (load (s8) from `ptr undef` + 20, align 4, basealign 16)
15 ; CHECK: dead renamable $ecx = MOV32rm renamable $eax, 1, $noreg, 0, $noreg :: (load (s32) from `ptr undef` + 12, basealign 16)
16 ; CHECK: renamable $al = MOV8rm killed renamable $eax, 1, $noreg, 0, $noreg :: (load (s8) from `ptr undef`, align 4)
17 ; CHECK: dead renamable $ecx = COPY renamable $edx
18 ; CHECK: dead renamable $ecx = COPY renamable $edx
19 ; CHECK: dead renamable $ecx = COPY renamable $edx
20 ; CHECK: renamable $esi = IMPLICIT_DEF
21 ; CHECK: renamable $ecx = IMPLICIT_DEF
22 ; CHECK: renamable $ecx = CMOV32rr renamable $ecx, killed renamable $esi, 2, implicit undef $eflags
23 ; CHECK: renamable $cl = MOV8ri -128
24 ; CHECK: $cl = IMPLICIT_DEF
25 ; CHECK: renamable $eax = COPY renamable $edx
26 ; CHECK: dead renamable $eax = SHRD32rrCL renamable $eax, killed renamable $edx, implicit-def dead $eflags, implicit killed $cl
28 %0:gr32 = IMPLICIT_DEF
29 %1:gr32 = MOVZX32rm8 %0, 1, $noreg, 0, $noreg :: (load (s8) from `ptr undef` + 20, align 4, basealign 16)
30 %2:gr32 = MOV32rm %0, 1, $noreg, 0, $noreg :: (load (s32) from `ptr undef` + 12, basealign 16)
31 %3:gr8 = MOV8rm %0, 1, $noreg, 0, $noreg :: (load (s8) from `ptr undef`, align 4)
35 %7:gr32 = IMPLICIT_DEF
36 %8:gr32 = IMPLICIT_DEF
37 %8:gr32 = CMOV32rr %8, killed %7, 2, implicit undef $eflags
42 %8:gr32 = SHRD32rrCL %8, %1, implicit-def dead $eflags, implicit $cl