Fix PR3934 part 2. findOnlyInterestingUse() was not setting IsCopy and IsDstPhys...
[oota-llvm.git] / test / CodeGen / X86 / subreg-to-reg-1.ll
1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep {leal    .*), %e.\*} | count 1
2
3 ; Don't eliminate or coalesce away the explicit zero-extension!
4 ; This is currently using an leal because of a 3-addressification detail,
5 ; though this isn't necessary; The point of this test is to make sure
6 ; a 32-bit add is used.
7
8 define i64 @foo(i64 %a) nounwind {
9   %b = add i64 %a, 4294967295
10   %c = and i64 %b, 4294967295
11   %d = add i64 %c, 1
12   ret i64 %d
13 }