1*9880d681SAndroid Build Coastguard Worker// RUN: not llvm-mc -triple i686-unknown-unknown -x86-asm-syntax=att %s -o /dev/null 2>&1 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker// This tests weird forms of Intel and AT&T syntax that gas accepts that we 4*9880d681SAndroid Build Coastguard Worker// don't. The [no]prefix operand of the syntax directive indicates whether 5*9880d681SAndroid Build Coastguard Worker// registers need a '%' prefix. 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker.intel_syntax prefix 8*9880d681SAndroid Build Coastguard Worker// CHECK: error: '.intel_syntax prefix' is not supported: registers must not have a '%' prefix in .intel_syntax 9*9880d681SAndroid Build Coastguard Worker_test2: 10*9880d681SAndroid Build Coastguard Worker mov DWORD PTR [%esp - 4], 257 11*9880d681SAndroid Build Coastguard Worker.att_syntax noprefix 12*9880d681SAndroid Build Coastguard Worker// CHECK: error: '.att_syntax noprefix' is not supported: registers must have a '%' prefix in .att_syntax 13*9880d681SAndroid Build Coastguard Worker movl $257, -4(esp) 14