diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-08 20:08:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-08 20:08:03 +0000 |
commit | 0746c2824fa9b82059fb2f2453b46c2a985e2c83 (patch) | |
tree | 3f3884475a86a62a8a86761bbc0edc547773f8dc /test | |
parent | eca195e7b495e80fe1b1243b1549a08ac49d972e (diff) | |
download | external_llvm-0746c2824fa9b82059fb2f2453b46c2a985e2c83.zip external_llvm-0746c2824fa9b82059fb2f2453b46c2a985e2c83.tar.gz external_llvm-0746c2824fa9b82059fb2f2453b46c2a985e2c83.tar.bz2 |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Assembler/2003-05-08-GlobalGEPSynthesize.llx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Assembler/2003-05-08-GlobalGEPSynthesize.llx b/test/Assembler/2003-05-08-GlobalGEPSynthesize.llx new file mode 100644 index 0000000..7342f21 --- /dev/null +++ b/test/Assembler/2003-05-08-GlobalGEPSynthesize.llx @@ -0,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*) +} + |