mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-24 03:25:00 +00:00
new testcase for isascii
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9b6242780
commit
d21dd0d8ad
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user