blob: e9e4422aedf5dbd5b7d8cc4f9e3406953bee1377 [file] [log] [blame]
Nico Weberad8e36c2014-05-13 11:11:24 +00001// RUN: %clang -target i386-unknown-linux -masm=intel %s -S -o - | FileCheck --check-prefix=CHECK-INTEL %s
2// RUN: %clang -target i386-unknown-linux -masm=att %s -S -o - | FileCheck --check-prefix=CHECK-ATT %s
3// RUN: not %clang -target i386-unknown-linux -masm=somerequired %s -S -o - 2>&1 | FileCheck --check-prefix=CHECK-SOMEREQUIRED %s
4// RUN: %clang -target arm-unknown-eabi -masm=intel %s -S -o - 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
5
6int f() {
7// CHECK-ATT: movl $0, %eax
8// CHECK-INTEL: mov eax, 0
9// CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option 'masm='
10// CHECK-ARM: warning: argument unused during compilation: '-masm=intel'
11 return 0;
12}