1 // RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
2 // RUN: FileCheck --check-prefix=64 < %t.err %s
4 // RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t.err
5 // RUN: FileCheck --check-prefix=32 < %t.err %s
8 // 64: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq')
11 // 32: error: register %rax is only available in 64-bit mode
14 // 32: test.s:8:2: error: invalid instruction mnemonic 'movi'
19 movl 0(%rax), 0(%edx) // error: invalid operand for instruction
21 // 32: error: instruction requires: 64-bit mode
25 // 64: error: expected scale expression
26 lea (%rsp, %rbp, $4), %rax
29 // 64: error: base register is 64-bit, but index register is not
30 movq (%rsi,%ecx),%xmm0
32 // 64: error: invalid 16-bit base register
35 // 32: error: scale factor in 16-bit address must be 1
38 // 32: error: invalid 16-bit base register
41 // 32: error: invalid 16-bit base/index register combination
44 // 32: error: 16-bit memory operand may not include only index register
47 // 32: error: invalid operand for instruction
50 // 32: error: invalid segment register
51 // 64: error: invalid segment register
54 // 32: error: invalid operand for instruction
55 // 64: error: invalid operand for instruction
56 cmpps $-129, %xmm0, %xmm0
58 // 32: error: invalid operand for instruction
59 // 64: error: invalid operand for instruction
60 cmppd $256, %xmm0, %xmm0
62 // 32: error: instruction requires: 64-bit mode
65 // 64: error: instruction requires: Not 64-bit mode