[llvm] [RISCV] Do not write .s file in a test (PR #168865)
Mikhail Gudim via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 06:23:38 PST 2025
https://github.com/mgudim updated https://github.com/llvm/llvm-project/pull/168865
>From 266872bef2807f48c6932a72f679f43c8da62a61 Mon Sep 17 00:00:00 2001
From: Mikhail Gudim <mgudim at ventanamicro.com>
Date: Thu, 20 Nov 2025 04:12:01 -0800
Subject: [PATCH 1/2] [RISCV] Do not write .s file in a test
---
llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir b/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir
index 55515aa364016..d0550ea2c8fa4 100644
--- a/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir
+++ b/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir
@@ -1,6 +1,7 @@
# RUN: not --crash llc %s -mtriple=riscv64 \
# RUN: -run-pass=cfi-instr-inserter \
-# RUN: -riscv-enable-cfi-instr-inserter=true 2>&1 | FileCheck %s
+# RUN: -riscv-enable-cfi-instr-inserter=true \
+# RUN: -o - 2>&1 | FileCheck %s
# CHECK: LLVM ERROR: Different saved locations for the same CSR
>From 0325de9aa926e3bf110eec6194c368a3b76d7456 Mon Sep 17 00:00:00 2001
From: Mikhail Gudim <mgudim at ventanamicro.com>
Date: Thu, 20 Nov 2025 06:22:52 -0800
Subject: [PATCH 2/2] addressed review comments.
---
llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir b/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir
index d0550ea2c8fa4..aa7de092bf99e 100644
--- a/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir
+++ b/llvm/test/CodeGen/RISCV/cfi-multiple-locations.mir
@@ -1,7 +1,7 @@
# RUN: not --crash llc %s -mtriple=riscv64 \
# RUN: -run-pass=cfi-instr-inserter \
# RUN: -riscv-enable-cfi-instr-inserter=true \
-# RUN: -o - 2>&1 | FileCheck %s
+# RUN: -o /dev/null 2>&1 | FileCheck %s
# CHECK: LLVM ERROR: Different saved locations for the same CSR
More information about the llvm-commits
mailing list