Files
clang-p2996/llvm/test/CodeGen/SystemZ/memcmp-03.ll
Kai Nacke a1710eb3cd [SystemZ][NFC] Opaque pointer migration.
The LIT test cases were migrated with the script provided by
Nikita Popov.

No manual changes were made. Committed without review since
no functional changes, after consultation with uweigand.
2022-10-11 21:09:43 +00:00

21 lines
443 B
LLVM

; 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
}