From 7ab640fdcb30479c3eb79fba68d9239d1aae6cdc Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Mon, 12 Apr 2004 19:04:22 +0000 Subject: [PATCH] Update testcase to illustrate the coalescing problem. The previous one did not work because of a fix in the x86 instruction selector. llvm-svn: 12870 --- .../Generic/2004-04-09-SameValueCoalescing.llx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx b/llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx index 70ebc2349d33..981df5a97cb9 100644 --- a/llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx +++ b/llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx @@ -4,16 +4,8 @@ ; ; RUN: llvm-as < %s | llc -march=x86 -regalloc=linearscan | not grep 'mov %[A-Z]\{2,3\}, %[A-Z]\{2,3\}' -int %main() { - %ptr = alloca uint - br label %Loop -Loop: - %I = phi int [0, %0], [%i2, %Loop] - %i2 = add int %I, 1 - %i3 = cast int %i2 to uint - store uint %i3, uint* %ptr - %C = seteq int %i2, 10 - br bool %C, label %Out, label %Loop -Out: - ret int 0 +long %test(long %x) { +entry: + %tmp.1 = mul long %x, 4294967297 ; [#uses=1] + ret long %tmp.1 }