-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable denormal support for systolic operations in VC
When the target device supports denormals for DPAS instructions, the compiler should retain them. This change enables denormal support for the following data types: * bf16 - for Xe2 * tf32 - for Xe2
- Loading branch information
Showing
2 changed files
with
81 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
IGC/VectorCompiler/test/CisaBuilder/retain-denorm-systolic.ll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
;=========================== begin_copyright_notice ============================ | ||
; | ||
; Copyright (C) 2024 Intel Corporation | ||
; | ||
; SPDX-License-Identifier: MIT | ||
; | ||
;============================ end_copyright_notice ============================= | ||
|
||
target triple = "genx64-unknown-unknown" | ||
|
||
; RUN: %opt %use_old_pass_manager% -GenXModule -GenXCategoryWrapper -GenXCisaBuilderPass -GenXFinalizer \ | ||
; RUN: -march=genx64 -mtriple=spir64-unknown-unknown -finalizer-opts="-dumpcommonisa -isaasmToConsole" \ | ||
; RUN: -mcpu=XeHPC < %s | FileCheck %s --check-prefix=FLUSH | ||
|
||
; RUN: %opt %use_old_pass_manager% -GenXModule -GenXCategoryWrapper -GenXCisaBuilderPass -GenXFinalizer \ | ||
; RUN: -march=genx64 -mtriple=spir64-unknown-unknown -finalizer-opts="-dumpcommonisa -isaasmToConsole" \ | ||
; RUN: -mcpu=Xe2 < %s | FileCheck %s --check-prefix=RETAIN | ||
|
||
; FLUSH-NOT: and (M1, 1) %cr0(0,0)<1> %cr0(0,0)<0;1,0> | ||
; FLUSH-NOT: or (M1, 1) %cr0(0,0)<1> %cr0(0,0)<0;1,0> | ||
|
||
; RETAIN: and (M1, 1) %cr0(0,0)<1> %cr0(0,0)<0;1,0> 0xfffffb0f:ud | ||
; RETAIN: or (M1, 1) %cr0(0,0)<1> %cr0(0,0)<0;1,0> 0x40000000:ud | ||
|
||
define dllexport spir_kernel void @the_test(i32 %0, i32 %1) #0 { | ||
ret void | ||
} | ||
|
||
attributes #0 = { "CMGenxMain" "CMFloatControl"="0" } | ||
|
||
!spirv.Source = !{!0} | ||
!opencl.spir.version = !{!1} | ||
!opencl.ocl.version = !{!0} | ||
!opencl.used.extensions = !{!2} | ||
!opencl.used.optional.core.features = !{!2} | ||
!spirv.Generator = !{!3} | ||
!genx.kernels = !{!4} | ||
!genx.kernel.internal = !{!8} | ||
|
||
!0 = !{i32 0, i32 0} | ||
!1 = !{i32 1, i32 2} | ||
!2 = !{} | ||
!3 = !{i16 6, i16 14} | ||
!4 = !{void (i32, i32)* @the_test, !"the_test", !5, i32 0, !6, !0, !7, i32 0} | ||
!5 = !{i32 2, i32 2} | ||
!6 = !{i32 64, i32 68} | ||
!7 = !{!"buffer_t", !"buffer_t"} | ||
!8 = !{void (i32, i32)* @the_test, null, null, null, null} |