diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_AT_const_value-bitfields.s b/lldb/test/Shell/SymbolFile/DWARF/DW_AT_const_value-bitfields.s --- a/lldb/test/Shell/SymbolFile/DWARF/DW_AT_const_value-bitfields.s +++ b/lldb/test/Shell/SymbolFile/DWARF/DW_AT_const_value-bitfields.s @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: llvm-mc -filetype=obj -o %t -triple x86_64-apple-macosx10.15.0 %s # RUN: %lldb %t -o "target variable constant" -b | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_AT_data_bit_offset-DW_OP_stack_value.s b/lldb/test/Shell/SymbolFile/DWARF/DW_AT_data_bit_offset-DW_OP_stack_value.s --- a/lldb/test/Shell/SymbolFile/DWARF/DW_AT_data_bit_offset-DW_OP_stack_value.s +++ b/lldb/test/Shell/SymbolFile/DWARF/DW_AT_data_bit_offset-DW_OP_stack_value.s @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: llvm-mc -filetype=obj -o %t -triple x86_64-apple-macosx10.15.0 %s # RUN: %lldb %t -o "target variable ug" -b | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-struct.s b/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-struct.s --- a/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-struct.s +++ b/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-struct.s @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: llvm-mc -filetype=obj -o %t -triple x86_64-pc-linux %s # RUN: %lldb %t -o "target variable reset" -b | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_basic_type_DW_ATE_UTF_nonC.ll b/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_basic_type_DW_ATE_UTF_nonC.ll --- a/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_basic_type_DW_ATE_UTF_nonC.ll +++ b/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_basic_type_DW_ATE_UTF_nonC.ll @@ -15,6 +15,8 @@ ; ; Note: lldb will print types differently before and after 'run'. ; +; REQUIRES: x86 +; ; RUN: %clang --target=x86_64-pc-linux -c -g -o %t %s ; RUN: %lldb %t -o 'type lookup string' -o 'type lookup wstring' \ ; RUN: -o 'type lookup dstring' -o exit | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_variable-invalid_location.s b/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_variable-invalid_location.s --- a/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_variable-invalid_location.s +++ b/lldb/test/Shell/SymbolFile/DWARF/DW_TAG_variable-invalid_location.s @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: llvm-mc -filetype=obj -o %t -triple x86_64-pc-linux %s # RUN: %lldb %t -o "target variable var" -b | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/apple-index-is-used.cpp b/lldb/test/Shell/SymbolFile/DWARF/apple-index-is-used.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/apple-index-is-used.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/apple-index-is-used.cpp @@ -1,3 +1,5 @@ +// REQUIRES: x86 + // Test that we use the apple indexes. // RUN: %clang %s -g -c -o %t --target=x86_64-apple-macosx // RUN: lldb-test symbols %t | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/compilercontext.ll b/lldb/test/Shell/SymbolFile/DWARF/compilercontext.ll --- a/lldb/test/Shell/SymbolFile/DWARF/compilercontext.ll +++ b/lldb/test/Shell/SymbolFile/DWARF/compilercontext.ll @@ -1,3 +1,5 @@ +; REQUIRES: x86 + ; Test finding types by CompilerContext. ; RUN: llc %s -filetype=obj -o %t.o ; RUN: lldb-test symbols %t.o -find=type --language=C99 \ diff --git a/lldb/test/Shell/SymbolFile/DWARF/debug-names-compressed.cpp b/lldb/test/Shell/SymbolFile/DWARF/debug-names-compressed.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/debug-names-compressed.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/debug-names-compressed.cpp @@ -1,7 +1,7 @@ // Test for a bug where we crashed while processing a compressed debug_names // section (use after free). -// REQUIRES: lld, zlib +// REQUIRES: lld, zlib, x86 // RUN: %clang -c -o %t.o --target=x86_64-pc-linux -gdwarf-5 -gpubnames %s // RUN: ld.lld %t.o -o %t --compress-debug-sections=zlib diff --git a/lldb/test/Shell/SymbolFile/DWARF/debug-types-basic.test b/lldb/test/Shell/SymbolFile/DWARF/debug-types-basic.test --- a/lldb/test/Shell/SymbolFile/DWARF/debug-types-basic.test +++ b/lldb/test/Shell/SymbolFile/DWARF/debug-types-basic.test @@ -1,4 +1,4 @@ -# REQUIRES: lld +# REQUIRES: lld, x86 # Make sure DWARF v4 type units work. # RUN: %clangxx -target x86_64-pc-linux %S/Inputs/debug-types-basic.cpp \ diff --git a/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwarf5.s b/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwarf5.s --- a/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwarf5.s +++ b/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwarf5.s @@ -1,3 +1,5 @@ +# REQUIRES: x86 + # RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %s > %t # RUN: %lldb %t -o "image lookup -v -s f1" -o exit | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwo-cross-reference.cpp b/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwo-cross-reference.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwo-cross-reference.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/debug-types-dwo-cross-reference.cpp @@ -1,7 +1,7 @@ // Test that we can jump from a type unit in one dwo file into a type unit in a // different dwo file. -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -target x86_64-pc-linux -fno-standalone-debug -g \ // RUN: -fdebug-types-section -gsplit-dwarf -c -o %t1.o -DONE diff --git a/lldb/test/Shell/SymbolFile/DWARF/debug-types-missing-signature.test b/lldb/test/Shell/SymbolFile/DWARF/debug-types-missing-signature.test --- a/lldb/test/Shell/SymbolFile/DWARF/debug-types-missing-signature.test +++ b/lldb/test/Shell/SymbolFile/DWARF/debug-types-missing-signature.test @@ -1,5 +1,8 @@ Create a dangling DW_AT_signature reference by stripping the debug_types section, and make sure lldb does something reasonable. + +REQUIRES: x86 + RUN: %clangxx -target x86_64-pc-linux %S/Inputs/debug-types-basic.cpp \ RUN: -g -gdwarf-4 -fdebug-types-section -c -o %t.o RUN: llvm-objcopy --remove-section=.debug_types %t.o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/debug_line-tombstone.s b/lldb/test/Shell/SymbolFile/DWARF/debug_line-tombstone.s --- a/lldb/test/Shell/SymbolFile/DWARF/debug_line-tombstone.s +++ b/lldb/test/Shell/SymbolFile/DWARF/debug_line-tombstone.s @@ -4,6 +4,8 @@ # longer so that any attempt at an address binary search will likely land inside # the sequence. +# REQUIRES: x86 + # RUN: llvm-mc --filetype=obj --triple=x86_64-pc-linux %s -o %t # RUN: %lldb -o "image lookup -n main -v" -o "image dump line-table main.cpp" \ # RUN: -o exit %t | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/debug_ranges_and_rnglists.test b/lldb/test/Shell/SymbolFile/DWARF/debug_ranges_and_rnglists.test --- a/lldb/test/Shell/SymbolFile/DWARF/debug_ranges_and_rnglists.test +++ b/lldb/test/Shell/SymbolFile/DWARF/debug_ranges_and_rnglists.test @@ -1,4 +1,4 @@ -# REQUIRES: lld +# REQUIRES: lld, x86 # RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_ranges.s > %t-ranges.o # RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_rnglists.s > %t-rnglists.o diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-index-is-used.cpp b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-index-is-used.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-index-is-used.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-index-is-used.cpp @@ -1,6 +1,6 @@ // Test that we use the DWARF v5 name indexes. -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -c -o %t.o --target=x86_64-pc-linux -gdwarf-5 -gpubnames // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-partial-index.cpp b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-partial-index.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-partial-index.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-partial-index.cpp @@ -1,7 +1,7 @@ // Test that we return complete results when only a part of the binary is built // with an index. -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -c -o %t-1.o --target=x86_64-pc-linux -DONE -gdwarf-5 -gpubnames // RUN: llvm-readobj --sections %t-1.o | FileCheck %s --check-prefix NAMES diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-split.s b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-split.s --- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-split.s +++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-split.s @@ -1,6 +1,8 @@ ## This test checks that lldb reads debug info from a dwp file when the dwo_id ## is in a DWARF5 CU header instead of a DW_AT_GNU_dwo_id attribute. +# REQUIRES: x86 + # RUN: llvm-mc --filetype=obj --triple x86_64 %s -o %t --defsym MAIN=1 # RUN: llvm-mc --filetype=obj --triple x86_64 %s -o %t.dwp # RUN: %lldb %t -o "target variable i" -b | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5_tu_index_abbrev_offset.s b/lldb/test/Shell/SymbolFile/DWARF/dwarf5_tu_index_abbrev_offset.s --- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5_tu_index_abbrev_offset.s +++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5_tu_index_abbrev_offset.s @@ -7,6 +7,8 @@ ## from the TU are listed *AFTER* abbrevs from the CU so that they don't begin ## at offset 0. +# REQUIRES: x86 + # RUN: llvm-mc --filetype=obj --triple x86_64 %s -o %t --defsym MAIN=1 # RUN: llvm-mc --filetype=obj --triple x86_64 %s -o %t.dwp # RUN: %lldb %t -o "image lookup -t t1" -b | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwp-separate-debug-file.cpp b/lldb/test/Shell/SymbolFile/DWARF/dwp-separate-debug-file.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/dwp-separate-debug-file.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/dwp-separate-debug-file.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang -target x86_64-pc-linux -gsplit-dwarf -g -c %s -o %t.o // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-basic-function.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-basic-function.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-basic-function.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-basic-function.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-basic-namespace.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-basic-namespace.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-basic-namespace.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-basic-namespace.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-basic-type.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-basic-type.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-basic-type.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-basic-type.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-basic-variable.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-basic-variable.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-basic-variable.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-basic-variable.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-function-regex.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-function-regex.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-function-regex.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-function-regex.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-method-local-struct.cpp @@ -1,3 +1,5 @@ +// REQUIRES: x86 + // RUN: %clang %s -g -c -o %t --target=x86_64-apple-macosx // RUN: lldb-test symbols --name=foo --find=function --function-flags=method %t | \ // RUN: FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-method.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-method.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-method.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-method.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames // RUN: ld.lld %t.o -o %t diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-qualified-variable.cpp @@ -1,3 +1,5 @@ +// REQUIRES: x86 + // RUN: %clang %s -g -c -o %t --target=x86_64-apple-macosx // RUN: lldb-test symbols --name=A::foo --find=variable %t | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-variable-dwo.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-variable-dwo.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-variable-dwo.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-variable-dwo.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang %s -gdwarf-5 -gpubnames -gsplit-dwarf -c -emit-llvm -o - --target=x86_64-pc-linux -DONE | \ // RUN: llc -filetype=obj -split-dwarf-file=%t-1.dwo -o %t-1.o diff --git a/lldb/test/Shell/SymbolFile/DWARF/find-variable-file.cpp b/lldb/test/Shell/SymbolFile/DWARF/find-variable-file.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/find-variable-file.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/find-variable-file.cpp @@ -1,4 +1,4 @@ -// REQUIRES: lld +// REQUIRES: lld, x86 // RUN: %clang -g -c -o %t-1.o --target=x86_64-pc-linux -gno-pubnames %s // RUN: %clang -g -c -o %t-2.o --target=x86_64-pc-linux -gno-pubnames %S/Inputs/find-variable-file-2.cpp diff --git a/lldb/test/Shell/SymbolFile/DWARF/gnu-style-compression.cpp b/lldb/test/Shell/SymbolFile/DWARF/gnu-style-compression.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/gnu-style-compression.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/gnu-style-compression.cpp @@ -1,4 +1,4 @@ -// REQUIRES: zlib +// REQUIRES: zlib, x86 // RUN: %clang %s -target x86_64-pc-linux -g -gsplit-dwarf -c -o %t \ // RUN: -Wa,--compress-debug-sections=zlib-gnu diff --git a/lldb/test/Shell/SymbolFile/DWARF/module-ownership.mm b/lldb/test/Shell/SymbolFile/DWARF/module-ownership.mm --- a/lldb/test/Shell/SymbolFile/DWARF/module-ownership.mm +++ b/lldb/test/Shell/SymbolFile/DWARF/module-ownership.mm @@ -1,3 +1,5 @@ +// REQUIRES: x86 + // RUN: %clang --target=x86_64-apple-macosx -g -gmodules -Wno-objc-root-class \ // RUN: -fmodules -fmodules-cache-path=%t.cache \ // RUN: -c -o %t.o %s -I%S/Inputs diff --git a/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-inlining.cpp b/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-inlining.cpp --- a/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-inlining.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-inlining.cpp @@ -1,3 +1,5 @@ +// REQUIRES: x86 + // RUN: %clangxx -target x86_64-pc-linux -gsplit-dwarf -g -fsplit-dwarf-inlining \ // RUN: -c %s -o %t // RUN: %lldb %t -o "breakpoint set -n foo" -b | FileCheck %s diff --git a/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-multiple-cu.ll b/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-multiple-cu.ll --- a/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-multiple-cu.ll +++ b/lldb/test/Shell/SymbolFile/DWARF/split-dwarf-multiple-cu.ll @@ -1,6 +1,8 @@ ; Check handling of dwo files with multiple compile units. Right now this is not ; supported, but it should not cause us to crash or misbehave either... +; REQUIRES: x86 + ; RUN: llc %s -filetype=obj -o %t.o --split-dwarf-file=%t.o ; RUN: %lldb %t.o -o "image lookup -s x1 -v" -o "image lookup -s x2 -v" -b | FileCheck %s