summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-14 17:47:27 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-14 17:47:27 +0000
commitabc3d23ccb28bc686b182911a5f6a1ee2191abb9 (patch)
tree42a2f37d513c1775645c4f757b7067000eca5953 /llvm
parenteea37eed5d885dfdcf55c5582a85e79a35ef5c5b (diff)
downloadbcm5719-llvm-abc3d23ccb28bc686b182911a5f6a1ee2191abb9.tar.gz
bcm5719-llvm-abc3d23ccb28bc686b182911a5f6a1ee2191abb9.zip
Recognize sparc64 as an alias for sparcv9 triples.
Patch by Brad Smith! llvm-svn: 181808
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Support/Triple.cpp2
-rw-r--r--llvm/test/CodeGen/SPARC/64cond.ll4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 412e34ccc59..7c02ffb4ac7 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -239,7 +239,7 @@ static Triple::ArchType parseArch(StringRef ArchName) {
.Case("hexagon", Triple::hexagon)
.Case("s390x", Triple::systemz)
.Case("sparc", Triple::sparc)
- .Case("sparcv9", Triple::sparcv9)
+ .Cases("sparcv9", "sparc64", Triple::sparcv9)
.Case("tce", Triple::tce)
.Case("xcore", Triple::xcore)
.Case("nvptx", Triple::nvptx)
diff --git a/llvm/test/CodeGen/SPARC/64cond.ll b/llvm/test/CodeGen/SPARC/64cond.ll
index 6e66a262a4f..cf1a039af5f 100644
--- a/llvm/test/CodeGen/SPARC/64cond.ll
+++ b/llvm/test/CodeGen/SPARC/64cond.ll
@@ -1,5 +1,5 @@
-; RUN: llc < %s -march=sparcv9 | FileCheck %s
-; Testing 64-bit conditionals.
+; RUN: llc < %s -mtriple=sparc64-pc-openbsd | FileCheck %s
+; Testing 64-bit conditionals. The sparc64 triple is an alias for sparcv9.
; CHECK: cmpri
; CHECK: subcc %i1, 1
OpenPOWER on IntegriCloud