diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-10 07:21:50 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-10 07:21:50 +0000 |
commit | ceca194c4355224723b309a3a27c5e5bc19cb6fc (patch) | |
tree | d976e8cf9d933c32868d72a94d1ec2d9d7205735 /test/Transforms/SimplifyLibCalls/ToAscii.ll | |
parent | f79e60649a5edea03bdccf8521d77c15cbb33af4 (diff) | |
download | external_llvm-ceca194c4355224723b309a3a27c5e5bc19cb6fc.tar.gz external_llvm-ceca194c4355224723b309a3a27c5e5bc19cb6fc.tar.bz2 external_llvm-ceca194c4355224723b309a3a27c5e5bc19cb6fc.zip |
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyLibCalls/ToAscii.ll')
-rw-r--r-- | test/Transforms/SimplifyLibCalls/ToAscii.ll | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/test/Transforms/SimplifyLibCalls/ToAscii.ll b/test/Transforms/SimplifyLibCalls/ToAscii.ll index 0bc2664d42..9200d2f67e 100644 --- a/test/Transforms/SimplifyLibCalls/ToAscii.ll +++ b/test/Transforms/SimplifyLibCalls/ToAscii.ll @@ -1,22 +1,21 @@ ; Test that the ToAsciiOptimizer works correctly -; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \ +; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \ ; RUN: not grep {call.*toascii} -declare int %toascii(int) +declare i32 @toascii(i32) -implementation ; Functions: - -int %main () { - %val1 = call int %toascii(int 1) - %val2 = call int %toascii(int 0) - %val3 = call int %toascii(int 127) - %val4 = call int %toascii(int 128) - %val5 = call int %toascii(int 255) - %val6 = call int %toascii(int 256) - %rslt1 = add int %val1, %val2 - %rslt2 = add int %val3, %val4 - %rslt3 = add int %val5, %val6 - %rslt4 = add int %rslt1, %rslt2 - %rslt5 = add int %rslt4, %rslt3 - ret int %rslt5 +define i32 @main() { + %val1 = call i32 @toascii( i32 1 ) ; <i32> [#uses=1] + %val2 = call i32 @toascii( i32 0 ) ; <i32> [#uses=1] + %val3 = call i32 @toascii( i32 127 ) ; <i32> [#uses=1] + %val4 = call i32 @toascii( i32 128 ) ; <i32> [#uses=1] + %val5 = call i32 @toascii( i32 255 ) ; <i32> [#uses=1] + %val6 = call i32 @toascii( i32 256 ) ; <i32> [#uses=1] + %rslt1 = add i32 %val1, %val2 ; <i32> [#uses=1] + %rslt2 = add i32 %val3, %val4 ; <i32> [#uses=1] + %rslt3 = add i32 %val5, %val6 ; <i32> [#uses=1] + %rslt4 = add i32 %rslt1, %rslt2 ; <i32> [#uses=1] + %rslt5 = add i32 %rslt4, %rslt3 ; <i32> [#uses=1] + ret i32 %rslt5 } + |