From 5184aaf6d3fe5589d4e955ed7060e985d10df544 Mon Sep 17 00:00:00 2001 From: Chen Zheng Date: Mon, 19 Dec 2022 05:20:23 -0500 Subject: [PATCH] [PowerPC][NFC] reuse a case for checking hardware loop intrinsic input --- llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: -- 2.7.4