Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / arm-target-as-mthumb.s
blob4bfef8dbf235792af76c65b4eef97d1faa4fcff1
1 // Make sure -mthumb does not affect assembler triple, but -Wa,-mthumb or
2 // -Xassembler -mthumb does. Also check that -Wa,-mthumb or -Xassembler -mthumb
3 // does not affect non assembler files.
5 // RUN: %clang -target armv7a-linux-gnueabi -### -c -mthumb %s 2>&1 | \
6 // RUN: FileCheck -check-prefix=TRIPLE-ARM %s
7 // RUN: %clang -target armv7a-linux-gnueabi -### -c -Wa,-mthumb \
8 // RUN: %S/Inputs/wildcard1.c 2>&1 | FileCheck -check-prefix=TRIPLE-ARM %s
9 // RUN: %clang -target armv7a-linux-gnueabi -### -c -Wa,-mcpu=cortex-a8,-mthumb \
10 // RUN: %S/Inputs/wildcard1.c 2>&1 | FileCheck -check-prefix=TRIPLE-ARM %s
12 // TRIPLE-ARM: "-triple" "armv7-unknown-linux-gnueabi"
14 // RUN: %clang -target armv7a-linux-gnueabi -### -c -Wa,-mthumb %s 2>&1 | \
15 // RUN: FileCheck -check-prefix=TRIPLE-THUMB %s
16 // RUN: %clang -target armv7a-linux-gnueabi -### -c -Wa,-mcpu=cortex-a8,-mthumb %s 2>&1 | \
17 // RUN: FileCheck -check-prefix=TRIPLE-THUMB %s
18 // RUN: %clang -target armv7a-linux-gnueabi -### -c -Wa,-mcpu=cortex-a8 -Wa,-mthumb %s 2>&1 | \
19 // RUN: FileCheck -check-prefix=TRIPLE-THUMB %s
20 // RUN: %clang -target armv7a-linux-gnueabi -### -c -Xassembler -mthumb %s \
21 // RUN: 2>&1 | FileCheck -check-prefix=TRIPLE-THUMB %s
23 // TRIPLE-THUMB: "-triple" "thumbv7-unknown-linux-gnueabi"