brintos

brintos / llvm-project-archived public Read only

0
0
Text · 588 B · 3609b94 Raw
22 lines · plain
1; Test memcmp using CLC.  In this test case the CLC loop will do all the work2; and the DoneMBB becomes empty. It will not pass the mischeduling verifiers3; if DoneMBB does not have CC in its live-in list.4 5; RUN: llc < %s -mtriple=s390x-linux-gnu -misched=shuffle | FileCheck %s6; REQUIRES: asserts7 8declare i32 @memcmp(ptr nocapture, ptr nocapture, i64)9 10define i32 @fun() {11; CHECK-LABEL: fun12  %call = call signext i32 @memcmp(ptr nonnull undef, ptr nonnull undef, i64 2048)13  %cmp = icmp eq i32 %call, 014  br i1 %cmp, label %labT, label %labF15 16labT:17  ret i32 018 19labF:20  ret i32 121}22