1 # RUN: llc -o - %s -mtriple=i686-- -run-pass branch-folder | FileCheck %s
2 # Test that tail merging drops undef flags that aren't present on all
3 # instructions to be merged.
5 define void @func() { ret void }
8 # CHECK-LABEL: name: func
10 # CHECK: $eax = MOV32ri 2
13 # CHECK-NOT: RET 0, undef $eax
16 tracksRegLiveness: true
19 JCC_1 %bb.1, 4, implicit undef $eflags