aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyLibCalls/IsDigit.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/SimplifyLibCalls/IsDigit.ll')
-rw-r--r--test/Transforms/SimplifyLibCalls/IsDigit.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Transforms/SimplifyLibCalls/IsDigit.ll b/test/Transforms/SimplifyLibCalls/IsDigit.ll
index 6fc05657c6..9837fa08f0 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
}