2010-08-12 02:55:42 +02:00
|
|
|
// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
|
2011-07-28 01:22:03 +02:00
|
|
|
// RUN: FileCheck --check-prefix=64 < %t.err %s
|
2010-08-12 02:55:42 +02:00
|
|
|
|
2011-07-28 01:22:03 +02:00
|
|
|
// RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t.err
|
|
|
|
// RUN: FileCheck --check-prefix=32 < %t.err %s
|
|
|
|
// rdar://8204588
|
|
|
|
|
|
|
|
// 64: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq')
|
2010-08-12 02:55:42 +02:00
|
|
|
cmp $0, 0(%eax)
|
2011-07-28 01:22:03 +02:00
|
|
|
|
|
|
|
// 32: error: register %rax is only available in 64-bit mode
|
|
|
|
addl $0, 0(%rax)
|
2011-10-12 23:38:39 +02:00
|
|
|
|
|
|
|
// 32: test.s:8:2: error: invalid instruction mnemonic 'movi'
|
|
|
|
|
|
|
|
# 8 "test.s"
|
|
|
|
movi $8,%eax
|
2011-10-16 06:47:35 +02:00
|
|
|
|
|
|
|
movl 0(%rax), 0(%edx) // error: invalid operand for instruction
|
|
|
|
|
2011-10-27 19:40:41 +02:00
|
|
|
// 32: error: instruction requires a CPU feature not currently enabled
|
|
|
|
sysexitq
|