new testcase for isascii

llvm-svn: 23520
This commit is contained in:
Chris Lattner 2005-09-29 06:16:37 +00:00
parent 5f6035feb0
commit 5de939e791
1 changed files with 4 additions and 2 deletions

View File

@ -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
}