mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[Test] Tidy up loose ends from LLVM_HAS_GLOBAL_ISEL
This hasn't been allowed as a build option since r309990 Remove leftover REQUIRES: global-isel Differential Revision: https://reviews.llvm.org/D86714
This commit is contained in:
parent
1c64f56c35
commit
16726ba1da
@ -1,6 +1,5 @@
|
||||
# RUN: not llc -mtriple=aarch64-apple-ios -run-pass none -o - %s 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=ERR
|
||||
# REQUIRES: global-isel
|
||||
# This test ensures that the MIR parser errors out when
|
||||
# generic virtual register definitions are not correct.
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
# RUN: not llc -mtriple=aarch64-apple-ios -run-pass none -o - %s 2>&1 \
|
||||
# RUN: | FileCheck %s --check-prefix=ERR
|
||||
# REQUIRES: global-isel
|
||||
# This test ensures that the MIR parser errors out when
|
||||
# generic virtual register definitions are not correct.
|
||||
# In that case, it is defined by a register bank.
|
||||
|
@ -1,5 +1,4 @@
|
||||
# RUN: llc -o - %s -mtriple=aarch64-- -run-pass=none | FileCheck %s
|
||||
# REQUIRES: global-isel
|
||||
# Test various aspects of register bank specification on machine operands.
|
||||
--- |
|
||||
define void @func() { ret void }
|
||||
|
@ -1,5 +1,4 @@
|
||||
# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
|
||||
# REQUIRES: global-isel
|
||||
# Test that the MIR parser parses types on generic instructions correctly.
|
||||
|
||||
--- |
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
--- |
|
||||
; ModuleID = 'test.ll'
|
||||
source_filename = "test.ll"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
--- |
|
||||
; ModuleID = 'test.ll'
|
||||
source_filename = "test.ll"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -march=aarch64 -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_add
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -march=arm64 -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_addrspacecast
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, amdgpu-registered-target
|
||||
# REQUIRES: amdgpu-registered-target
|
||||
|
||||
---
|
||||
name: test_bitcast
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_jump_table
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
--- |
|
||||
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
||||
target triple = "aarch64-unknown-unknown"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_constant
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_extract
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_fcmp
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_fconstant
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_icmp
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_insert
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -march=arm64 -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_inttoptr
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -march=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_jump_table
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -march=arm64 -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_load
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
--- |
|
||||
; ModuleID = 'test.ll'
|
||||
source_filename = "test.ll"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -march=arm64 -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_gep
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -o - -march=arm64 -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_ptrtoint
|
||||
|
@ -1,5 +1,5 @@
|
||||
#RUN: not --crash llc -march=aarch64 -run-pass=none -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_select
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -verify-machineinstrs -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
--- |
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_sextload
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_store
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_trunc
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: not --crash llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
|
||||
# REQUIRES: global-isel, aarch64-registered-target
|
||||
# REQUIRES: aarch64-registered-target
|
||||
|
||||
---
|
||||
name: test_zextload
|
||||
|
@ -328,10 +328,9 @@ def have_ld64_plugin_support():
|
||||
if have_ld64_plugin_support():
|
||||
config.available_features.add('ld64_plugin')
|
||||
|
||||
# Ask llvm-config about asserts and global-isel.
|
||||
# Ask llvm-config about asserts
|
||||
llvm_config.feature_config(
|
||||
[('--assertion-mode', {'ON': 'asserts'}),
|
||||
('--has-global-isel', {'ON': 'global-isel'})])
|
||||
[('--assertion-mode', {'ON': 'asserts'})])
|
||||
|
||||
if 'darwin' == sys.platform:
|
||||
cmd = ['sysctl', 'hw.optional.fma']
|
||||
|
@ -1,6 +1,5 @@
|
||||
# Check whether boolean options are consistently normalized to ON/OFF.
|
||||
RUN: llvm-config --assertion-mode 2>&1 | FileCheck --check-prefix=CHECK-ONOFF %s
|
||||
RUN: llvm-config --has-global-isel 2>&1 | FileCheck --check-prefix=CHECK-ONOFF %s
|
||||
CHECK-ONOFF: {{ON|OFF}}
|
||||
CHECK-ONOFF-NOT: error:
|
||||
CHECK-ONOFF-NOT: warning
|
||||
|
@ -32,5 +32,4 @@
|
||||
#define LLVM_ENABLE_SHARED @BUILD_SHARED_LIBS@
|
||||
#define LLVM_DYLIB_COMPONENTS "@LLVM_DYLIB_COMPONENTS_expanded@"
|
||||
#define LLVM_DYLIB_VERSION "@LLVM_DYLIB_VERSION@"
|
||||
#define LLVM_HAS_GLOBAL_ISEL @LLVM_HAS_GLOBAL_ISEL@
|
||||
#define LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@"
|
||||
|
@ -50,7 +50,6 @@ set(LLVM_CXXFLAGS "${CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION} ${L
|
||||
set(LLVM_BUILD_SYSTEM cmake)
|
||||
set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI})
|
||||
set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}")
|
||||
set(LLVM_HAS_GLOBAL_ISEL "ON")
|
||||
|
||||
# Use the C++ link flags, since they should be a superset of C link flags.
|
||||
set(LLVM_LDFLAGS "${CMAKE_CXX_LINK_FLAGS}")
|
||||
@ -61,7 +60,6 @@ llvm_canonicalize_cmake_booleans(
|
||||
LLVM_BUILD_LLVM_DYLIB
|
||||
LLVM_LINK_LLVM_DYLIB
|
||||
LLVM_HAS_RTTI
|
||||
LLVM_HAS_GLOBAL_ISEL
|
||||
BUILD_SHARED_LIBS)
|
||||
llvm_expand_pseudo_components(LLVM_DYLIB_COMPONENTS_expanded "${LLVM_DYLIB_COMPONENTS}")
|
||||
configure_file(${BUILDVARIABLES_SRCPATH} ${BUILDVARIABLES_OBJPATH} @ONLY)
|
||||
|
@ -235,7 +235,6 @@ Options:\n\
|
||||
--assertion-mode Print assertion mode of LLVM tree (ON or OFF).\n\
|
||||
--build-system Print the build system used to build LLVM (always cmake).\n\
|
||||
--has-rtti Print whether or not LLVM was built with rtti (YES or NO).\n\
|
||||
--has-global-isel Print whether or not LLVM was built with global-isel support (ON or OFF).\n\
|
||||
--shared-mode Print how the provided components can be collectively linked (`shared` or `static`).\n\
|
||||
--link-shared Link the components as shared libraries.\n\
|
||||
--link-static Link the component libraries statically.\n\
|
||||
@ -579,8 +578,6 @@ int main(int argc, char **argv) {
|
||||
OS << LLVM_BUILD_SYSTEM << '\n';
|
||||
} else if (Arg == "--has-rtti") {
|
||||
OS << (LLVM_HAS_RTTI ? "YES" : "NO") << '\n';
|
||||
} else if (Arg == "--has-global-isel") {
|
||||
OS << (LLVM_HAS_GLOBAL_ISEL ? "ON" : "OFF") << '\n';
|
||||
} else if (Arg == "--shared-mode") {
|
||||
PrintSharedMode = true;
|
||||
} else if (Arg == "--obj-root") {
|
||||
|
Loading…
Reference in New Issue
Block a user