-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* packed integer neg * v128 shifts * shift tests * fmt
- Loading branch information
1 parent
7665432
commit d943d57
Showing
23 changed files
with
1,071 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i16x8.neg (v128.const i64x2 0xFFFFFFFFFFFFFFFF 42) | ||
))) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x43 | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movdqu 0x1c(%rip), %xmm0 | ||
;; vpxor %xmm15, %xmm15, %xmm15 | ||
;; vpsubw %xmm0, %xmm15, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 43: ud2 | ||
;; 45: addb %al, (%rax) | ||
;; 47: addb %al, (%rax) | ||
;; 49: addb %al, (%rax) | ||
;; 4b: addb %al, (%rax) | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %bh, %bh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i16x8.shl (v128.const i64x2 1 2) (i32.const 3)) | ||
) | ||
) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x4b | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movl $3, %eax | ||
;; movdqu 0x17(%rip), %xmm0 | ||
;; andl $0xf, %eax | ||
;; vmovd %eax, %xmm15 | ||
;; vpsllw %xmm15, %xmm0, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 4b: ud2 | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %al, (%rcx) | ||
;; 51: addb %al, (%rax) | ||
;; 53: addb %al, (%rax) | ||
;; 55: addb %al, (%rax) | ||
;; 57: addb %al, (%rdx) | ||
;; 59: addb %al, (%rax) | ||
;; 5b: addb %al, (%rax) | ||
;; 5d: addb %al, (%rax) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i16x8.shr_s (v128.const i64x2 1 2) (i32.const 3)) | ||
) | ||
) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x4b | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movl $3, %eax | ||
;; movdqu 0x17(%rip), %xmm0 | ||
;; andl $0xf, %eax | ||
;; vmovd %eax, %xmm15 | ||
;; vpsraw %xmm15, %xmm0, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 4b: ud2 | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %al, (%rcx) | ||
;; 51: addb %al, (%rax) | ||
;; 53: addb %al, (%rax) | ||
;; 55: addb %al, (%rax) | ||
;; 57: addb %al, (%rdx) | ||
;; 59: addb %al, (%rax) | ||
;; 5b: addb %al, (%rax) | ||
;; 5d: addb %al, (%rax) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i16x8.shr_u (v128.const i64x2 1 2) (i32.const 3)) | ||
) | ||
) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x4b | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movl $3, %eax | ||
;; movdqu 0x17(%rip), %xmm0 | ||
;; andl $0xf, %eax | ||
;; vmovd %eax, %xmm15 | ||
;; vpsrlw %xmm15, %xmm0, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 4b: ud2 | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %al, (%rcx) | ||
;; 51: addb %al, (%rax) | ||
;; 53: addb %al, (%rax) | ||
;; 55: addb %al, (%rax) | ||
;; 57: addb %al, (%rdx) | ||
;; 59: addb %al, (%rax) | ||
;; 5b: addb %al, (%rax) | ||
;; 5d: addb %al, (%rax) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i32x4.neg (v128.const i64x2 0xFFFFFFFFFFFFFFFF 42) | ||
))) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x43 | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movdqu 0x1c(%rip), %xmm0 | ||
;; vpxor %xmm15, %xmm15, %xmm15 | ||
;; vpsubd %xmm0, %xmm15, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 43: ud2 | ||
;; 45: addb %al, (%rax) | ||
;; 47: addb %al, (%rax) | ||
;; 49: addb %al, (%rax) | ||
;; 4b: addb %al, (%rax) | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %bh, %bh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i32x4.shl (v128.const i64x2 1 2) (i32.const 3)) | ||
) | ||
) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x4b | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movl $3, %eax | ||
;; movdqu 0x17(%rip), %xmm0 | ||
;; andl $0x1f, %eax | ||
;; vmovd %eax, %xmm15 | ||
;; vpslld %xmm15, %xmm0, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 4b: ud2 | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %al, (%rcx) | ||
;; 51: addb %al, (%rax) | ||
;; 53: addb %al, (%rax) | ||
;; 55: addb %al, (%rax) | ||
;; 57: addb %al, (%rdx) | ||
;; 59: addb %al, (%rax) | ||
;; 5b: addb %al, (%rax) | ||
;; 5d: addb %al, (%rax) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i32x4.shr_s (v128.const i64x2 1 2) (i32.const 3)) | ||
) | ||
) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x4b | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movl $3, %eax | ||
;; movdqu 0x17(%rip), %xmm0 | ||
;; andl $0x1f, %eax | ||
;; vmovd %eax, %xmm15 | ||
;; vpsrad %xmm15, %xmm0, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 4b: ud2 | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %al, (%rcx) | ||
;; 51: addb %al, (%rax) | ||
;; 53: addb %al, (%rax) | ||
;; 55: addb %al, (%rax) | ||
;; 57: addb %al, (%rdx) | ||
;; 59: addb %al, (%rax) | ||
;; 5b: addb %al, (%rax) | ||
;; 5d: addb %al, (%rax) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i32x4.shr_u (v128.const i64x2 1 2) (i32.const 3)) | ||
) | ||
) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x4b | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movl $3, %eax | ||
;; movdqu 0x17(%rip), %xmm0 | ||
;; andl $0x1f, %eax | ||
;; vmovd %eax, %xmm15 | ||
;; vpsrld %xmm15, %xmm0, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 4b: ud2 | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %al, (%rcx) | ||
;; 51: addb %al, (%rax) | ||
;; 53: addb %al, (%rax) | ||
;; 55: addb %al, (%rax) | ||
;; 57: addb %al, (%rdx) | ||
;; 59: addb %al, (%rax) | ||
;; 5b: addb %al, (%rax) | ||
;; 5d: addb %al, (%rax) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
;;! target = "x86_64" | ||
;;! test = "winch" | ||
;;! flags = [ "-Ccranelift-has-avx" ] | ||
|
||
(module | ||
(func (result v128) | ||
(i64x2.neg (v128.const i64x2 0xFFFFFFFFFFFFFFFF 42) | ||
))) | ||
;; wasm[0]::function[0]: | ||
;; pushq %rbp | ||
;; movq %rsp, %rbp | ||
;; movq 8(%rdi), %r11 | ||
;; movq 0x10(%r11), %r11 | ||
;; addq $0x10, %r11 | ||
;; cmpq %rsp, %r11 | ||
;; ja 0x43 | ||
;; 1c: movq %rdi, %r14 | ||
;; subq $0x10, %rsp | ||
;; movq %rdi, 8(%rsp) | ||
;; movq %rsi, (%rsp) | ||
;; movdqu 0x1c(%rip), %xmm0 | ||
;; vpxor %xmm15, %xmm15, %xmm15 | ||
;; vpsubq %xmm0, %xmm15, %xmm0 | ||
;; addq $0x10, %rsp | ||
;; popq %rbp | ||
;; retq | ||
;; 43: ud2 | ||
;; 45: addb %al, (%rax) | ||
;; 47: addb %al, (%rax) | ||
;; 49: addb %al, (%rax) | ||
;; 4b: addb %al, (%rax) | ||
;; 4d: addb %al, (%rax) | ||
;; 4f: addb %bh, %bh |
Oops, something went wrong.