xref: /llvm-project/llvm/test/CodeGen/SystemZ/memcmp-03.ll (revision 4b61d04645a5289354b8f0884a132a70bc8b4350)
1; Test memcmp with 0 size.
2
3; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
4
5declare i32 @memcmp(ptr nocapture, ptr nocapture, i64)
6
7define hidden void @fun() {
8; CHECK-LABEL: fun
9entry:
10  %len = extractvalue [2 x i64] zeroinitializer, 1
11  br i1 undef, label %end, label %call
12
13call:
14  %res = tail call signext i32 @memcmp(ptr noundef undef, ptr noundef undef, i64 noundef %len)
15  unreachable
16
17end:
18  unreachable
19}
20