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 |
6 | |
7 | int f() { |
8 | // CHECK-INTEL: -x86-asm-syntax=intel |
9 | // CHECK-ATT: -x86-asm-syntax=att |
10 | // CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option 'masm=' |
11 | // CHECK-ARM: warning: argument unused during compilation: '-masm=intel' |
12 | // CHECK-CL: -x86-asm-syntax=intel |
13 | return 0; |
14 | } |
15 | |