1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/Transforms/SimplifyLibCalls/IsDigit.ll
Reid Spencer 4591f06f44 For PR1319:
Convert to new test system. This exposes IsDigit.ll as failing.

llvm-svn: 36046
2007-04-15 05:16:38 +00:00

22 lines
580 B
LLVM

; Test that the IsDigitOptimizer works correctly
; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
; RUN: not grep call
declare int %isdigit(int)
declare int %isascii(int)
implementation ; Functions:
int %main () {
%val1 = call int %isdigit(int 47)
%val2 = call int %isdigit(int 48)
%val3 = call int %isdigit(int 57)
%val4 = call int %isdigit(int 58)
%rslt1 = add int %val1, %val2
%rslt2 = add int %val3, %val4
%sum = add int %rslt1, %rslt2
%rslt = call int %isdigit(int %sum)
%tmp = call int %isascii(int %rslt)
ret int %tmp
}