[llvm] LLVM/Test: Mark Mips readcyclecounter.ll XFAIL: expensive_checks (PR #127587)

YunQiang Su via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 00:05:05 PST 2025


https://github.com/wzssyqa created https://github.com/llvm/llvm-project/pull/127587

expsensive_check complains that:

bb.0.entry:
  %0:gpr32 = RDHWR $hwr2, 0
  %1:gpr32 = ADDiu $zero, 0
  $v0 = COPY %0:gpr32
  $v1 = COPY %1:gpr32
  RetRA implicit $v0, implicit $v1

*** Bad machine code: Using an undefined physical register ***
- function:    test_readcyclecounter
- basic block: %bb.0 entry (0xad97ee0)
- instruction: %0:gpr32 = RDHWR $hwr2, 0
- operand 1:   $hwr2
LLVM ERROR: Found 1 machine code errors.

>From d2b8068521356d3410a3360eae1117c9f7b9ac29 Mon Sep 17 00:00:00 2001
From: YunQiang Su <yunqiang at isrc.iscas.ac.cn>
Date: Tue, 18 Feb 2025 16:02:24 +0800
Subject: [PATCH] LLVM/Test: Mark Mips readcyclecounter.ll XFAIL:
 expensive_checks

expsensive_check complains that:

bb.0.entry:
  %0:gpr32 = RDHWR $hwr2, 0
  %1:gpr32 = ADDiu $zero, 0
  $v0 = COPY %0:gpr32
  $v1 = COPY %1:gpr32
  RetRA implicit $v0, implicit $v1

*** Bad machine code: Using an undefined physical register ***
- function:    test_readcyclecounter
- basic block: %bb.0 entry (0xad97ee0)
- instruction: %0:gpr32 = RDHWR $hwr2, 0
- operand 1:   $hwr2
LLVM ERROR: Found 1 machine code errors.
---
 llvm/test/CodeGen/Mips/readcyclecounter.ll | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/llvm/test/CodeGen/Mips/readcyclecounter.ll b/llvm/test/CodeGen/Mips/readcyclecounter.ll
index 467dd92884b3d..23d3ea014f091 100644
--- a/llvm/test/CodeGen/Mips/readcyclecounter.ll
+++ b/llvm/test/CodeGen/Mips/readcyclecounter.ll
@@ -7,6 +7,8 @@
 ;RUN: llc -mtriple=mipsel -mcpu=mips2 < %s | FileCheck %s --check-prefix=MIPSEL_NOT_SUPPORTED
 ;RUN: llc -mtriple=mips64el -mcpu=mips3 < %s | FileCheck %s --check-prefix=MIPS64EL_NOT_SUPPORTED
 
+; XFAIL: expensive_checks
+
 declare i64 @llvm.readcyclecounter() nounwind readnone
 
 define i64 @test_readcyclecounter() nounwind {



More information about the llvm-commits mailing list