You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
604 B
37 lines
604 B
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
|
|
}
|
|
|
|
function icmp(i32, i32) {
|
|
ebb0(vx0: i32, vx1: i32):
|
|
v0 = icmp eq, vx0, vx1
|
|
v1 = icmp ult, vx0, vx1
|
|
v2 = icmp sge, vx0, vx1
|
|
}
|
|
|
|
function fcmp(f32, f32) {
|
|
ebb0(vx0: f32, vx1: f32):
|
|
v0 = fcmp eq, vx0, vx1
|
|
v1 = fcmp uno, vx0, vx1
|
|
v2 = fcmp lt, vx0, vx1
|
|
}
|
|
|