-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct conditions for Legalization and AddrSpaceCastFixing
* Legalization: limit Frem legalization to single precision * AddrSpaceCastFixing: fix for fuzzer test case
- Loading branch information
Showing
4 changed files
with
43 additions
and
2 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
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
20 changes: 20 additions & 0 deletions
20
IGC/Compiler/tests/FixAddrSpaceCast/i2p-vec-typed-pointers.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,20 @@ | ||
;=========================== begin_copyright_notice ============================ | ||
; | ||
; Copyright (C) 2024 Intel Corporation | ||
; | ||
; SPDX-License-Identifier: MIT | ||
; | ||
;============================ end_copyright_notice ============================= | ||
; COM: check that vector of pointers compiles wo assert | ||
; RUN: igc_opt --igc-addrspacecast-fix -S < %s | ||
; ------------------------------------------------ | ||
; FixAddrSpaceCast | ||
; ------------------------------------------------ | ||
|
||
define spir_kernel void @test(<8 x i32> %payloadHeader) { | ||
entry: | ||
%C = inttoptr <8 x i32> undef to <8 x i32*> | ||
store <8 x i32*> %C, <8 x i32*>* null, align 64 | ||
ret void | ||
} | ||
|
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,21 @@ | ||
;=========================== begin_copyright_notice ============================ | ||
; | ||
; Copyright (C) 2024 Intel Corporation | ||
; | ||
; SPDX-License-Identifier: MIT | ||
; | ||
;============================ end_copyright_notice ============================= | ||
; REQUIRES: llvm-14-plus | ||
; COM: check that vector of pointers compiles wo assert | ||
; RUN: igc_opt --opaque-pointers --igc-addrspacecast-fix -S < %s | ||
; ------------------------------------------------ | ||
; FixAddrSpaceCast | ||
; ------------------------------------------------ | ||
|
||
define spir_kernel void @test(<8 x i32> %payloadHeader) { | ||
entry: | ||
%C = inttoptr <8 x i32> undef to <8 x ptr> | ||
store <8 x ptr> %C, ptr null, align 64 | ||
ret void | ||
} | ||
|