Recognize sparc64 as an alias for sparcv9 triples.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 14 May 2013 17:47:27 +0000 (17:47 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 14 May 2013 17:47:27 +0000 (17:47 +0000)
Patch by Brad Smith!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181808 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Triple.cpp
test/CodeGen/SPARC/64cond.ll

index 412e34ccc596f17fbd89597b8041b94b42f379cd..7c02ffb4ac77641894cc6fc14265b0af94e9fba4 100644 (file)
@@ -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)
index 6e66a262a4f2a63a49000dd567595dac1d27bbce..cf1a039af5f624351fd8f79eef2d062b0cae31cf 100644 (file)
@@ -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