Removed foo-registered-target constraints from a bunch of tests, because mostly the driver doesn't need to have a target availabile. I ran check-clang-driver using a build with only the XCore target, and these all passed. There are ~50 tests that still have foo-registered-target, and it looks like most of them are either doing codegen when they don't need to, or don't really belong in the Driver tests. But that's a task for another day.
34 lines
1.8 KiB
C
34 lines
1.8 KiB
C
// RUN: %clang -fglobal-isel -S -### %s 2>&1 | FileCheck --check-prefix=ENABLED %s
|
|
// RUN: %clang -fno-global-isel -S -### %s 2>&1 | FileCheck --check-prefix=DISABLED %s
|
|
|
|
// RUN: %clang -target aarch64 -fglobal-isel -S %s -### 2>&1 | FileCheck --check-prefix=ARM64-DEFAULT %s
|
|
// RUN: %clang -target aarch64 -fglobal-isel -S -O0 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O0 %s
|
|
// RUN: %clang -target aarch64 -fglobal-isel -S -O2 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O2 %s
|
|
// RUN: %clang -target aarch64 -fglobal-isel -Wno-global-isel -S -O2 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O2-NOWARN %s
|
|
|
|
// RUN: %clang -target x86_64 -fglobal-isel -S %s -### 2>&1 | FileCheck --check-prefix=X86_64 %s
|
|
|
|
// Now test the aliases.
|
|
|
|
// RUN: %clang -fexperimental-isel -S -### %s 2>&1 | FileCheck --check-prefix=ENABLED %s
|
|
// RUN: %clang -fno-experimental-isel -S -### %s 2>&1 | FileCheck --check-prefix=DISABLED %s
|
|
|
|
// RUN: %clang -target aarch64 -fexperimental-isel -S %s -### 2>&1 | FileCheck --check-prefix=ARM64-DEFAULT %s
|
|
// RUN: %clang -target aarch64 -fexperimental-isel -S -O0 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O0 %s
|
|
// RUN: %clang -target aarch64 -fexperimental-isel -S -O2 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O2 %s
|
|
|
|
// RUN: %clang -target x86_64 -fexperimental-isel -S %s -### 2>&1 | FileCheck --check-prefix=X86_64 %s
|
|
|
|
// ENABLED: "-mllvm" "-global-isel=1"
|
|
// DISABLED: "-mllvm" "-global-isel=0"
|
|
|
|
// ARM64-DEFAULT-NOT: warning: -fglobal-isel
|
|
// ARM64-DEFAULT-NOT: "-global-isel-abort=2"
|
|
// ARM64-O0-NOT: warning: -fglobal-isel
|
|
// ARM64-O2: warning: -fglobal-isel support is incomplete for this architecture at the current optimization level
|
|
// ARM64-O2: "-mllvm" "-global-isel-abort=2"
|
|
// ARM64-O2-NOWARN-NOT: warning: -fglobal-isel
|
|
|
|
// X86_64: -fglobal-isel support for the 'x86_64' architecture is incomplete
|
|
// X86_64: "-mllvm" "-global-isel-abort=2"
|