Eric Christopher | 254b263 | 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 | 8277d9c | 2014-05-13 11:11:24 +0000 | [diff] [blame] | 5 | |
| 6 | int f() { |
Eric Christopher | 254b263 | 2014-05-13 20:16:43 +0000 | [diff] [blame] | 7 | // CHECK-INTEL: -x86-asm-syntax=intel |
| 8 | // CHECK-ATT: -x86-asm-syntax=att |
Nico Weber | 8277d9c | 2014-05-13 11:11:24 +0000 | [diff] [blame] | 9 | // CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option 'masm=' |
| 10 | // CHECK-ARM: warning: argument unused during compilation: '-masm=intel' |
| 11 | return 0; |
| 12 | } |