llvm-project/llvm/test/CodeGen/X86/fixup-bw-inst-fwlive.mir

38 lines
721 B
YAML

# RUN: llc -run-pass x86-fixup-bw-insts -mtriple=x86_64-- -o /dev/null %s 2>&1 | FileCheck %s
# Verify that the forwards live-ness checking code in fixup-bw-inst works.
--- |
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
define i8 @foo(i8 %p1) {
entry:
%t1 = or i8 %p1, 0
br label %false
false:
ret i8 %t1
}
...
---
name: foo
allVRegsAllocated: true
isSSA: false
tracksRegLiveness: true
liveins:
- { reg: '%edi' }
body: |
bb.0.entry:
liveins: %edi
successors: %bb.1.false
%al = MOV8rr %dil, implicit %edi
; CHECK: %eax = MOV32rr undef %edi, implicit %dil
bb.1.false:
liveins: %al, %ax, %eax, %rax
RETQ %al
...