diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-13 21:42:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-13 21:42:48 +0000 |
commit | 40bc38d708ad2e9cee9de6398352380c4f236c65 (patch) | |
tree | d021dab63f4b9683ee95553fea78706a4a2e4500 /test/Transforms | |
parent | 720d37ce24b65529705cb4f5aadcf2e053ade983 (diff) | |
download | external_llvm-40bc38d708ad2e9cee9de6398352380c4f236c65.zip external_llvm-40bc38d708ad2e9cee9de6398352380c4f236c65.tar.gz external_llvm-40bc38d708ad2e9cee9de6398352380c4f236c65.tar.bz2 |
upgrade test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/GlobalOpt/deadglobal-2.ll | 11 | ||||
-rw-r--r-- | test/Transforms/GlobalOpt/deadglobal-2.llx | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/test/Transforms/GlobalOpt/deadglobal-2.ll b/test/Transforms/GlobalOpt/deadglobal-2.ll new file mode 100644 index 0000000..def6a09 --- /dev/null +++ b/test/Transforms/GlobalOpt/deadglobal-2.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep internal + +; This is a harder case to delete as the GEP has a variable index. + +@G = internal global [4 x i32] zeroinitializer + +define void @foo(i32 %X) { + %Ptr = getelementptr [4 x i32]* @G, i32 0, i32 %X + store i32 1, i32* %Ptr + ret void +} diff --git a/test/Transforms/GlobalOpt/deadglobal-2.llx b/test/Transforms/GlobalOpt/deadglobal-2.llx deleted file mode 100644 index 5fa9825..0000000 --- a/test/Transforms/GlobalOpt/deadglobal-2.llx +++ /dev/null @@ -1,11 +0,0 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep internal - -; This is a harder case to delete as the GEP has a variable index. - -%G = internal global [4 x int] zeroinitializer - -void %foo(int %X) { - %Ptr = getelementptr [4 x int]* %G, int 0, int %X - store int 1, int* %Ptr - ret void -} |