llvm.org GIT mirror llvm / 75e2ec6
Merging r244221: ------------------------------------------------------------------------ r244221 | dougk | 2015-08-06 11:44:12 -0400 (Thu, 06 Aug 2015) | 4 lines [SPARC] Don't compare arch name as a string, use the enum instead. Fixes PR22695 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@252393 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 3 years ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7676 bool parseDirectiveWord(unsigned Size, SMLoc L);
7777
7878 bool is64Bit() const {
79 return STI.getTargetTriple().getArchName().startswith("sparcv9");
79 return STI.getTargetTriple().getArch() == Triple::sparcv9;
8080 }
8181
8282 void expandSET(MCInst &Inst, SMLoc IDLoc,
0 ! RUN: not llvm-mc %s -arch=sparc -show-encoding 2>&1 | FileCheck %s --check-prefix=SPARC32
1 ! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s --check-prefix=SPARC64
1 ! RUN: llvm-mc %s -triple sparc64 -show-encoding | FileCheck %s --check-prefix=SPARC64
2 ! RUN: llvm-mc %s -triple sparcv9 -show-encoding | FileCheck %s --check-prefix=SPARCV9
23
34 ! SPARC32: error: unknown directive
45 ! SPARC32-NEXT: .xword 65536
78 ! SPARC64: .xword 65536
89 .xword 65536
910
11 ! SPARCV9: .xword 65536
12 .xword 65536