A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
;;! target = "x86_64"
;;! test = "winch"
;;! flags = [ "-Ccranelift-has-avx" ]
(module
(func (result i32)
(i16x8.all_true (v128.const i16x8 0 1 2 3 4 5 6 7))
)
)
;; wasm[0]::function[0]:
;; pushq %rbp
;; movq %rsp, %rbp
;; movq 8(%rdi), %r11
;; movq 0x18(%r11), %r11
;; addq $0x10, %r11
;; cmpq %rsp, %r11
;; ja 0x57
;; 1c: movq %rdi, %r14
;; subq $0x10, %rsp
;; movq %rdi, 8(%rsp)
;; movq %rsi, (%rsp)
;; movdqu 0x29(%rip), %xmm0
;; vpxor %xmm15, %xmm15, %xmm15
;; vpcmpeqw %xmm15, %xmm0, %xmm0
;; vptest %xmm0, %xmm0
;; movl $0, %eax
;; sete %al
;; addq $0x10, %rsp
;; popq %rbp
;; retq
;; 57: ud2
;; 59: addb %al, (%rax)
;; 5b: addb %al, (%rax)
;; 5d: addb %al, (%rax)
;; 5f: addb %al, (%rax)
;; 61: addb %al, (%rcx)
;; 63: addb %al, (%rdx)
;; 65: addb %al, (%rbx)
;; 67: addb %al, (%rax, %rax)
;; 6a: addl $0x7000600, %eax