1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=x86_64 -enable-post-misched -run-pass=postmisched -o - %s | FileCheck %s
3---
4# Check that postmisched's TopDepthReduce heuristic moves the DEC32r later
5# because of the dependency on eax
6name: test
7body: |
8  bb.0:
9    ; CHECK-LABEL: name: test
10    ; CHECK: $eax = MOV32rr killed $edi
11    ; CHECK: MOV8mi killed renamable $rsi, 1, $noreg, 0, $noreg, 1 :: (store 1)
12    ; CHECK: renamable $eax = DEC32r killed renamable $eax, implicit-def $eflags
13    $eax = MOV32rr $edi
14    renamable $eax = DEC32r killed renamable $eax, implicit-def $eflags
15    MOV8mi killed renamable $rsi, 1, $noreg, 0, $noreg, 1 :: (store 1)
16...
17