[llvm-commits] [parallel] CVS: llvm/test/Regression/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx 2004-02-15-PreexistingExternals.llx 2004-02-26-FPNotPrintableConstants.llx 2004-02-26-LinkOnceFunctions.llx 2003-06-23-PromotedExprs.llx 2003-06-28-LinkOnceGlobalVars.llx
Misha Brukman
brukman at cs.uiuc.edu
Mon Mar 1 19:07:06 PST 2004
Changes in directory llvm/test/Regression/CodeGen/CBackend:
2004-02-13-FrameReturnAddress.llx added (r1.1.2.1)
2004-02-15-PreexistingExternals.llx added (r1.1.2.1)
2004-02-26-FPNotPrintableConstants.llx added (r1.2.2.1)
2004-02-26-LinkOnceFunctions.llx added (r1.1.2.1)
2003-06-23-PromotedExprs.llx updated: 1.4 -> 1.4.6.1
2003-06-28-LinkOnceGlobalVars.llx updated: 1.2 -> 1.2.6.1
---
Log message:
Merge from trunk
---
Diffs of the changes: (+47 -2)
Index: llvm/test/Regression/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx
diff -c /dev/null llvm/test/Regression/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx:1.1.2.1
*** /dev/null Mon Mar 1 17:59:24 2004
--- llvm/test/Regression/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx Mon Mar 1 17:59:14 2004
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | llc -march=c | grep builtin_return_address
+
+ 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/CBackend/2004-02-15-PreexistingExternals.llx
diff -c /dev/null llvm/test/Regression/CodeGen/CBackend/2004-02-15-PreexistingExternals.llx:1.1.2.1
*** /dev/null Mon Mar 1 17:59:24 2004
--- llvm/test/Regression/CodeGen/CBackend/2004-02-15-PreexistingExternals.llx Mon Mar 1 17:59:14 2004
***************
*** 0 ****
--- 1,16 ----
+ ; The intrinsic lowering pass was lowering intrinsics like llvm.memcpy to
+ ; explicitly specified prototypes, inserting a new function if the old one
+ ; didn't exist. This caused there to be two external memcpy functions in
+ ; this testcase for example, which caused the CBE to mangle one, screwing
+ ; everything up. :( Test that this does not happen anymore.
+ ;
+ ; RUN: llvm-as < %s | llc -march=c | not grep _memcpy
+
+ declare void %llvm.memcpy(sbyte*, sbyte*, uint,uint)
+ declare float* %memcpy(int*, uint,int)
+
+ int %test(sbyte *%A, sbyte* %B, int* %C) {
+ call float* %memcpy(int* %C, uint 4, int 17)
+ call void %llvm.memcpy(sbyte* %A, sbyte* %B, uint 123, uint 14)
+ ret int 7
+ }
Index: llvm/test/Regression/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx
diff -c /dev/null llvm/test/Regression/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx:1.2.2.1
*** /dev/null Mon Mar 1 17:59:24 2004
--- llvm/test/Regression/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx Mon Mar 1 17:59:14 2004
***************
*** 0 ****
--- 1,7 ----
+ ; This is a non-normal FP value: it's a nan.
+ ; RUN: llvm-as < %s | llc -march=c | grep FPConstant | grep static
+
+ float %func () {
+ ret float 0xFF20000000000000
+ }
+
Index: llvm/test/Regression/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx
diff -c /dev/null llvm/test/Regression/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx:1.1.2.1
*** /dev/null Mon Mar 1 17:59:24 2004
--- llvm/test/Regression/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx Mon Mar 1 17:59:14 2004
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | llc -march=c | grep func1 | grep WEAK
+
+ implementation
+
+ linkonce int %func1 () {
+ ret int 5
+ }
+
Index: llvm/test/Regression/CodeGen/CBackend/2003-06-23-PromotedExprs.llx
diff -u llvm/test/Regression/CodeGen/CBackend/2003-06-23-PromotedExprs.llx:1.4 llvm/test/Regression/CodeGen/CBackend/2003-06-23-PromotedExprs.llx:1.4.6.1
--- llvm/test/Regression/CodeGen/CBackend/2003-06-23-PromotedExprs.llx:1.4 Fri Sep 26 11:43:51 2003
+++ llvm/test/Regression/CodeGen/CBackend/2003-06-23-PromotedExprs.llx Mon Mar 1 17:59:14 2004
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llvm-dis -c > %t1.cbe.c
+; RUN: llvm-as < %s | llc -march=c > %t1.cbe.c
; RUN: gcc -B/usr/bin/ %t1.cbe.c -o %t1.cbe
; RUN: %t1.cbe
Index: llvm/test/Regression/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx
diff -u llvm/test/Regression/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx:1.2 llvm/test/Regression/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx:1.2.6.1
--- llvm/test/Regression/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx:1.2 Mon Sep 15 15:01:53 2003
+++ llvm/test/Regression/CodeGen/CBackend/2003-06-28-LinkOnceGlobalVars.llx Mon Mar 1 17:59:14 2004
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis -c | grep common | grep X
+; RUN: llvm-as < %s | llc -march=c | grep common | grep X
%X = linkonce global int 5
More information about the llvm-commits
mailing list