-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[xllvm] Add support for multi-result intrinsics
- Loading branch information
Showing
4 changed files
with
85 additions
and
18 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// RUN: aie-opt %s -split-input-file -verify-diagnostics | ||
|
||
func.func @invalidStructType(%A : vector<32xbf16>, %B : vector<32xbf16>) | ||
-> vector<16xbf16> { | ||
// expected-error @+1 {{'res' is an LLVM struct of {vector of bfloat16 type values of length 32; 32-bit signless integer}} | ||
%rs = "xllvm.intr.aie2.vmax.ltbf16"(%A, %B) : | ||
(vector<32xbf16>, vector<32xbf16>) -> !llvm.struct<(vector<16xbf16>, i32)> | ||
%rv = llvm.extractvalue %rs[0] : !llvm.struct<(vector<16xbf16>, i32)> | ||
return %rv : vector<16xbf16> | ||
} |