[llvm] 5184aaf - [PowerPC][NFC] reuse a case for checking hardware loop intrinsic input
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 17:36:56 PST 2022
Author: Chen Zheng
Date: 2022-12-19T20:15:10-05:00
New Revision: 5184aaf6d3fe5589d4e955ed7060e985d10df544
URL: https://github.com/llvm/llvm-project/commit/5184aaf6d3fe5589d4e955ed7060e985d10df544
DIFF: https://github.com/llvm/llvm-project/commit/5184aaf6d3fe5589d4e955ed7060e985d10df544.diff
LOG: [PowerPC][NFC] reuse a case for checking hardware loop intrinsic input
Added:
Modified:
llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll b/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll
index 002d73fb27558..0d18b68ad2609 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:
More information about the llvm-commits
mailing list