[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx

Alkis Evlogimenos alkis at cs.uiuc.edu
Mon Apr 12 14:05:02 PDT 2004


Changes in directory llvm/test/Regression/CodeGen/Generic:

2004-04-09-SameValueCoalescing.llx updated: 1.1 -> 1.2

---
Log message:

Update testcase to illustrate the coalescing problem. The previous one did not work because of a fix in the x86 instruction selector.


---
Diffs of the changes:  (+4 -12)

Index: llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx
diff -u llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx:1.1 llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx:1.2
--- llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx:1.1	Mon Apr 12 10:40:25 2004
+++ llvm/test/Regression/CodeGen/Generic/2004-04-09-SameValueCoalescing.llx	Mon Apr 12 14:04:22 2004
@@ -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
 }





More information about the llvm-commits mailing list