aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/str_pre.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-17 20:02:20 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-17 20:02:20 +0000
commit6263f94674cd0974b9a4cc525cbe70db65fc9939 (patch)
tree0a2fe45a96ee63e58e105f65957fc5b9ffe9dc0b /test/CodeGen/ARM/str_pre.ll
parent456012c72e8596e36596ab3798b1d271477955ef (diff)
downloadexternal_llvm-6263f94674cd0974b9a4cc525cbe70db65fc9939.zip
external_llvm-6263f94674cd0974b9a4cc525cbe70db65fc9939.tar.gz
external_llvm-6263f94674cd0974b9a4cc525cbe70db65fc9939.tar.bz2
Remove llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/str_pre.ll')
-rw-r--r--test/CodeGen/ARM/str_pre.ll24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/CodeGen/ARM/str_pre.ll b/test/CodeGen/ARM/str_pre.ll
index c948f69..c02663f 100644
--- a/test/CodeGen/ARM/str_pre.ll
+++ b/test/CodeGen/ARM/str_pre.ll
@@ -1,18 +1,18 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
+; RUN: llvm-as < %s | llc -march=arm | \
; RUN: grep {str.*\\!} | count 2
-void %test1(int *%X, int *%A, int **%dest) {
- %B = load int* %A
- %Y = getelementptr int* %X, int 4
- store int %B, int* %Y
- store int* %Y, int** %dest
+define void @test1(i32* %X, i32* %A, i32** %dest) {
+ %B = load i32* %A ; <i32> [#uses=1]
+ %Y = getelementptr i32* %X, i32 4 ; <i32*> [#uses=2]
+ store i32 %B, i32* %Y
+ store i32* %Y, i32** %dest
ret void
}
-short *%test2(short *%X, int *%A) {
- %B = load int* %A
- %Y = getelementptr short* %X, int 4
- %tmp = cast int %B to short
- store short %tmp, short* %Y
- ret short* %Y
+define i16* @test2(i16* %X, i32* %A) {
+ %B = load i32* %A ; <i32> [#uses=1]
+ %Y = getelementptr i16* %X, i32 4 ; <i16*> [#uses=2]
+ %tmp = trunc i32 %B to i16 ; <i16> [#uses=1]
+ store i16 %tmp, i16* %Y
+ ret i16* %Y
}