2 ; RUN: llc -verify-machineinstrs -mtriple=x86_64-apple-darwin -debug -o /dev/null < %s 2>&1 | FileCheck %s
4 ; We need to make sure that rematerialization into a physical register marks the
5 ; super- or sub-register as dead after this rematerialization since only the
6 ; original register is actually used later. Largely irrelevant for a trivial
7 ; example like this, since eax is never used again, but easy to test.
9 define i8 @test_remat() {
11 ; CHECK: REGISTER COALESCER
12 ; CHECK: Remat: dead $eax = MOV32r0 implicit-def dead $eflags, implicit-def $al
15 ; On the other hand, if it's already the correct width, we really shouldn't be
16 ; marking the definition register as dead.
18 define i32 @test_remat32() {
20 ; CHECK: REGISTER COALESCER
21 ; CHECK: $eax = MOV32r0 implicit-def dead $eflags