-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2186 from lioncash/or
OpcodeDispatcher: Handle VORPD/VORPS/VPOR
- Loading branch information
Showing
6 changed files
with
149 additions
and
8 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
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,45 @@ | ||
%ifdef CONFIG | ||
{ | ||
"HostFeatures": ["AVX"], | ||
"RegData": { | ||
"XMM0": ["0x4142434445464748", "0x5152535455565758", "0x6162636465666768", "0x7172737475767778"], | ||
"XMM1": ["0xCCCCCCCC75767778", "0x61626364DDDDDDDD", "0xEEEEEEEE55565758", "0x41424344FFFFFFFF"], | ||
"XMM2": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0xEFEEEFEE75767778", "0x71727374FFFFFFFF"], | ||
"XMM3": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0x0000000000000000", "0x0000000000000000"], | ||
"XMM4": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0xEFEEEFEE75767778", "0x71727374FFFFFFFF"], | ||
"XMM5": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0x0000000000000000", "0x0000000000000000"] | ||
}, | ||
"MemoryRegions": { | ||
"0x100000000": "4096" | ||
} | ||
} | ||
%endif | ||
|
||
lea rdx, [rel .data1] | ||
lea rbx, [rel .data2] | ||
|
||
vmovapd ymm0, [rdx] | ||
vmovapd ymm1, [rbx] | ||
|
||
; Register only | ||
vorpd ymm2, ymm0, ymm1 | ||
vorpd xmm3, xmm0, xmm1 | ||
|
||
; With memory operand | ||
vorpd ymm4, ymm0, [rbx] | ||
vorpd xmm5, xmm0, [rbx] | ||
|
||
hlt | ||
|
||
align 32 | ||
.data1: | ||
dq 0x4142434445464748 | ||
dq 0x5152535455565758 | ||
dq 0x6162636465666768 | ||
dq 0x7172737475767778 | ||
|
||
.data2: | ||
dq 0xCCCCCCCC75767778 | ||
dq 0x61626364DDDDDDDD | ||
dq 0xEEEEEEEE55565758 | ||
dq 0x41424344FFFFFFFF |
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,45 @@ | ||
%ifdef CONFIG | ||
{ | ||
"HostFeatures": ["AVX"], | ||
"RegData": { | ||
"XMM0": ["0x4142434445464748", "0x5152535455565758", "0x6162636465666768", "0x7172737475767778"], | ||
"XMM1": ["0xCCCCCCCC75767778", "0x61626364DDDDDDDD", "0xEEEEEEEE55565758", "0x41424344FFFFFFFF"], | ||
"XMM2": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0xEFEEEFEE75767778", "0x71727374FFFFFFFF"], | ||
"XMM3": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0x0000000000000000", "0x0000000000000000"], | ||
"XMM4": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0xEFEEEFEE75767778", "0x71727374FFFFFFFF"], | ||
"XMM5": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0x0000000000000000", "0x0000000000000000"] | ||
}, | ||
"MemoryRegions": { | ||
"0x100000000": "4096" | ||
} | ||
} | ||
%endif | ||
|
||
lea rdx, [rel .data1] | ||
lea rbx, [rel .data2] | ||
|
||
vmovapd ymm0, [rdx] | ||
vmovapd ymm1, [rbx] | ||
|
||
; Register only | ||
vorps ymm2, ymm0, ymm1 | ||
vorps xmm3, xmm0, xmm1 | ||
|
||
; With memory operand | ||
vorps ymm4, ymm0, [rbx] | ||
vorps xmm5, xmm0, [rbx] | ||
|
||
hlt | ||
|
||
align 32 | ||
.data1: | ||
dq 0x4142434445464748 | ||
dq 0x5152535455565758 | ||
dq 0x6162636465666768 | ||
dq 0x7172737475767778 | ||
|
||
.data2: | ||
dq 0xCCCCCCCC75767778 | ||
dq 0x61626364DDDDDDDD | ||
dq 0xEEEEEEEE55565758 | ||
dq 0x41424344FFFFFFFF |
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,45 @@ | ||
%ifdef CONFIG | ||
{ | ||
"HostFeatures": ["AVX"], | ||
"RegData": { | ||
"XMM0": ["0x4142434445464748", "0x5152535455565758", "0x6162636465666768", "0x7172737475767778"], | ||
"XMM1": ["0xCCCCCCCC75767778", "0x61626364DDDDDDDD", "0xEEEEEEEE55565758", "0x41424344FFFFFFFF"], | ||
"XMM2": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0xEFEEEFEE75767778", "0x71727374FFFFFFFF"], | ||
"XMM3": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0x0000000000000000", "0x0000000000000000"], | ||
"XMM4": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0xEFEEEFEE75767778", "0x71727374FFFFFFFF"], | ||
"XMM5": ["0xCDCECFCC75767778", "0x71727374DDDFDFDD", "0x0000000000000000", "0x0000000000000000"] | ||
}, | ||
"MemoryRegions": { | ||
"0x100000000": "4096" | ||
} | ||
} | ||
%endif | ||
|
||
lea rdx, [rel .data1] | ||
lea rbx, [rel .data2] | ||
|
||
vmovapd ymm0, [rdx] | ||
vmovapd ymm1, [rbx] | ||
|
||
; Register only | ||
vpor ymm2, ymm0, ymm1 | ||
vpor xmm3, xmm0, xmm1 | ||
|
||
; With memory operand | ||
vpor ymm4, ymm0, [rbx] | ||
vpor xmm5, xmm0, [rbx] | ||
|
||
hlt | ||
|
||
align 32 | ||
.data1: | ||
dq 0x4142434445464748 | ||
dq 0x5152535455565758 | ||
dq 0x6162636465666768 | ||
dq 0x7172737475767778 | ||
|
||
.data2: | ||
dq 0xCCCCCCCC75767778 | ||
dq 0x61626364DDDDDDDD | ||
dq 0xEEEEEEEE55565758 | ||
dq 0x41424344FFFFFFFF |