Files
wasmtime/cranelift/tests/parser/tiny.cton
Jakob Stoklund Olesen f18e5fe0fa Parse select instructions.
2016-07-05 16:51:26 -07:00

21 lines
378 B
Plaintext

; The smallest possible function.
function minimal() {
ebb0:
trap
}
; Create and use values.
; Polymorphic instructions with type suffix.
function ivalues() {
ebb0:
v0 = iconst.i32 2
v1 = iconst.i8 6
v2 = ishl v0, v1
}
; Polymorphic istruction controlled by second operand.
function select() {
ebb0(vx0: i32, vx1:i32, vx2: b1):
v0 = select vx2, vx0, vx1
}