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)();
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)();
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits