-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port
vconst
to ISLE (AArch64) (#4750)
* Port `vconst` to ISLE (AArch64) Ported the existing implementation of `vconst` to ISLE for AArch64, and added support for 64-bit vector constants. Also introduced 64-bit `vconst` support to the interpreter. Copyright (c) 2022 Arm Limited * Replace if-chains with match statements Copyright (c) 2022 Arm Limited
- Loading branch information
1 parent
418dbc1
commit da1fb30
Showing
10 changed files
with
97 additions
and
21 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
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
39 changes: 39 additions & 0 deletions
39
cranelift/filetests/filetests/runtests/simd-vconst-64bit.clif
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,39 @@ | ||
test interpret | ||
test run | ||
target aarch64 | ||
; x86_64 and s390x do not support 64-bit vectors. | ||
|
||
function %vconst_zeroes() -> i8x8 { | ||
block0: | ||
v0 = vconst.i8x8 0x00 | ||
return v0 | ||
} | ||
; run: %vconst_zeroes() == [0 0 0 0 0 0 0 0] | ||
|
||
function %vconst_ones() -> i8x8 { | ||
block0: | ||
v0 = vconst.i8x8 0xffffffffffffffff | ||
return v0 | ||
} | ||
; run: %vconst_ones() == [255 255 255 255 255 255 255 255] | ||
|
||
function %vconst_i8x8() -> i8x8 { | ||
block0: | ||
v0 = vconst.i8x8 [0 31 63 95 127 159 191 255] | ||
return v0 | ||
} | ||
; run: %vconst_i8x8() == [0 31 63 95 127 159 191 255] | ||
|
||
function %vconst_i16x4() -> i16x4 { | ||
block0: | ||
v0 = vconst.i16x4 [0 255 32767 65535] | ||
return v0 | ||
} | ||
; run: %vconst_i16x4() == [0 255 32767 65535] | ||
|
||
function %vconst_i32x2() -> i32x2 { | ||
block0: | ||
v0 = vconst.i32x2 [0 4294967295] | ||
return v0 | ||
} | ||
; run: %vconst_i32x2() == [0 4294967295] |
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