[llvm-commits] [parallel] CVS: llvm/test/Regression/CodeGen/X86/2003-08-03-ReservedWordFunction.llx 2004-02-08-UnwindSupport.llx 2004-02-12-Memcpy.llx 2004-02-13-FrameReturnAddress.llx 2004-02-14-InefficientStackPointer.llx 2004-02-22-Casts.llx

Misha Brukman brukman at cs.uiuc.edu
Mon Mar 1 19:39:06 PST 2004


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

2003-08-03-ReservedWordFunction.llx added (r1.1.2.1)
2004-02-08-UnwindSupport.llx added (r1.1.2.1)
2004-02-12-Memcpy.llx added (r1.1.2.1)
2004-02-13-FrameReturnAddress.llx added (r1.2.2.1)
2004-02-14-InefficientStackPointer.llx added (r1.1.2.1)
2004-02-22-Casts.llx added (r1.1.2.1)

---
Log message:

Merge from trunk

---
Diffs of the changes:  (+80 -0)

Index: llvm/test/Regression/CodeGen/X86/2003-08-03-ReservedWordFunction.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2003-08-03-ReservedWordFunction.llx:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CodeGen/X86/2003-08-03-ReservedWordFunction.llx	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,13 ----
+ ; This testcase ensures the code emitter does something about the fact that
+ ; we can have collisions with keywords
+ 
+ ; RUN: llvm-as < %s | llc | not grep '^byte:'
+ 
+ void %byte() {
+   ret void
+ }
+ int %main() {
+   call void %byte()
+   ret int 0
+ }
+ 


Index: llvm/test/Regression/CodeGen/X86/2004-02-08-UnwindSupport.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2004-02-08-UnwindSupport.llx:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CodeGen/X86/2004-02-08-UnwindSupport.llx	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | lli -enable-correct-eh-support
+ 
+ int %test() {
+   unwind
+ }
+ 
+ int %main() {
+ 	%X = invoke int %test() to label %cont except label %EH
+ cont:
+ 	ret int 1
+ EH:
+ 	ret int 0
+ }


Index: llvm/test/Regression/CodeGen/X86/2004-02-12-Memcpy.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2004-02-12-Memcpy.llx:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CodeGen/X86/2004-02-12-Memcpy.llx	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,24 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep movs
+ declare sbyte* %llvm.memcpy(sbyte* %A, sbyte* %B, uint %amt, uint %align)
+ 
+ %A = global [1000 x int] zeroinitializer
+ %B = global [1000 x int] zeroinitializer
+ 
+ 
+ void %main() {
+   ; dword copy
+   call sbyte* %llvm.memcpy(sbyte* cast (int* getelementptr ([1000 x int]* %A, long 0, long 0) to sbyte*),
+                            sbyte* cast (int* getelementptr ([1000 x int]* %B, long 0, long 0) to sbyte*),
+                            uint 4000, uint 4)
+ 
+   ; word copy
+   call sbyte* %llvm.memcpy(sbyte* cast (int* getelementptr ([1000 x int]* %A, long 0, long 0) to sbyte*),
+                            sbyte* cast (int* getelementptr ([1000 x int]* %B, long 0, long 0) to sbyte*),
+                            uint 4000, uint 2)
+ 
+   ; byte copy
+   call sbyte* %llvm.memcpy(sbyte* cast (int* getelementptr ([1000 x int]* %A, long 0, long 0) to sbyte*),
+                            sbyte* cast (int* getelementptr ([1000 x int]* %B, long 0, long 0) to sbyte*),
+                            uint 4000, uint 1)
+   ret void
+ }


Index: llvm/test/Regression/CodeGen/X86/2004-02-13-FrameReturnAddress.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2004-02-13-FrameReturnAddress.llx:1.2.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CodeGen/X86/2004-02-13-FrameReturnAddress.llx	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep ESP | grep '\['
+ 
+ declare sbyte* %llvm.returnaddress(uint)
+ declare sbyte* %llvm.frameaddress(uint)
+ 
+ sbyte *%test1() {
+ 	%X = call sbyte* %llvm.returnaddress(uint 0)
+ 	ret sbyte* %X
+ }
+ 
+ sbyte *%test2() {
+ 	%X = call sbyte* %llvm.frameaddress(uint 0)
+ 	ret sbyte* %X
+ }


Index: llvm/test/Regression/CodeGen/X86/2004-02-14-InefficientStackPointer.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2004-02-14-InefficientStackPointer.llx:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CodeGen/X86/2004-02-14-InefficientStackPointer.llx	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,5 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep ESP | not grep sub
+ 
+ int %test(int %X) {
+ 	ret int %X
+ }


Index: llvm/test/Regression/CodeGen/X86/2004-02-22-Casts.llx
diff -c /dev/null llvm/test/Regression/CodeGen/X86/2004-02-22-Casts.llx:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Regression/CodeGen/X86/2004-02-22-Casts.llx	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | llc -march=x86
+ 
+ bool %test1(double %X) {
+    %V = cast double %X to bool
+    ret bool %V
+ }
+ 
+ double %test2(ulong %X) {
+    %V = cast ulong %X to double
+    ret double %V
+ }





More information about the llvm-commits mailing list