aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/disable-simplify-libcalls.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/disable-simplify-libcalls.ll')
-rw-r--r--test/Transforms/InstCombine/disable-simplify-libcalls.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/disable-simplify-libcalls.ll b/test/Transforms/InstCombine/disable-simplify-libcalls.ll
index 155c97c010..d81e9ae5bd 100644
--- a/test/Transforms/InstCombine/disable-simplify-libcalls.ll
+++ b/test/Transforms/InstCombine/disable-simplify-libcalls.ll
@@ -36,6 +36,7 @@ declare i64 @strtol(i8*, i8**, i32)
declare i64 @strtoll(i8*, i8**, i32)
declare i64 @strtoul(i8*, i8**, i32)
declare i64 @strtoull(i8*, i8**, i32)
+declare i64 @strcspn(i8*, i8*)
define double @t1(double %x) {
; CHECK: @t1
@@ -225,3 +226,11 @@ define i64 @t24(i8** %y) {
ret i64 %ret
; CHECK: call i64 @strtoull
}
+
+define i64 @t25(i8* %y) {
+; CHECK: @t25
+ %x = getelementptr [1 x i8]* @empty, i32 0, i32 0
+ %ret = call i64 @strcspn(i8* %x, i8* %y)
+ ret i64 %ret
+; CHECK: call i64 @strcspn
+}