166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2> %t.err 266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// RUN: FileCheck --check-prefix=64 < %t.err %s 366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// RUN: not llvm-mc -triple i386-unknown-unknown %s 2> %t.err 566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// RUN: FileCheck --check-prefix=32 < %t.err %s 666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// rdar://8204588 766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// 64: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq') 966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancmp $0, 0(%eax) 1066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// 32: error: register %rax is only available in 64-bit mode 1266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaddl $0, 0(%rax) 1366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman// 32: test.s:8:2: error: invalid instruction mnemonic 'movi' 1566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 8 "test.s" 1766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman movi $8,%eax 18