[llvm] r181808 - Recognize sparc64 as an alias for sparcv9 triples.

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue May 14 10:47:28 PDT 2013


Author: stoklund
Date: Tue May 14 12:47:27 2013
New Revision: 181808

URL: http://llvm.org/viewvc/llvm-project?rev=181808&view=rev
Log:
Recognize sparc64 as an alias for sparcv9 triples.

Patch by Brad Smith!

Modified:
    llvm/trunk/lib/Support/Triple.cpp
    llvm/trunk/test/CodeGen/SPARC/64cond.ll

Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=181808&r1=181807&r2=181808&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Tue May 14 12:47:27 2013
@@ -239,7 +239,7 @@ static Triple::ArchType parseArch(String
     .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)

Modified: llvm/trunk/test/CodeGen/SPARC/64cond.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/64cond.ll?rev=181808&r1=181807&r2=181808&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/64cond.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/64cond.ll Tue May 14 12:47:27 2013
@@ -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





More information about the llvm-commits mailing list