Requires "native" feature in most places that were failing.
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243960
91177308-0d34-0410-b5e6-
96231b3b80d8
--- /dev/null
+if 'native' not in config.available_features:
+ config.unsupported = True
+
--- /dev/null
+if 'native' not in config.available_features:
+ config.unsupported = True
+
; RUN: llc -O3 -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-Ox
; RUN: llc -misched-postra -debug %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LLC-MORE
-; REQUIRES: asserts
+; REQUIRES: asserts, native
; This test verifies that we don't run Machine Function optimizations
; on optnone functions.
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; REQUIRE: native
; Check for the presence of attribute optnone in the disassembly.
+; REQUIRES: native
; RUN: llvm-link %s %S/Inputs/subprogram-linkonce-weak-odr.ll -S -o %t1
; RUN: FileCheck %s -check-prefix=LW -check-prefix=CHECK <%t1
; RUN: llvm-link %S/Inputs/subprogram-linkonce-weak-odr.ll %s -S -o %t2
+; REQUIRES: native
; RUN: llvm-link %s %S/Inputs/subprogram-linkonce-weak.ll -S -o %t1
; RUN: FileCheck %s -check-prefix=LW -check-prefix=CHECK <%t1
; RUN: llvm-link %S/Inputs/subprogram-linkonce-weak.ll %s -S -o %t2
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
;
; RUN: llvm-link %s %p/type-unique-odr-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
;
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
; RUN: llvm-link %s %p/type-unique-simple-b.ll -S -o %t
; RUN: cat %t | FileCheck %s -check-prefix=LINK
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
;
; RUN: llvm-link %s %p/type-unique-simple2-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
;
-; REQUIRES: object-emission
+; REQUIRES: object-emission; native
; RUN: llvm-link %S/Inputs/type-unique-simple2-a.ll %S/Inputs/type-unique-simple2-b.ll -S -o %t
; RUN: cat %t | FileCheck %S/Inputs/type-unique-simple2-a.ll -check-prefix=LINK
-; REQUIRES: object-emission
+; REQUIRES: object-emission, native
;
; RUN: llvm-link %s %p/type-unique-type-array-b.ll -S -o - | %llc_dwarf -filetype=obj -O0 | llvm-dwarfdump -debug-dump=info - | FileCheck %s
;
+; REQUIRES: native
; RUN: llc -O2 -print-after-all < %s 2>/dev/null
define void @tester(){
; RUN: opt < %s -O3 | llc -no-integrated-as | FileCheck %s
-
+; REQUIRES: X86
;; We don't want branch folding to fold asm directives.
; CHECK: bork_directive
# RUN: not llvm-mc --fatal-warnings %s 2>&1 | FileCheck %s
# XFAIL: hexagon
+# REQUIRES: native
# CHECK: error: .warning directive invoked in source file
.warning
RUN: llvm-mc -disassemble %s
-
\ No newline at end of file
+# REQUIRES: native
# RUN: llvm-mc --no-warn %s 2>&1 | FileCheck %s
# XFAIL: hexagon
+# REQUIRES: native
# CHECK-NOT: warning:
.warning
; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O0 %s
; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O2 -o %t.dylib %t.o
; RUN: llvm-nm -no-llvm-bc %t.dylib | FileCheck --check-prefix=CHECK-O2 %s
+; REQUIRES: X86
target triple = "x86_64-apple-macosx10.8.0"