]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/i386/x86-64-movdir.s
x86-64: limit breakage from gcc movdir64b et al workaround
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / i386 / x86-64-movdir.s
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