1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/CodeGen/SystemZ/memchr-nobuiltin.ll
Marcin Koscielnicki 44d9190c68 [SelectionDAG] Don't treat library calls specially if marked with nobuiltin.
To be used by D19781.

Differential Revision: http://reviews.llvm.org/D19801

llvm-svn: 273039
2016-06-17 20:24:07 +00:00

17 lines
461 B
LLVM

; Test that memchr won't be converted to SRST if calls are
; marked with nobuiltin, eg. for sanitizers.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
declare i8 *@memchr(i8 *%src, i16 %char, i32 %len)
; Test a simple forwarded call.
define i8 *@f1(i8 *%src, i16 %char, i32 %len) {
; CHECK-LABEL: f1:
; CHECK-NOT: srst
; CHECK: brasl %r14, memchr
; CHECK: br %r14
%res = call i8 *@memchr(i8 *%src, i16 %char, i32 %len) nobuiltin
ret i8 *%res
}