2010-08-12 00:55:42 +00:00
|
|
|
// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err
|
2011-07-27 23:22:03 +00:00
|
|
|
// RUN: FileCheck --check-prefix=64 < %t.err %s
|
2010-08-12 00:55:42 +00:00
|
|
|
|
2011-07-27 23:22:03 +00: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 00:55:42 +00:00
|
|
|
cmp $0, 0(%eax)
|
2011-07-27 23:22:03 +00:00
|
|
|
|
|
|
|
// 32: error: register %rax is only available in 64-bit mode
|
|
|
|
addl $0, 0(%rax)
|