[llvm] [test] Update stack_guard_remat.ll (PR #79139)
Danial Klimkin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 05:46:33 PST 2024
https://github.com/dklimkin created https://github.com/llvm/llvm-project/pull/79139
Replace cp with a cat. This allows to create a writable file when the original one is read-only.
>From c062562aa0ac1857e4d09d144cd34bad384efa2d Mon Sep 17 00:00:00 2001
From: Danial Klimkin <dklimkin at users.noreply.github.com>
Date: Tue, 23 Jan 2024 14:43:24 +0100
Subject: [PATCH] Update stack_guard_remat.ll
Replace cp with a cat. This allows to create a writtable file when the original one is read-only.
---
llvm/test/CodeGen/Thumb/stack_guard_remat.ll | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/test/CodeGen/Thumb/stack_guard_remat.ll b/llvm/test/CodeGen/Thumb/stack_guard_remat.ll
index b9c993332a698b3..cc142392981d654 100644
--- a/llvm/test/CodeGen/Thumb/stack_guard_remat.ll
+++ b/llvm/test/CodeGen/Thumb/stack_guard_remat.ll
@@ -1,4 +1,4 @@
-; RUN: cp %s %t.pic.ll
+; RUN: cat %s > %t.pic.ll
; RUN: echo -e '!llvm.module.flags = !{!0}\n!0 = !{i32 7, !"PIC Level", i32 2}' >> %t.pic.ll
; RUN: llc < %t.pic.ll -mtriple=thumb-apple-darwin -relocation-model=pic -no-integrated-as | FileCheck %s -check-prefix=PIC
; RUN: llc < %s -mtriple=thumb-apple-darwin -relocation-model=static -no-integrated-as | FileCheck %s -check-prefix=NO-PIC -check-prefix=STATIC
More information about the llvm-commits
mailing list