projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b6242
)
new testcase for isascii
author
Chris Lattner
<sabre@nondot.org>
Thu, 29 Sep 2005 06:16:37 +0000
(06:16 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 29 Sep 2005 06:16:37 +0000
(06:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23520
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/SimplifyLibCalls/IsDigit.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/SimplifyLibCalls/IsDigit.ll
b/test/Transforms/SimplifyLibCalls/IsDigit.ll
index 6fc05657c6638a4f6579baed3d3a1a8ee86d3ba8..9837fa08f0547b425af32017de58da42afe6e81a 100644
(file)
--- 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
}