[Lldb-commits] [PATCH] D128678: [LLDB] Add PDB/Calling-conentions.test for Arm/Windows

Muhammad Omair Javaid via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 27 13:06:28 PDT 2022


omjavaid created this revision.
omjavaid added reviewers: mstorsjo, DavidSpickett.
omjavaid added a project: LLDB.
Herald added subscribers: jsji, JDevlieghere, pengfei, kristof.beyls.
Herald added a project: All.
omjavaid requested review of this revision.

This patch renames PDB/Calling-conentions.test to Calling-conentions-x86.test.
Also restrict it to run only for target-x86*. This patch also adds a arm specific test
which tests that x86 specifc calling conventions are ignored by Arm compiler.


https://reviews.llvm.org/D128678

Files:
  lldb/test/Shell/SymbolFile/PDB/calling-conventions-arm.test
  lldb/test/Shell/SymbolFile/PDB/calling-conventions-x86.test
  lldb/test/Shell/SymbolFile/PDB/calling-conventions.test


Index: lldb/test/Shell/SymbolFile/PDB/calling-conventions-x86.test
===================================================================
--- lldb/test/Shell/SymbolFile/PDB/calling-conventions-x86.test
+++ lldb/test/Shell/SymbolFile/PDB/calling-conventions-x86.test
@@ -1,4 +1,4 @@
-REQUIRES: system-windows, lld
+REQUIRES: system-windows, lld, (target-x86 || target-x86_64) 
 RUN: %build --compiler=clang-cl --arch=32 --nodefaultlib --output=%t.exe %S/Inputs/CallingConventionsTest.cpp
 RUN: lldb-test symbols -dump-ast %t.exe | FileCheck %s
 
Index: lldb/test/Shell/SymbolFile/PDB/calling-conventions-arm.test
===================================================================
--- /dev/null
+++ lldb/test/Shell/SymbolFile/PDB/calling-conventions-arm.test
@@ -0,0 +1,10 @@
+REQUIRES: system-windows, lld, (target-arm || target-aarch64) 
+RUN: %build --compiler=clang-cl --arch=32 --nodefaultlib --output=%t.exe %S/Inputs/CallingConventionsTest.cpp
+RUN: lldb-test symbols -dump-ast %t.exe | FileCheck %s
+
+CHECK: Module: {{.*}}
+CHECK-DAG: int (*FuncCCallPtr)();
+CHECK-DAG: int (*FuncStdCallPtr)();
+CHECK-DAG: int (*FuncFastCallPtr)();
+CHECK-DAG: int (*FuncVectorCallPtr)();
+CHECK-DAG: int (S::*FuncThisCallPtr)();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128678.440360.patch
Type: text/x-patch
Size: 1219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220627/237b9a30/attachment.bin>


More information about the lldb-commits mailing list