[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyLibCalls/IsDigit.ll
Reid Spencer
reid at x10sys.com
Wed May 4 10:35:06 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyLibCalls:
IsDigit.ll added (r1.1)
---
Log message:
Add a test case for the IsDigitOptimization class.
---
Diffs of the changes: (+17 -0)
IsDigit.ll | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/test/Regression/Transforms/SimplifyLibCalls/IsDigit.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyLibCalls/IsDigit.ll:1.1
*** /dev/null Wed May 4 12:35:05 2005
--- llvm/test/Regression/Transforms/SimplifyLibCalls/IsDigit.ll Wed May 4 12:34:55 2005
***************
*** 0 ****
--- 1,17 ----
+ ; Test that the IsDigitOptimizer works correctly
+ ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*isdigit'
+
+ declare int %isdigit(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
+ %rslt = add int %rslt1, %rslt2
+ ret int %rslt
+ }
More information about the llvm-commits
mailing list