From aa0a5ffb56c3d082c6e866637b97e0134213425d Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 21 Oct 2019 17:45:51 +0000 Subject: [PATCH] [PowerPC] Regenerate test for D52431 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375435 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/pr42492.ll | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/test/CodeGen/PowerPC/pr42492.ll b/test/CodeGen/PowerPC/pr42492.ll index 8dface68b6a..3aa9ccdbf69 100644 --- a/test/CodeGen/PowerPC/pr42492.ll +++ b/test/CodeGen/PowerPC/pr42492.ll @@ -4,13 +4,25 @@ define void @f(i8*, i8*, i64*) { ; Check we don't assert and this is not a Hardware Loop ; CHECK-LABEL: f: -; CHECK: .LBB0_2: # -; CHECK-NEXT: cmplwi -; CHECK-NEXT: cmpd -; CHECK-NEXT: sldi -; CHECK-NEXT: cror -; CHECK-NEXT: addi -; CHECK-NEXT: bc +; CHECK: # %bb.0: +; CHECK-NEXT: cmpld 3, 4 +; CHECK-NEXT: beqlr 0 +; CHECK-NEXT: # %bb.1: +; CHECK-NEXT: ld 6, 8(5) +; CHECK-NEXT: not 3, 3 +; CHECK-NEXT: add 3, 3, 4 +; CHECK-NEXT: li 4, 0 +; CHECK-NEXT: .p2align 5 +; CHECK-NEXT: .LBB0_2: # +; CHECK-NEXT: cmplwi 4, 14 +; CHECK-NEXT: cmpd 1, 3, 4 +; CHECK-NEXT: sldi 6, 6, 4 +; CHECK-NEXT: cror 20, 6, 1 +; CHECK-NEXT: addi 4, 4, 1 +; CHECK-NEXT: bc 4, 20, .LBB0_2 +; CHECK-NEXT: # %bb.3: +; CHECK-NEXT: std 6, 8(5) +; CHECK-NEXT: blr %4 = icmp eq i8* %0, %1 br i1 %4, label %9, label %5 -- 2.40.0