aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/SystemZ/memcmp-03.ll
blob: 950e10a999935cd8fb39e691ab875275bfb1c513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; Test memcmp with 0 size.

; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s

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
}