[llvm] [NFC] [MTE] add more tests for globals (PR #113390)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 15:50:58 PDT 2024


https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/113390

>From 4155b76b64427c541ce3fe639b97f196ca02deb7 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Tue, 22 Oct 2024 15:20:36 -0700
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?=
 =?UTF-8?q?anges=20to=20main=20this=20commit=20is=20based=20on?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.4

[skip ci]
---
 llvm/test/MC/AArch64/global-tagging.ll | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/test/MC/AArch64/global-tagging.ll b/llvm/test/MC/AArch64/global-tagging.ll
index 4961ec04c5fba4..c8b3f52401dc11 100644
--- a/llvm/test/MC/AArch64/global-tagging.ll
+++ b/llvm/test/MC/AArch64/global-tagging.ll
@@ -11,7 +11,6 @@
 
 ; RUN: obj2yaml %t.o -o %t.yaml
 ; RUN: FileCheck %s --input-file=%t.yaml --check-prefix=CHECK-YAML
-; RUN: yaml2obj %t.yaml -o %t.o
 ; RUN: llvm-readelf -r %t.o | FileCheck %s --check-prefix=CHECK-RELOCS
 
 ;; Check we don't create relocations referencing a section symbol for sanitize_memtag globals.

>From 1824b21b89ec5591444e17d7a7b8a22a2b0e16d7 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Tue, 22 Oct 2024 15:50:45 -0700
Subject: [PATCH 2/2] eol

Created using spr 1.3.4
---
 llvm/test/MC/AArch64/global-tagging.ll | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/llvm/test/MC/AArch64/global-tagging.ll b/llvm/test/MC/AArch64/global-tagging.ll
index 75453e9bb62056..b1f46830cff590 100644
--- a/llvm/test/MC/AArch64/global-tagging.ll
+++ b/llvm/test/MC/AArch64/global-tagging.ll
@@ -47,17 +47,17 @@
 ;; Value: 0x{{.*}}0 checks for 16-alignment of address
 ; CHECK-SOYAML: Symbols:
 ; CHECK-SOYAML:  - Name: internal_four
-; CHECK-SOYAML:    Value: 0x{{.*}}0
+; CHECK-SOYAML:    Value: 0x{{.*}}0{{$}}
 ; CHECK-SOYAML:  - Name: four
-; CHECK-SOYAML:    Value: 0x{{.*}}0
+; CHECK-SOYAML:    Value: 0x{{.*}}0{{$}}
 ; CHECK-SOYAML:  - Name: sixteen
-; CHECK-SOYAML:    Value: 0x{{.*}}0
+; CHECK-SOYAML:    Value: 0x{{.*}}0{{$}}
 ; CHECK-SOYAML:  - Name: huge
-; CHECK-SOYAML:    Value: 0x{{.*}}0
+; CHECK-SOYAML:    Value: 0x{{.*}}0{{$}}
 ;; At least as currently laid out, specialcaselisted gets put adjacient to a
 ;; tagged global, so it also has to be aligned to the next granule.
 ; CHECK-SOYAML:  - Name: specialcaselisted
-; CHECK-SOYAML:    Value: 0x{{.*}}0
+; CHECK-SOYAML:    Value: 0x{{.*}}0{{$}}
 
 ; CHECK-ASM: .memtag internal_four
 ; CHECK-ASM .p2align        4



More information about the llvm-commits mailing list