Home | History | Annotate | Download | only in X86
      1 // RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
      2 // RUN: FileCheck --check-prefix=64 < %t.err %s
      3 
      4 // RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t.err
      5 // RUN: FileCheck --check-prefix=32 < %t.err %s
      6 // rdar://8204588
      7 
      8 // 64: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq')
      9 cmp $0, 0(%eax)
     10 
     11 // 32: error: register %rax is only available in 64-bit mode
     12 addl $0, 0(%rax)
     13 
     14 // 32: test.s:8:2: error: invalid instruction mnemonic 'movi'
     15 
     16 # 8 "test.s"
     17  movi $8,%eax
     18 
     19 movl 0(%rax), 0(%edx)  // error: invalid operand for instruction
     20 
     21 // 32: error: instruction requires a CPU feature not currently enabled
     22 sysexitq
     23 
     24 // rdar://10710167
     25 // 64: error: expected scale expression
     26 lea (%rsp, %rbp, $4), %rax
     27 
     28 // rdar://10423777
     29 // 64: error: index register is 32-bit, but base register is 64-bit
     30 movq (%rsi,%ecx),%xmm0
     31