1 ; Test that the IsDigitOptimizer works correctly
2 ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*isdigit'
4 declare int %isdigit(int)
6 implementation ; Functions:
9 %val1 = call int %isdigit(int 47)
10 %val2 = call int %isdigit(int 48)
11 %val3 = call int %isdigit(int 57)
12 %val4 = call int %isdigit(int 58)
13 %rslt1 = add int %val1, %val2
14 %rslt2 = add int %val3, %val4
15 %rslt = add int %rslt1, %rslt2