Skip to content

Commit

Permalink
Disable unused test output
Browse files Browse the repository at this point in the history
Disabled output for tests that don't depend on it
  • Loading branch information
dguzhaev authored and igcbot committed Nov 14, 2024
1 parent 67adeac commit bc6ef62
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion IGC/Compiler/tests/Legalization/addrspacecast-gas.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 12 additions & 10 deletions IGC/Compiler/tests/LowPrecisionOpt/bundles-typed-pointers.ll
Original file line number Diff line number Diff line change
@@ -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
Expand Down
22 changes: 12 additions & 10 deletions IGC/Compiler/tests/LowPrecisionOpt/bundles.ll
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
; ------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
; ------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
; ------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions IGC/VectorCompiler/test/CMABI/linearization_no_crash.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 2 additions & 5 deletions IGC/VectorCompiler/test/DebugInfo/dumps_test.ll
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@
; 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 \
; RUN: -vc-dbginfo-dumps-name-override=%basename_t \
; 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions IGC/VectorCompiler/test/StackUsage/stack_test.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc6ef62

Please sign in to comment.