[llvm-commits] CVS: llvm/test/Regression/Assembler/2003-05-08-GlobalGEPSynthesize.llx

Chris Lattner lattner at cs.uiuc.edu
Thu May 8 15:09:01 PDT 2003


Changes in directory llvm/test/Regression/Assembler:

2003-05-08-GlobalGEPSynthesize.llx added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Assembler/2003-05-08-GlobalGEPSynthesize.llx
diff -c /dev/null llvm/test/Regression/Assembler/2003-05-08-GlobalGEPSynthesize.llx:1.1
*** /dev/null	Thu May  8 15:08:13 2003
--- llvm/test/Regression/Assembler/2003-05-08-GlobalGEPSynthesize.llx	Thu May  8 15:08:03 2003
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: if as < %s | dis | grep cast
+ ; RUN: then exit 1
+ ; RUN: else exit 0
+ ; RUN: fi
+ 
+ %GlobalArray = global [1 x int] [ int 0 ]               ; <[1 x int]*> [#uses=1]
+ 
+ implementation   ; Functions:
+ 
+ int* %foo(...) {
+         ret int* cast (long add (long cast ([1 x int]* %GlobalArray to long), long -4) to int*)
+ }
+ 





More information about the llvm-commits mailing list