MPX: Add test cases for MPX
[nasm/avx512.git] / test / pinsr64.asm
blob8eedfddc5c0e316b85e3415908090ca1f688e690
1 ;Testname=test; Arguments=-O0 -fbin -opinsr64.bin; Files=stdout stderr pinsr64.bin
2 bits 64
4 pinsrw mm0,eax,0
5 pinsrw mm1,si,0
6 pinsrw mm2,[rcx],0
7 pinsrw mm3,word [rcx],0
9 pinsrb xmm0,eax,0
10 pinsrb xmm1,sil,0
11 ; pinsrb xmm1,bh,0
12 pinsrb xmm2,[rcx],0
13 pinsrb xmm3,byte [rcx],0
15 pinsrw xmm0,eax,0
16 pinsrw xmm1,si,0
17 pinsrw xmm2,[rcx],0
18 pinsrw xmm3,word [rcx],0
20 pinsrd xmm0,eax,0
21 pinsrd xmm1,esi,0
22 pinsrd xmm2,[rcx],0
23 pinsrd xmm3,dword [rcx],0
25 pinsrq xmm0,rax,0
26 pinsrq xmm1,rsi,0
27 pinsrq xmm2,[rcx],0
28 pinsrq xmm3,qword [rcx],0
30 vpinsrb xmm0,eax,0
31 vpinsrb xmm1,sil,0
32 vpinsrb xmm2,[rcx],0
33 vpinsrb xmm3,byte [rcx],0
35 vpinsrw xmm0,eax,0
36 vpinsrw xmm1,si,0
37 vpinsrw xmm2,[rcx],0
38 vpinsrw xmm3,word [rcx],0
40 vpinsrd xmm0,eax,0
41 vpinsrd xmm1,esi,0
42 vpinsrd xmm2,[rcx],0
43 vpinsrd xmm3,dword [rcx],0
45 vpinsrq xmm0,rax,0
46 vpinsrq xmm1,rsi,0
47 vpinsrq xmm2,[rcx],0
48 vpinsrq xmm3,qword [rcx],0
50 vpinsrb xmm4,xmm0,eax,0
51 vpinsrb xmm5,xmm1,sil,0
52 vpinsrb xmm6,xmm2,[rcx],0
53 vpinsrb xmm7,xmm3,byte [rcx],0
55 vpinsrw xmm4,xmm0,eax,0
56 vpinsrw xmm5,xmm1,si,0
57 vpinsrw xmm6,xmm2,[rcx],0
58 vpinsrw xmm7,xmm3,word [rcx],0
60 vpinsrd xmm4,xmm0,eax,0
61 vpinsrd xmm5,xmm1,esi,0
62 vpinsrd xmm6,xmm2,[rcx],0
63 vpinsrd xmm7,xmm3,dword [rcx],0
65 vpinsrq xmm4,xmm0,rax,0
66 vpinsrq xmm5,xmm1,rsi,0
67 vpinsrq xmm6,xmm2,[rcx],0
68 vpinsrq xmm7,xmm3,qword [rdx],0