diff --git a/test/MC/AsmParser/dg.exp b/test/MC/AsmParser/dg.exp index ebd84187f52..ca6aefe9c53 100644 --- a/test/MC/AsmParser/dg.exp +++ b/test/MC/AsmParser/dg.exp @@ -1,3 +1,6 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]] +if { [llvm_supports_target X86] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]] +} + diff --git a/test/MC/MachO/dg.exp b/test/MC/MachO/dg.exp index ebd84187f52..ca6aefe9c53 100644 --- a/test/MC/MachO/dg.exp +++ b/test/MC/MachO/dg.exp @@ -1,3 +1,6 @@ load_lib llvm.exp -RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]] +if { [llvm_supports_target X86] } { + RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]] +} +