Skip to content

Commit

Permalink
Remove LLVM_14_0+ from lit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aneshlya committed Nov 8, 2024
1 parent 7573605 commit 80dccf9
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion tests/lit-tests/1323_1.ispc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %{ispc} %s --target=sse2-i32x4,sse4-i32x8,avx1-i32x8,avx2-i32x8,avx512skx-x16 -h %t.h --emit-llvm -o %t.bc
// -opaque-pointers option was introduced in LLVM 14.0 and it's became necessary to pass it explicitely to llvm-dis starting LLVM 16.0
// RUN: llvm-dis -opaque-pointers=0 %t.bc -o - | FileCheck %s -check-prefix=CHECK_TYPES
// REQUIRES: X86_ENABLED && LLVM_14_0+
// REQUIRES: X86_ENABLED

// The test doesn't make sense in opaque mode, all types will be opaque.
// UNSUPPORTED: OPAQUE_PTRS_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/avx512spr-i32x8.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//; RUN: %{ispc} %s --target=avx512spr-x8 --emit-llvm -o %t_8.bc
//; RUN: llvm-dis %t_8.bc -o - | FileCheck %s -check-prefix=CHECK_ATTR_8

// REQUIRES: X86_ENABLED && LLVM_14_0+ && !MACOS_HOST
// REQUIRES: X86_ENABLED && !MACOS_HOST

double ret_round(double val)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/cpus_x86_llvm14.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//; RUN: %{ispc} %s -o %t.o --nostdlib --target=sse2-i32x4 --cpu=sapphirerapids
//; RUN: %{ispc} %s -o %t.o --nostdlib --target=sse2-i32x4 --cpu=spr

// REQUIRES: X86_ENABLED && LLVM_14_0+
// REQUIRES: X86_ENABLED

uniform int i;

Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/disable_gather_scatter.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
// RUN: %{ispc} %s -O2 --woff --target=avx512spr-x64 --addressing=32 --nostdlib --emit-llvm-text --opt=disable-gathers --opt=disable-scatters -o - | FileCheck %s
// RUN: %{ispc} %s -O2 --woff --target=avx512spr-x64 --addressing=64 --nostdlib --emit-llvm-text --opt=disable-gathers --opt=disable-scatters -o - | FileCheck %s

// REQUIRES: X86_ENABLED && LLVM_14_0+ && !MACOS_HOST
// REQUIRES: X86_ENABLED && !MACOS_HOST

// CHECK-LABEL: gather_scatter_base_offset_int32___
// CHECK-NOT: @llvm.{{.*}}.gather{{.*}}
Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/fp16_code_gen.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// RUN: %{ispc} %s --target=avx512spr-x32 --emit-asm -o - | FileCheck %s -check-prefix=CHECK_SPR
// RUN: %{ispc} %s --target=avx512spr-x64 --emit-asm -o - | FileCheck %s -check-prefix=CHECK_SPR

// REQUIRES: X86_ENABLED && LLVM_14_0+ && !MACOS_HOST
// REQUIRES: X86_ENABLED && !MACOS_HOST

// CHECK_SPR-LABEL: fp16_add
// CHECK_SPR: vaddph
Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/interleaved.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %{ispc} %s --target=avx1 -O2 --opt=fast-math -h %t.h --emit-asm -o - | FileCheck %s -check-prefix=CHECK_AVX
// RUN: %{ispc} %s --target=sse4 -O2 --opt=fast-math -h %t.h --emit-asm -o - | FileCheck %s -check-prefix=CHECK_SSE
// RUN: %{ispc} %s --target=sse2 -O2 --opt=fast-math -h %t.h --emit-asm -o - | FileCheck %s -check-prefix=CHECK_SSE
// REQUIRES: X86_ENABLED && LLVM_14_0+
// REQUIRES: X86_ENABLED
export void test_interleaved(const uniform float xin[],
const uniform float yin[],
const uniform float zin[],
Expand Down
6 changes: 0 additions & 6 deletions tests/lit-tests/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ print("Config:")
# LLVM version
llvm_version_major = int(ispc_llvm_version_number.split('.')[0])

if llvm_version_major >= 14:
print("LLVM_14_0+: YES")
config.available_features.add("LLVM_14_0+")
else:
print("LLVM_14_0+: NO")

if llvm_version_major >= 16:
print("LLVM_16_0+: YES")
config.available_features.add("LLVM_16_0+")
Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/load_store_vectorizer_loopunroll.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// RUN: %{ispc} %s --target=gen9-x8 --arch=xe64 -h %t.h --emit-llvm-text --debug-phase=325:325 --dump-file=%t -o /dev/null
// RUN: FileCheck --input-file %t/ir_325_LoadStoreVectorizerPass.ll %s --check-prefixes CHECK_ALL,CHECK

// REQUIRES: XE_ENABLED && LLVM_14_0+
// REQUIRES: XE_ENABLED

#define LOAD(n) \
a[n] = _in[n]
Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/perf-warnings.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// A note about notrunning on macOS - it's because of SPR not being supported there.
// It should be sufficient to run this test on other platforms and not to complicate
// with splitting it to SPR and non-SPR versions.
// REQUIRES: X86_ENABLED && LLVM_14_0+ && !MACOS_HOST
// REQUIRES: X86_ENABLED && !MACOS_HOST

// Float16 -> integers

Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/target_x86_macos_no_spr.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//; RUN: not %{ispc} %s -o %t.o --nostdlib --target-os=macos --arch=x86-64 --nowrap --target=avx512spr-x32 2>&1 | FileCheck %s
//; RUN: not %{ispc} %s -o %t.o --nostdlib --target-os=macos --arch=x86-64 --nowrap --target=avx512spr-x64 2>&1 | FileCheck %s

// REQUIRES: X86_ENABLED && LLVM_14_0+ && MACOS_HOST
// REQUIRES: X86_ENABLED && MACOS_HOST

// CHECK: Error: avx512spr-x{{.*}} target for x86-64 on macOS is not supported in current build.

Expand Down
2 changes: 1 addition & 1 deletion tests/lit-tests/targets_x86_llvm14plus.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//; RUN: %{ispc} %s -o %t.o --nostdlib --target=avx512spr-x32
//; RUN: %{ispc} %s -o %t.o --nostdlib --target=avx512spr-x64

// REQUIRES: X86_ENABLED && LLVM_14_0+ && !MACOS_HOST
// REQUIRES: X86_ENABLED && !MACOS_HOST

uniform int j;

Expand Down

0 comments on commit 80dccf9

Please sign in to comment.