21 lines · plain
1# RUN: llc -run-pass register-coalescer -O0 -mtriple x86_64-pc-linux-gnu -o - %s | FileCheck %s2# RUN: llc -passes register-coalescer -O0 -mtriple x86_64-pc-linux-gnu -o - %s | FileCheck %s3 4---5name: foo6tracksRegLiveness: true7body: |8 bb.0:9 undef %18.sub_8bit_hi:gr16_abcd = COPY undef $al10 %1:gr16_abcd = COPY killed %1811 dead %8:gr8 = COPY undef %1.sub_8bit_hi12 $al = COPY undef %813...14 15# This used to hit an assertion:16# lib/CodeGen/RegisterCoalescer.cpp:1110: RegisterCoalescer::reMaterializeTrivialDef(...): Assertion `ValNo && "CopyMI input register not live"' failed.17#18# CHECK-LABEL: name: foo19# CHECK: bb.0:20# CHECK-NEXT: $al = COPY undef %2:gr821