From: Chen Zheng Date: Mon, 19 Dec 2022 10:20:23 +0000 (-0500) Subject: [PowerPC][NFC] reuse a case for checking hardware loop intrinsic input X-Git-Tag: upstream/17.0.6~23170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5184aaf6d3fe5589d4e955ed7060e985d10df544;p=platform%2Fupstream%2Fllvm.git [PowerPC][NFC] reuse a case for checking hardware loop intrinsic input --- diff --git a/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll b/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll index 002d73f..0d18b68 100644 --- a/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll +++ b/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll @@ -1,4 +1,4 @@ -; RUN: llc -verify-machineinstrs < %s +; RUN: llc -verify-machineinstrs < %s | FileCheck %s ; ModuleID = 'new.bc' target datalayout = "e-m:e-i64:64-n32:64" target triple = "powerpc64le--linux-gnu" @@ -28,6 +28,11 @@ declare ptr @halide_string_to_string(ptr, ptr, ptr) #1 ; Function Attrs: nounwind declare ptr @halide_int64_to_string(ptr, ptr, i64, i32) #1 +;; FIXME: hardware loop should not be generated in the loop that already has a +;; user defined hardware loop. Only one mtctr should be in the final assembly. +; CHECK-LABEL: halide_double_to_string +; CHECK-COUNT-2: mtctr + ; Function Attrs: nounwind define weak ptr @halide_double_to_string(ptr %dst, ptr %end, double %arg, i32 %scientific) #1 { entry: