1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/ARM/invalid-target.ll
Petr Hosek a98aa0866c [ADT] Normalize empty triple components
LLVM triple normalization is handling "unknown" and empty components
differently; for example given "x86_64-unknown-linux-gnu" and
"x86_64-linux-gnu" which should be equivalent, triple normalization
returns "x86_64-unknown-linux-gnu" and "x86_64--linux-gnu". autoconf's
config.sub returns "x86_64-unknown-linux-gnu" for both
"x86_64-linux-gnu" and "x86_64-unknown-linux-gnu". This changes the
triple normalization to behave the same way, replacing empty triple
components with "unknown".

This addresses PR37129.

Differential Revision: https://reviews.llvm.org/D50219

llvm-svn: 339294
2018-08-08 22:23:57 +00:00

33 lines
1.5 KiB
LLVM

; RUN: not llc -mtriple armvinvalid-linux-gnueabi %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=ARMVINVALID
; RUN: not llc -mtriple armebvinvalid-linux-gnueabi %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=ARMEBVINVALID
; RUN: not llc -mtriple thumbvinvalid-linux-gnueabi %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=THUMBVINVALID
; RUN: not llc -mtriple thumbebvinvalid-linux-gnueabi %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=THUMBEBVINVALID
; RUN: not llc -mtriple thumbv2-linux-gnueabi %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=THUMBV2
; RUN: not llc -mtriple thumbv3-linux-gnueabi %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=THUMBV3
; RUN: not llc -mtriple arm64invalid-linux-gnu %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=ARM64INVALID
; RUN: not llc -mtriple aarch64invalid-linux-gnu %s -o - 2>&1 | \
; RUN: FileCheck %s --check-prefix=AARCH64INVALID
; ARMVINVALID: error: unable to get target for 'armvinvalid-unknown-linux-gnueabi'
; ARMEBVINVALID: error: unable to get target for 'armebvinvalid-unknown-linux-gnueabi'
; THUMBVINVALID: error: unable to get target for 'thumbvinvalid-unknown-linux-gnueabi'
; THUMBEBVINVALID: error: unable to get target for 'thumbebvinvalid-unknown-linux-gnueabi'
; THUMBV2: error: unable to get target for 'thumbv2-unknown-linux-gnueabi'
; THUMBV3: error: unable to get target for 'thumbv3-unknown-linux-gnueabi'
; ARM64INVALID: error: unable to get target for 'arm64invalid-unknown-linux-gnu'
; AARCH64INVALID: error: unable to get target for 'aarch64invalid-unknown-linux-gnu'