17 lines · plain
1; Test that memchr won't be converted to SRST if calls are2; marked with nobuiltin, eg. for sanitizers.3;4; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s5 6declare ptr@memchr(ptr %src, i16 %char, i32 %len)7 8; Test a simple forwarded call.9define ptr@f1(ptr %src, i16 %char, i32 %len) {10; CHECK-LABEL: f1:11; CHECK-NOT: srst12; CHECK: brasl %r14, memchr13; CHECK: br %r1414 %res = call ptr@memchr(ptr %src, i16 %char, i32 %len) nobuiltin15 ret ptr %res16}17