1# Check MOVDIR[I,64B] 64-bit instructions
2
3	.allow_index_reg
4	.text
5_start:
6	movdiri %rax, (%rcx)
7	movdir64b (%rcx),%rax
8	movdir64b (%ecx),%eax
9	movdir64b foo(%rip),%rcx
10	movdir64b foo(%eip),%ecx
11	movdir64b foo, %ecx
12	movdir64b 0x12345678, %ecx
13
14	.intel_syntax noprefix
15	movdiri [rcx],eax
16	movdiri [rcx],rax
17	movdiri dword ptr [rcx],eax
18	movdiri qword ptr [rcx],rax
19	movdir64b rax,[rcx]
20	movdir64b eax,[ecx]
21	movdir64b rcx,[rip+foo]
22	movdir64b ecx,[eip+foo]
23	movdir64b ecx,ds:foo
24	movdir64b ecx,ds:0x12345678
25