Files
clang-p2996/llvm/test/CodeGen/SystemZ/memcmp-02.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

22 lines
588 B
LLVM

; Test memcmp using CLC. In this test case the CLC loop will do all the work
; and the DoneMBB becomes empty. It will not pass the mischeduling verifiers
; if DoneMBB does not have CC in its live-in list.
; RUN: llc < %s -mtriple=s390x-linux-gnu -misched=shuffle | FileCheck %s
; REQUIRES: asserts
declare i32 @memcmp(ptr nocapture, ptr nocapture, i64)
define i32 @fun() {
; CHECK-LABEL: fun
%call = call signext i32 @memcmp(ptr nonnull undef, ptr nonnull undef, i64 2048)
%cmp = icmp eq i32 %call, 0
br i1 %cmp, label %labT, label %labF
labT:
ret i32 0
labF:
ret i32 1
}