Fix ARM triple parsing
[oota-llvm.git] / test / CodeGen / ARM / invalid-target.ll
1 ; RUN: not llc -mtriple armvinvalid-linux-gnueabi %s -o - 2>&1 | \
2 ; RUN: FileCheck %s --check-prefix=ARMVINVALID
3
4 ; RUN: not llc -mtriple armebvinvalid-linux-gnueabi %s -o - 2>&1 | \
5 ; RUN: FileCheck %s --check-prefix=ARMEBVINVALID
6
7 ; RUN: not llc -mtriple thumbvinvalid-linux-gnueabi %s -o - 2>&1 | \
8 ; RUN: FileCheck %s --check-prefix=THUMBVINVALID
9
10 ; RUN: not llc -mtriple thumbebvinvalid-linux-gnueabi %s -o - 2>&1 | \
11 ; RUN: FileCheck %s --check-prefix=THUMBEBVINVALID
12
13 ; RUN: not llc -mtriple thumbv2-linux-gnueabi %s -o - 2>&1 | \
14 ; RUN: FileCheck %s --check-prefix=THUMBV2
15
16 ; RUN: not llc -mtriple thumbv3-linux-gnueabi %s -o - 2>&1 | \
17 ; RUN: FileCheck %s --check-prefix=THUMBV3
18
19 ; RUN: not llc -mtriple arm64invalid-linux-gnu %s -o - 2>&1 | \
20 ; RUN: FileCheck %s --check-prefix=ARM64INVALID
21
22 ; RUN: not llc -mtriple aarch64invalid-linux-gnu %s -o - 2>&1 | \
23 ; RUN: FileCheck %s --check-prefix=AARCH64INVALID
24
25 ; ARMVINVALID: error: unable to get target for 'armvinvalid--linux-gnueabi'
26 ; ARMEBVINVALID: error: unable to get target for 'armebvinvalid--linux-gnueabi'
27 ; THUMBVINVALID: error: unable to get target for 'thumbvinvalid--linux-gnueabi'
28 ; THUMBEBVINVALID: error: unable to get target for 'thumbebvinvalid--linux-gnueabi'
29 ; THUMBV2: error: unable to get target for 'thumbv2--linux-gnueabi'
30 ; THUMBV3: error: unable to get target for 'thumbv3--linux-gnueabi'
31 ; ARM64INVALID: error: unable to get target for 'arm64invalid--linux-gnu'
32 ; AARCH64INVALID: error: unable to get target for 'aarch64invalid--linux-gnu'