[llvm] 215f105 - [MTE] Fix test (#85875)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 14:14:46 PDT 2024


Author: Florian Mayer
Date: 2024-03-22T14:14:43-07:00
New Revision: 215f105ca5d0b42d00bbbc315605b222d63be63a

URL: https://github.com/llvm/llvm-project/commit/215f105ca5d0b42d00bbbc315605b222d63be63a
DIFF: https://github.com/llvm/llvm-project/commit/215f105ca5d0b42d00bbbc315605b222d63be63a.diff

LOG: [MTE] Fix test (#85875)

llc runs the stack tagging instrumentation, so if we run opt before, we
double instrument

Added: 
    

Modified: 
    llvm/test/CodeGen/AArch64/stack-tagging-stack-coloring.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/stack-tagging-stack-coloring.ll b/llvm/test/CodeGen/AArch64/stack-tagging-stack-coloring.ll
index 81349620fb7725..5d1c91e434dca2 100644
--- a/llvm/test/CodeGen/AArch64/stack-tagging-stack-coloring.ll
+++ b/llvm/test/CodeGen/AArch64/stack-tagging-stack-coloring.ll
@@ -1,17 +1,15 @@
 ; Test that storage for allocas with disjoint lifetimes is reused with stack
 ; tagging.
 
-; RUN: opt -S -aarch64-stack-tagging -stack-tagging-use-stack-safety=0 %s -o - | \
-; RUN:   llc --mattr=+mte -no-stack-coloring=false -o - | \
+; RUN: llc --mattr=+mte -no-stack-coloring=false -stack-tagging-use-stack-safety=0 -o - %s | \
 ; RUN:   FileCheck %s --check-prefix=COLOR
-; RUN: opt -S -aarch64-stack-tagging %s -stack-tagging-use-stack-safety=0 -o - | \
-; RUN:   llc --mattr=+mte -no-stack-coloring=true -o - | \
+; RUN: llc --mattr=+mte -no-stack-coloring=true -stack-tagging-use-stack-safety=0 -o - %s | \
 ; RUN:   FileCheck %s --check-prefix=NOCOLOR
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64"
 
-; COLOR: sub	sp, sp, #208
+; COLOR: sub	sp, sp, #192
 ; NOCOLOR: sub	sp, sp, #336
 
 define i32 @myCall_w2(i32 %in) sanitize_memtag {


        


More information about the llvm-commits mailing list