summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/invalid-target.ll
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-08-08 22:23:57 +0000
committerPetr Hosek <phosek@chromium.org>2018-08-08 22:23:57 +0000
commit7b2745447783faa5f94b6f31377fba9284b2e321 (patch)
tree2c8132ec5bd8ff83b9bd368fa91331e3f20ec8fd /llvm/test/CodeGen/ARM/invalid-target.ll
parentf8937c8406987341411b2399de91b718d546a230 (diff)
downloadbcm5719-llvm-7b2745447783faa5f94b6f31377fba9284b2e321.tar.gz
bcm5719-llvm-7b2745447783faa5f94b6f31377fba9284b2e321.zip
[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
Diffstat (limited to 'llvm/test/CodeGen/ARM/invalid-target.ll')
-rw-r--r--llvm/test/CodeGen/ARM/invalid-target.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/ARM/invalid-target.ll b/llvm/test/CodeGen/ARM/invalid-target.ll
index bb0ada4c2fd..d20bc738db2 100644
--- a/llvm/test/CodeGen/ARM/invalid-target.ll
+++ b/llvm/test/CodeGen/ARM/invalid-target.ll
@@ -22,11 +22,11 @@
; 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--linux-gnueabi'
-; ARMEBVINVALID: error: unable to get target for 'armebvinvalid--linux-gnueabi'
-; THUMBVINVALID: error: unable to get target for 'thumbvinvalid--linux-gnueabi'
-; THUMBEBVINVALID: error: unable to get target for 'thumbebvinvalid--linux-gnueabi'
-; THUMBV2: error: unable to get target for 'thumbv2--linux-gnueabi'
-; THUMBV3: error: unable to get target for 'thumbv3--linux-gnueabi'
-; ARM64INVALID: error: unable to get target for 'arm64invalid--linux-gnu'
-; AARCH64INVALID: error: unable to get target for 'aarch64invalid--linux-gnu'
+; 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'
OpenPOWER on IntegriCloud