[llvm-commits] CVS: llvm/test/Regression/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx 2004-02-26-LinkOnceFunctions.llx

John Criswell criswell at cs.uiuc.edu
Thu Feb 26 17:01:42 PST 2004


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

2004-02-26-FPNotPrintableConstants.llx added (r1.1)
2004-02-26-LinkOnceFunctions.llx added (r1.1)

---
Log message:

Regression tests for PR258 and PR259.
2004-02-26-FPNotPrintableConstants.llx ensures that constants used in an
LLVM program are declared static if they are assigned to global variables.
2004-02-26-LinkOnceFunctions.llx ensures that linkonce functions get the
weak attribute.



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

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.1
*** /dev/null	Thu Feb 26 16:55:21 2004
--- llvm/test/Regression/CodeGen/CBackend/2004-02-26-FPNotPrintableConstants.llx	Thu Feb 26 16:55:11 2004
***************
*** 0 ****
--- 1,8 ----
+ ; This is a non-normal FP value: it's a nan.
+ ; RUN: llvm-as < %s | llc -march=c 
+ ; 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
*** /dev/null	Thu Feb 26 16:55:21 2004
--- llvm/test/Regression/CodeGen/CBackend/2004-02-26-LinkOnceFunctions.llx	Thu Feb 26 16:55:11 2004
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | llc -march=c | grep func1 | grep WEAK
+ 
+ implementation
+ 
+ linkonce int %func1 () {
+   ret int 5
+ }
+ 





More information about the llvm-commits mailing list