[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / intel-syntax-unsized-memory.s
blobc938d76498eede444b86db0b73ebb263dd1c8092
1 // RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel %s | FileCheck %s
3 // Check that we deduce unsized memory operands in the general, unambiguous, case.
4 // We can't deduce xword memory operands, because there is no instruction
5 // unambiguously accessing 80-bit memory.
7 // CHECK: movb %al, (%rax)
8 mov [rax], al
10 // CHECK: movw %ax, (%rax)
11 mov [rax], ax
13 // CHECK: movl %eax, (%rax)
14 mov [rax], eax
16 // CHECK: movq %rax, (%rax)
17 mov [rax], rax
19 // CHECK: movdqa %xmm0, (%rax)
20 movdqa [rax], xmm0
22 // CHECK: vmovdqa %ymm0, (%rax)
23 vmovdqa [rax], ymm0
25 // CHECK: vaddps (%rax), %zmm1, %zmm1
26 vaddps zmm1, zmm1, [rax]
28 // CHECK: leal 1(%r15d), %r9d
29 lea r9d, [r15d+1]