blob: 633a61564558cf4c403cc8215c2200c222922bd9 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Linear scan does not currently coalesce any two variables that have
2; overlapping live intervals. When two overlapping intervals have the same
3; value, they can be joined though.
4;
Tanya Lattner348c6182008-03-25 04:26:08 +00005; RUN: llvm-as < %s | llc -march=x86 -regalloc=linearscan | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006; RUN: not grep {mov %\[A-Z\]\\\{2,3\\\}, %\[A-Z\]\\\{2,3\\\}}
7
Tanya Lattner348c6182008-03-25 04:26:08 +00008define i64 @test(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009entry:
Tanya Lattner348c6182008-03-25 04:26:08 +000010 %tmp.1 = mul i64 %x, 4294967297 ; <i64> [#uses=1]
11 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012}
Tanya Lattner348c6182008-03-25 04:26:08 +000013