Eric Christopher | 83fcaa8 | 2014-05-13 20:16:43 +0000 | [diff] [blame] | 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 |
Nico Weber | 2c6fe50 | 2018-01-17 16:03:08 +0000 | [diff] [blame] | 5 | // RUN: %clang_cl --target=x86_64 /FA -### -- %s 2>&1 | FileCheck --check-prefix=CHECK-CL %s |
Nico Weber | ad8e36c | 2014-05-13 11:11:24 +0000 | [diff] [blame] | 6 | |
| 7 | int f() { |
Eric Christopher | 83fcaa8 | 2014-05-13 20:16:43 +0000 | [diff] [blame] | 8 | // CHECK-INTEL: -x86-asm-syntax=intel |
| 9 | // CHECK-ATT: -x86-asm-syntax=att |
Nico Weber | ad8e36c | 2014-05-13 11:11:24 +0000 | [diff] [blame] | 10 | // CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option 'masm=' |
| 11 | // CHECK-ARM: warning: argument unused during compilation: '-masm=intel' |
Nico Weber | e3712cf | 2018-01-17 13:34:20 +0000 | [diff] [blame] | 12 | // CHECK-CL: -x86-asm-syntax=intel |
Nico Weber | ad8e36c | 2014-05-13 11:11:24 +0000 | [diff] [blame] | 13 | return 0; |
| 14 | } |