These instruction formats take immediate lane index operands. We store these as u8 fields and require them to be in decimal format in the source. No hexadecimal lane indexes are supported.
24 lines
329 B
Plaintext
24 lines
329 B
Plaintext
function minimal() {
|
|
ebb0:
|
|
trap
|
|
}
|
|
|
|
function ivalues() {
|
|
ebb0:
|
|
v0 = iconst.i32 2
|
|
v1 = iconst.i8 6
|
|
v2 = ishl v0, v1
|
|
}
|
|
|
|
function select() {
|
|
ebb0(vx0: i32, vx1: i32, vx2: b1):
|
|
v0 = select vx2, vx0, vx1
|
|
}
|
|
|
|
function lanes() {
|
|
ebb0:
|
|
v0 = iconst.i32x4 2
|
|
v1 = extractlane v0, 3
|
|
v2 = insertlane v0, 1, v1
|
|
}
|