aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-04-12 19:04:22 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-04-12 19:04:22 +0000
commit479f7e5e78acc18a0aa39f28c66165195db699b9 (patch)
tree8f1e8e30ffae9c648a9e487e9aa2774ca48559a4
parent43b61f724ef68810c63fc54c99e88f9b278f05c0 (diff)
Update testcase to illustrate the coalescing problem. The previous one did not work because of a fix in the x86 instruction selector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12870 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/2004-04-09-SameValueCoalescing.llx16
1 files changed, 4 insertions, 12 deletions
diff --git a/test/CodeGen/X86/2004-04-09-SameValueCoalescing.llx b/test/CodeGen/X86/2004-04-09-SameValueCoalescing.llx
index 70ebc2349d..981df5a97c 100644
--- a/test/CodeGen/X86/2004-04-09-SameValueCoalescing.llx
+++ b/test/CodeGen/X86/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 ; <long> [#uses=1]
+ ret long %tmp.1
}