blob: f11e9f08f57da4f553365cf8b23437f2037fe248 [file] [log] [blame]
; Test memcmp with 0 size.
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
; REQUIRES: asserts
declare i32 @memcmp(ptr nocapture, ptr nocapture, i64)
define hidden void @fun() {
; CHECK-LABEL: fun
entry:
%len = extractvalue [2 x i64] zeroinitializer, 1
br i1 undef, label %end, label %call
call:
%res = tail call signext i32 @memcmp(ptr noundef undef, ptr noundef undef, i64 noundef %len)
unreachable
end:
unreachable
}