A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
;;! target = "x86_64"
;;! test = "winch"
;;! flags = [ "-Ccranelift-has-avx" ]
(module
(func (result v128)
(i8x16.shl (v128.const i64x2 1 2) (i32.const 3))
)
)
;; wasm[0]::function[0]:
;; pushq %rbp
;; movq %rsp, %rbp
;; movq 8(%rdi), %r11
;; movq 0x18(%r11), %r11
;; addq $0x10, %r11
;; cmpq %rsp, %r11
;; ja 0x67
;; 1c: movq %rdi, %r14
;; subq $0x10, %rsp
;; movq %rdi, 8(%rsp)
;; movq %rsi, (%rsp)
;; movl $3, %eax
;; movdqu 0x34(%rip), %xmm0
;; andl $7, %eax
;; vmovd %eax, %xmm15
;; vpsllw %xmm15, %xmm0, %xmm0
;; leaq 0x2f(%rip), %r11
;; shll $4, %eax
;; vmovdqu (%r11, %rax), %xmm15
;; vpand %xmm0, %xmm15, %xmm0
;; addq $0x10, %rsp
;; popq %rbp
;; retq
;; 67: ud2
;; 69: addb %al, (%rax)
;; 6b: addb %al, (%rax)
;; 6d: addb %al, (%rax)
;; 6f: addb %al, (%rcx)
;; 71: addb %al, (%rax)
;; 73: addb %al, (%rax)
;; 75: addb %al, (%rax)
;; 77: addb %al, (%rdx)
;; 79: addb %al, (%rax)
;; 7b: addb %al, (%rax)
;; 7d: addb %al, (%rax)
;; 7f: addb %bh, %bh