[llvm] 4a5dffc - [CodeGen][ARM64EC][NFC] Add ARM64EC alias symbols test. (#92100)
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 06:21:21 PDT 2024
Author: Jacek Caban
Date: 2024-05-16T15:15:17+02:00
New Revision: 4a5dffc67499640c71357d8f3f49edc97af5482f
URL: https://github.com/llvm/llvm-project/commit/4a5dffc67499640c71357d8f3f49edc97af5482f
DIFF: https://github.com/llvm/llvm-project/commit/4a5dffc67499640c71357d8f3f49edc97af5482f.diff
LOG: [CodeGen][ARM64EC][NFC] Add ARM64EC alias symbols test. (#92100)
Added:
llvm/test/CodeGen/AArch64/arm64ec-symbols.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/arm64ec-symbols.ll b/llvm/test/CodeGen/AArch64/arm64ec-symbols.ll
new file mode 100644
index 0000000000000..389c36974beda
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/arm64ec-symbols.ll
@@ -0,0 +1,27 @@
+; RUN: llc -mtriple=arm64ec-pc-windows-msvc < %s | FileCheck %s
+; RUN: llc -mtriple=arm64ec-pc-windows-msvc -filetype=obj -o %t.o < %s
+; RUN: llvm-objdump -t %t.o | FileCheck --check-prefix=SYM %s
+
+declare void @func() nounwind;
+
+define void @caller() nounwind {
+ call void @func()
+ ret void
+}
+
+; CHECK: .weak_anti_dep caller
+; CHECK-NEXT: .set caller, "#caller"@WEAKREF
+
+; CHECK: .weak_anti_dep func
+; CHECK-NEXT: .set func, "#func"@WEAKREF
+; CHECK-NEXT: .weak_anti_dep "#func"
+; CHECK-NEXT: .set "#func", "#func$exit_thunk"@WEAKREF
+
+; SYM: [ 8](sec 4)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 #caller
+; SYM: [21](sec 7)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 #func$exit_thunk
+; SYM: [33](sec 0)(fl 0x00)(ty 0)(scl 69) (nx 1) 0x00000000 caller
+; SYM-NEXT: AUX indx 8 srch 4
+; SYM-NEXT: [35](sec 0)(fl 0x00)(ty 0)(scl 69) (nx 1) 0x00000000 #func
+; SYM-NEXT: AUX indx 21 srch 4
+; SYM: [39](sec 0)(fl 0x00)(ty 0)(scl 69) (nx 1) 0x00000000 func
+; SYM-NEXT: AUX indx 35 srch 4
More information about the llvm-commits
mailing list