File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lib/Target/Sparc/AsmParser Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class SparcAsmParser : public MCTargetAsmParser {
77
77
bool parseDirectiveWord (unsigned Size, SMLoc L);
78
78
79
79
bool is64Bit () const {
80
- return STI.getTargetTriple ().getArchName (). startswith ( " sparcv9" ) ;
80
+ return STI.getTargetTriple ().getArch () == Triple:: sparcv9;
81
81
}
82
82
83
83
void expandSET (MCInst &Inst, SMLoc IDLoc,
Original file line number Diff line number Diff line change 1
1
! RUN: not llvm-mc %s -arch = sparc -show-encoding 2 >&1 | FileCheck %s --check-prefix = SPARC32
2
- ! RUN: llvm-mc %s -arch = sparcv9 -show-encoding | FileCheck %s --check-prefix = SPARC64
2
+ ! RUN: llvm-mc %s -triple sparc64 -show-encoding | FileCheck %s --check-prefix = SPARC64
3
+ ! RUN: llvm-mc %s -triple sparcv9 -show-encoding | FileCheck %s --check-prefix = SPARCV9
3
4
4
5
! SPARC32: error: unknown directive
5
6
! SPARC32-NEXT: .xword 65536
8
9
! SPARC64: .xword 65536
9
10
.xword 65536
10
11
12
+ ! SPARCV9: .xword 65536
13
+ .xword 65536
You can’t perform that action at this time.
0 commit comments