1 // RUN: %clang -target i386-unknown-linux -masm=intel -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-INTEL %s
2 // RUN: %clang -target i386-unknown-linux -masm=att -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-ATT %s
3 // RUN: %clang -target i386-unknown-linux -S -masm=somerequired %s -### 2>&1 | FileCheck --check-prefix=CHECK-SOMEREQUIRED %s
4 // RUN: %clang -target arm-unknown-eabi -S -masm=intel %s -### 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
5 // RUN: %clang_cl --target=x86_64 /FA -### -- %s 2>&1 | FileCheck --check-prefix=CHECK-CL %s
8 // CHECK-INTEL: -x86-asm-syntax=intel
9 // CHECK-INTEL: -inline-asm=intel
10 // CHECK-ATT: -x86-asm-syntax=att
11 // CHECK-ATT: -inline-asm=att
12 // CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option '-masm='
13 // CHECK-ARM: warning: argument unused during compilation: '-masm=intel'
14 // CHECK-CL: -x86-asm-syntax=intel
15 // CHECK-CL-NOT: -inline-asm=intel