diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-29 06:16:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-29 06:16:37 +0000 |
commit | d21dd0d8ad8ee89135d52162565b459b4863e118 (patch) | |
tree | 40c5d5408c0e1046221aa993484be14780d56ac2 /test | |
parent | e9b6242780a46f563b30063497246dd9d1140036 (diff) | |
download | external_llvm-d21dd0d8ad8ee89135d52162565b459b4863e118.zip external_llvm-d21dd0d8ad8ee89135d52162565b459b4863e118.tar.gz external_llvm-d21dd0d8ad8ee89135d52162565b459b4863e118.tar.bz2 |
new testcase for isascii
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/SimplifyLibCalls/IsDigit.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Transforms/SimplifyLibCalls/IsDigit.ll b/test/Transforms/SimplifyLibCalls/IsDigit.ll index 6fc0565..9837fa0 100644 --- a/test/Transforms/SimplifyLibCalls/IsDigit.ll +++ b/test/Transforms/SimplifyLibCalls/IsDigit.ll @@ -1,7 +1,8 @@ ; Test that the IsDigitOptimizer works correctly -; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*isdigit' +; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call' declare int %isdigit(int) +declare int %isascii(int) implementation ; Functions: @@ -14,5 +15,6 @@ int %main () { %rslt2 = add int %val3, %val4 %sum = add int %rslt1, %rslt2 %rslt = call int %isdigit(int %sum) - ret int %rslt + %tmp = call int %isascii(int %rslt) + ret int %tmp } |