1 ; Test that strlen/strnlen won't be converted to SRST if calls are
2 ; marked with nobuiltin, eg. for sanitizers.
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
6 declare i64 @strlen(i8 *%src)
7 declare i64 @strnlen(i8 *%src, i64 %len)
9 define i64 @f1(i32 %dummy, i8 *%src) {
11 ; CHECK: brasl %r14, strlen
13 %res = call i64 @strlen(i8 *%src) nobuiltin
17 ; Likewise for strnlen.
18 define i64 @f2(i64 %len, i8 *%src) {
21 ; CHECK: brasl %r14, strnlen
23 %res = call i64 @strnlen(i8 *%src, i64 %len) nobuiltin