[PowerPC][NFC] reuse a case for checking hardware loop intrinsic input
authorChen Zheng <czhengsz@cn.ibm.com>
Mon, 19 Dec 2022 10:20:23 +0000 (05:20 -0500)
committerChen Zheng <czhengsz@cn.ibm.com>
Tue, 20 Dec 2022 01:15:10 +0000 (20:15 -0500)
llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll

index 002d73f..0d18b68 100644 (file)
@@ -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: