1 # RUN: llc -mtriple=i386-- -run-pass scavenger-test -verify-machineinstrs -o - %s | FileCheck %s
3 # CHECK-LABEL: name: func0
5 tracksRegLiveness: true
8 ; CHECK: [[REG0:\$e[a-z]+]] = MOV32ri 42
9 ; CHECK: $ebp = COPY killed [[REG0]]
10 %0 : gr32 = MOV32ri 42
14 # CHECK-LABEL: name: func2
16 tracksRegLiveness: true
19 ; CHECK-NOT: $eax = MOV32ri 42
20 ; CHECK: [[REG0:\$e[a-z]+]] = MOV32ri 42
21 ; CHECK: $ebp = COPY killed [[REG0]]
23 %0 : gr32 = MOV32ri 42
26 ; CHECK: [[REG1:\$e[a-z]+]] = MOV32ri 23
27 ; CHECK: [[REG2:\$e[a-z]+]] = MOV32ri 7
28 ; CHECK: [[REG1]] = ADD32ri8 [[REG1]], 5, implicit-def dead $eflags
29 %1 : gr32 = MOV32ri 23
31 %1 = ADD32ri8 %1, 5, implicit-def dead $eflags
35 ; CHECK: NOOP implicit killed [[REG2]]
36 ; CHECK: NOOP implicit killed [[REG1]]
42 # CHECK-LABEL: name: func3
44 tracksRegLiveness: true
47 ; CHECK dead {{\$e[a-z]+}} = MOV32ri 42
48 dead %0 : gr32 = MOV32ri 42