From bc6ef62e2888ff10ceb09fef549ae206279e019f Mon Sep 17 00:00:00 2001 From: "Guzhaev, Dmitry" Date: Wed, 13 Nov 2024 13:14:44 +0000 Subject: [PATCH] Disable unused test output Disabled output for tests that don't depend on it --- .../addrspacecast-gas-typed-pointers.ll | 2 +- .../tests/Legalization/addrspacecast-gas.ll | 2 +- .../LowPrecisionOpt/bundles-typed-pointers.ll | 22 ++++++++++--------- IGC/Compiler/tests/LowPrecisionOpt/bundles.ll | 22 ++++++++++--------- .../empty_printf_call-typed-pointers.ll | 2 +- .../empty_printf_call.ll | 2 +- ...ve-function-control-dump-typed-pointers.ll | 2 +- .../test/CMABI/linearization_no_crash.ll | 4 ++-- .../test/DebugInfo/dumps_test.ll | 7 ++---- .../GenXCoalescing/constant_in_ret_inst.ll | 2 +- .../test/GenXCoalescing/insertvalue_undef.ll | 2 +- .../possibly_wrong_test_with_constants.ll | 4 ++-- .../GenXCoalescing/undo_copy_elimination.ll | 2 +- .../test/StackUsage/stack_test.ll | 4 ++-- 14 files changed, 40 insertions(+), 39 deletions(-) diff --git a/IGC/Compiler/tests/Legalization/addrspacecast-gas-typed-pointers.ll b/IGC/Compiler/tests/Legalization/addrspacecast-gas-typed-pointers.ll index 5975cce805f2..a0263263df1e 100644 --- a/IGC/Compiler/tests/Legalization/addrspacecast-gas-typed-pointers.ll +++ b/IGC/Compiler/tests/Legalization/addrspacecast-gas-typed-pointers.ll @@ -7,7 +7,7 @@ ;============================ end_copyright_notice ============================= ; ; Default test run w/o AddImplicitArgs is for sanity reasons(so module won't break) -; RUN: igc_opt -igc-legalization -S -dce < %s +; RUN: igc_opt -igc-legalization -S -dce -disable-output < %s ; ; AddImplicitArgs is expected to be present in pipeline ; RUN: igc_opt -igc-add-implicit-args -igc-legalization -S -dce < %s | FileCheck %s diff --git a/IGC/Compiler/tests/Legalization/addrspacecast-gas.ll b/IGC/Compiler/tests/Legalization/addrspacecast-gas.ll index 4951510f42b3..43ecf430e8a4 100644 --- a/IGC/Compiler/tests/Legalization/addrspacecast-gas.ll +++ b/IGC/Compiler/tests/Legalization/addrspacecast-gas.ll @@ -8,7 +8,7 @@ ; REQUIRES: llvm-14-plus ; ; Default test run w/o AddImplicitArgs is for sanity reasons(so module won't break) -; RUN: igc_opt -opaque-pointers -igc-legalization -S -dce < %s +; RUN: igc_opt -opaque-pointers -igc-legalization -S -dce -disable-output < %s ; ; AddImplicitArgs is expected to be present in pipeline ; RUN: igc_opt -opaque-pointers -igc-add-implicit-args -igc-legalization -S -dce < %s | FileCheck %s diff --git a/IGC/Compiler/tests/LowPrecisionOpt/bundles-typed-pointers.ll b/IGC/Compiler/tests/LowPrecisionOpt/bundles-typed-pointers.ll index 01f2eedf7ef4..752b975f690f 100644 --- a/IGC/Compiler/tests/LowPrecisionOpt/bundles-typed-pointers.ll +++ b/IGC/Compiler/tests/LowPrecisionOpt/bundles-typed-pointers.ll @@ -1,19 +1,21 @@ -; RUN: igc_opt -igc-low-precision-opt -inputps -S < %s +; RUN: igc_opt -igc-low-precision-opt -inputps -S < %s | FileCheck %s ; ------------------------------------------------ ; LowPrecisionOpt ; ------------------------------------------------ ; This test checks that fptrunc bundle works - - -; CHECK: %0 = alloca half, align 4 -; CHECK: %1 = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 2) -; CHECK: %2 = fptrunc float %1 to half -; CHECK: %3 = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 1) -; CHECK: %4 = fptrunc float %3 to half -; CHECK: store half %4, half* %0 - define void @test_low(float %src) { +; CHECK-LABEL: define void @test_low( +; CHECK-SAME: float [[SRC:%.*]]) { +; CHECK-NEXT: [[ENTRY:.*:]] +; CHECK-NEXT: [[TMP0:%.*]] = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 1) +; CHECK-NEXT: [[TMP1:%.*]] = fptrunc float [[TMP0]] to half +; CHECK-NEXT: [[TMP2:%.*]] = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 2) +; CHECK-NEXT: [[TMP3:%.*]] = fptrunc float [[TMP2]] to half +; CHECK-NEXT: [[TMP4:%.*]] = alloca half, align 4 +; CHECK-NEXT: store half [[TMP1]], half* [[TMP4]], align 2 +; CHECK-NEXT: ret void +; entry: ; bundles sort GenISA_RuntimeValue + fptrunc %0 = alloca half, align 4 diff --git a/IGC/Compiler/tests/LowPrecisionOpt/bundles.ll b/IGC/Compiler/tests/LowPrecisionOpt/bundles.ll index 39303d1bb53c..e8299f663f31 100644 --- a/IGC/Compiler/tests/LowPrecisionOpt/bundles.ll +++ b/IGC/Compiler/tests/LowPrecisionOpt/bundles.ll @@ -1,21 +1,23 @@ - ; REQUIRES: llvm-14-plus -; RUN: igc_opt --opaque-pointers -igc-low-precision-opt -inputps -S < %s +; RUN: igc_opt --opaque-pointers -igc-low-precision-opt -inputps -S < %s | FileCheck %s ; ------------------------------------------------ ; LowPrecisionOpt ; ------------------------------------------------ ; This test checks that fptrunc bundle works - -; CHECK: %0 = alloca half, align 4 -; CHECK: %1 = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 2) -; CHECK: %2 = fptrunc float %1 to half -; CHECK: %3 = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 1) -; CHECK: %4 = fptrunc float %3 to half -; CHECK: store half %4, half* %0 - define void @test_low(float %src) { +; CHECK-LABEL: define void @test_low( +; CHECK-SAME: float [[SRC:%.*]]) { +; CHECK-NEXT: [[ENTRY:.*:]] +; CHECK-NEXT: [[TMP0:%.*]] = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 1) +; CHECK-NEXT: [[TMP1:%.*]] = fptrunc float [[TMP0]] to half +; CHECK-NEXT: [[TMP2:%.*]] = call float @llvm.genx.GenISA.RuntimeValue.f32(i32 2) +; CHECK-NEXT: [[TMP3:%.*]] = fptrunc float [[TMP2]] to half +; CHECK-NEXT: [[TMP4:%.*]] = alloca half, align 4 +; CHECK-NEXT: store half [[TMP1]], ptr [[TMP4]], align 2 +; CHECK-NEXT: ret void +; entry: ; bundles sort GenISA_RuntimeValue + fptrunc %0 = alloca half, align 4 diff --git a/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call-typed-pointers.ll b/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call-typed-pointers.ll index 9201f872c387..c129422c6a3a 100644 --- a/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call-typed-pointers.ll +++ b/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call-typed-pointers.ll @@ -5,7 +5,7 @@ ; SPDX-License-Identifier: MIT ; ;============================ end_copyright_notice ============================= -; RUN: igc_opt -igc-opencl-printf-resolution -S < %s +; RUN: igc_opt -igc-opencl-printf-resolution -S -disable-output < %s ; ------------------------------------------------ ; OpenCLPrintfResolution ; ------------------------------------------------ diff --git a/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call.ll b/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call.ll index 608051bf5987..01e77b0a03b9 100644 --- a/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call.ll +++ b/IGC/Compiler/tests/OpenCLPrintfResolution/empty_printf_call.ll @@ -6,7 +6,7 @@ ; ;============================ end_copyright_notice ============================= ; REQUIRES: llvm-14-plus -; RUN: igc_opt --opaque-pointers -igc-opencl-printf-resolution -S < %s +; RUN: igc_opt --opaque-pointers -igc-opencl-printf-resolution -S -disable-output < %s ; ------------------------------------------------ ; OpenCLPrintfResolution ; ------------------------------------------------ diff --git a/IGC/Compiler/tests/ProcessFuncAttributes/selective-function-control-dump-typed-pointers.ll b/IGC/Compiler/tests/ProcessFuncAttributes/selective-function-control-dump-typed-pointers.ll index 50def891b639..918a84a32894 100644 --- a/IGC/Compiler/tests/ProcessFuncAttributes/selective-function-control-dump-typed-pointers.ll +++ b/IGC/Compiler/tests/ProcessFuncAttributes/selective-function-control-dump-typed-pointers.ll @@ -7,7 +7,7 @@ ;============================ end_copyright_notice ============================= ; ; REQUIRES: llvm-14-plus, regkeys -; RUN: igc_opt --igc-process-func-attributes -regkey FunctionControl=3,SelectiveFunctionControl=2,SelectiveFunctionControlFile=%t < %s +; RUN: igc_opt --igc-process-func-attributes -regkey FunctionControl=3,SelectiveFunctionControl=2,SelectiveFunctionControlFile=%t -disable-output < %s ; RUN: cat %t | FileCheck %s ; ------------------------------------------------ diff --git a/IGC/VectorCompiler/test/CMABI/linearization_no_crash.ll b/IGC/VectorCompiler/test/CMABI/linearization_no_crash.ll index 2bd4170ed22a..78e1810f00c6 100644 --- a/IGC/VectorCompiler/test/CMABI/linearization_no_crash.ll +++ b/IGC/VectorCompiler/test/CMABI/linearization_no_crash.ll @@ -6,8 +6,8 @@ ; ;============================ end_copyright_notice ============================= -; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABI -march=genx64 -mcpu=Gen9 -S < %s -; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABI -march=genx64 -mcpu=Gen9 -S < %s +; RUN: %opt_typed_ptrs %use_old_pass_manager% -CMABI -march=genx64 -mcpu=Gen9 -S -disable-output < %s +; RUN: %opt_opaque_ptrs %use_old_pass_manager% -CMABI -march=genx64 -mcpu=Gen9 -S -disable-output < %s ; COM: This test must not crash target datalayout = "e-p:64:64-i64:64-n8:16:32:64" diff --git a/IGC/VectorCompiler/test/DebugInfo/dumps_test.ll b/IGC/VectorCompiler/test/DebugInfo/dumps_test.ll index beb954ede191..8659ba2f7a69 100644 --- a/IGC/VectorCompiler/test/DebugInfo/dumps_test.ll +++ b/IGC/VectorCompiler/test/DebugInfo/dumps_test.ll @@ -5,7 +5,7 @@ ; SPDX-License-Identifier: MIT ; ;============================ end_copyright_notice ============================= - +; REQUIRES: oneapi-readelf ; RUN: llc %s -march=genx64 -mcpu=Gen9 \ ; RUN: -vc-skip-ocl-runtime-info \ ; RUN: -vc-enable-dbginfo-dumps \ @@ -13,10 +13,7 @@ ; RUN: -finalizer-opts='-generateDebugInfo' -o /dev/null ; COM: we just check that files exist and can be decoded -; RUN: readelf --debug-dump dbginfo_%basename_t_test_kernel_dwarf.elf - -; COM: just check that a file exists -; RUN: test -f dbginfo_%basename_t_test_kernel_gen.dump +; RUN: oneapi-readelf --debug-dump dbginfo_%basename_t_test_kernel_dwarf.elf &> dbginfo_%basename_t_test_kernel_gen.dump ; COM: check that the file contains expected sections ; RUN: FileCheck --input-file dbginfo_%basename_t_test_kernel_gen.decoded.dump --check-prefix=CHECK_GEN_DEBUG_DECODED %s diff --git a/IGC/VectorCompiler/test/GenXCoalescing/constant_in_ret_inst.ll b/IGC/VectorCompiler/test/GenXCoalescing/constant_in_ret_inst.ll index d144de77b3d0..bfd5ce8e0ad9 100644 --- a/IGC/VectorCompiler/test/GenXCoalescing/constant_in_ret_inst.ll +++ b/IGC/VectorCompiler/test/GenXCoalescing/constant_in_ret_inst.ll @@ -13,7 +13,7 @@ ; RUN: %opt %use_old_pass_manager% -GenXModule -GenXNumberingWrapper -GenXLiveRangesWrapper -GenXCoalescingWrapper \ ; RUN: -march=genx64 -mcpu=Gen9 -mtriple=spir64-unknown-unknown -vc-disable-coalescing -S \ -; RUN: < %s +; RUN: -disable-output < %s ; ModuleID = 'test_2.ll' source_filename = "test_2.ll" diff --git a/IGC/VectorCompiler/test/GenXCoalescing/insertvalue_undef.ll b/IGC/VectorCompiler/test/GenXCoalescing/insertvalue_undef.ll index 605cefb1d32b..a10656f605ed 100644 --- a/IGC/VectorCompiler/test/GenXCoalescing/insertvalue_undef.ll +++ b/IGC/VectorCompiler/test/GenXCoalescing/insertvalue_undef.ll @@ -15,7 +15,7 @@ ; RUN: %opt %use_old_pass_manager% -GenXModule -GenXNumberingWrapper -GenXLiveRangesWrapper -GenXCoalescingWrapper \ ; RUN: -march=genx64 -mcpu=Gen9 -mtriple=spir64-unknown-unknown -vc-disable-coalescing -S \ -; RUN: < %s +; RUN: -disable-output < %s ; ModuleID = 'test.ll' source_filename = "test.ll" diff --git a/IGC/VectorCompiler/test/GenXCoalescing/possibly_wrong_test_with_constants.ll b/IGC/VectorCompiler/test/GenXCoalescing/possibly_wrong_test_with_constants.ll index 63a1e69f43d8..4bf7832e67dd 100644 --- a/IGC/VectorCompiler/test/GenXCoalescing/possibly_wrong_test_with_constants.ll +++ b/IGC/VectorCompiler/test/GenXCoalescing/possibly_wrong_test_with_constants.ll @@ -9,9 +9,9 @@ ; COM: Check that GenXCoalescing does not fail on bitcast with constants ; RUN: %opt_typed_ptrs %use_old_pass_manager% -GenXModule -GenXNumberingWrapper -GenXLiveRangesWrapper -GenXCoalescingWrapper \ -; RUN: -march=genx64 -mcpu=Gen9 -mtriple=spir64-unknown-unknown -S < %s +; RUN: -march=genx64 -mcpu=Gen9 -mtriple=spir64-unknown-unknown -S -disable-output < %s ; RUN: %opt_opaque_ptrs %use_old_pass_manager% -GenXModule -GenXNumberingWrapper -GenXLiveRangesWrapper -GenXCoalescingWrapper \ -; RUN: -march=genx64 -mcpu=Gen9 -mtriple=spir64-unknown-unknown -S < %s +; RUN: -march=genx64 -mcpu=Gen9 -mtriple=spir64-unknown-unknown -S -disable-output < %s ; ModuleID = 'reduced.bc' source_filename = "before_coalesc_0.ll" diff --git a/IGC/VectorCompiler/test/GenXCoalescing/undo_copy_elimination.ll b/IGC/VectorCompiler/test/GenXCoalescing/undo_copy_elimination.ll index 66de4707c05c..efefba0a18e0 100644 --- a/IGC/VectorCompiler/test/GenXCoalescing/undo_copy_elimination.ll +++ b/IGC/VectorCompiler/test/GenXCoalescing/undo_copy_elimination.ll @@ -8,7 +8,7 @@ ; RUN: %opt %use_old_pass_manager% -GenXModule -GenXUnbalingWrapper -GenXNumberingWrapper \ ; RUN: -GenXLiveRangesWrapper -GenXCoalescingWrapper -march=genx64 \ -; RUN: -mcpu=XeHPC -mtriple=spir64-unknown-unknown -S < %s +; RUN: -mcpu=XeHPC -mtriple=spir64-unknown-unknown -S -disable-output < %s ; Check that undoing copy elimination doesn't cause a crash caused by LR deletion diff --git a/IGC/VectorCompiler/test/StackUsage/stack_test.ll b/IGC/VectorCompiler/test/StackUsage/stack_test.ll index e85e01594a5a..f2a79267c6b5 100644 --- a/IGC/VectorCompiler/test/StackUsage/stack_test.ll +++ b/IGC/VectorCompiler/test/StackUsage/stack_test.ll @@ -6,8 +6,8 @@ ; ;============================ end_copyright_notice ============================= -; RUN: %opt_typed_ptrs %use_old_pass_manager% -dbgonly-enforce-privmem-stateless=128 -GenXStackUsage -march=genx64 -stack-analysis -mcpu=Gen9 -S %s 2> %t.stderr-out -; RUN: %opt_opaque_ptrs %use_old_pass_manager% -dbgonly-enforce-privmem-stateless=128 -GenXStackUsage -march=genx64 -stack-analysis -mcpu=Gen9 -S %s 2> %t.stderr-out +; RUN: %opt_typed_ptrs %use_old_pass_manager% -dbgonly-enforce-privmem-stateless=128 -GenXStackUsage -march=genx64 -stack-analysis -mcpu=Gen9 -S %s -disable-output 2> %t.stderr-out +; RUN: %opt_opaque_ptrs %use_old_pass_manager% -dbgonly-enforce-privmem-stateless=128 -GenXStackUsage -march=genx64 -stack-analysis -mcpu=Gen9 -S %s -disable-output 2> %t.stderr-out ; RUN: FileCheck %s < %t.stderr-out ; CHECK: 1152 ; CHECK: 1152