Skip to content

Commit 215f105

Browse files
authored
[MTE] Fix test (#85875)
llc runs the stack tagging instrumentation, so if we run opt before, we double instrument
1 parent dcbddc2 commit 215f105

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
; Test that storage for allocas with disjoint lifetimes is reused with stack
22
; tagging.
33

4-
; RUN: opt -S -aarch64-stack-tagging -stack-tagging-use-stack-safety=0 %s -o - | \
5-
; RUN: llc --mattr=+mte -no-stack-coloring=false -o - | \
4+
; RUN: llc --mattr=+mte -no-stack-coloring=false -stack-tagging-use-stack-safety=0 -o - %s | \
65
; RUN: FileCheck %s --check-prefix=COLOR
7-
; RUN: opt -S -aarch64-stack-tagging %s -stack-tagging-use-stack-safety=0 -o - | \
8-
; RUN: llc --mattr=+mte -no-stack-coloring=true -o - | \
6+
; RUN: llc --mattr=+mte -no-stack-coloring=true -stack-tagging-use-stack-safety=0 -o - %s | \
97
; RUN: FileCheck %s --check-prefix=NOCOLOR
108

119
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
1210
target triple = "aarch64"
1311

14-
; COLOR: sub sp, sp, #208
12+
; COLOR: sub sp, sp, #192
1513
; NOCOLOR: sub sp, sp, #336
1614

1715
define i32 @myCall_w2(i32 %in) sanitize_memtag {

0 commit comments

Comments
 (0)