File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
lib/Target/Mips/MCTargetDesc Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,9 @@ struct MipsABIFlagsSection {
139
139
140
140
template <class PredicateLibrary >
141
141
void setISAExtensionFromPredicates (const PredicateLibrary &P) {
142
- if (P.hasCnMips ())
142
+ if (P.hasCnMipsP ())
143
+ ISAExtension = Mips::AFL_EXT_OCTEONP;
144
+ else if (P.hasCnMips ())
143
145
ISAExtension = Mips::AFL_EXT_OCTEON;
144
146
else
145
147
ISAExtension = Mips::AFL_EXT_NONE;
Original file line number Diff line number Diff line change 17
17
# RUN: llvm-readobj --sections --section-data --section-relocations -A - | \
18
18
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-64R2,CHECK-OBJ-OCTEON
19
19
20
+ # RUN: llvm-mc -triple mips64-unknown-linux-gnu \
21
+ # RUN: -mcpu=octeon+ -filetype=obj -o - /dev/null \
22
+ # RUN: | llvm-readobj --sections --section-data --section-relocations -A - \
23
+ # RUN: | FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-64R2,CHECK-OBJ-OCTEONP
24
+
20
25
# CHECK-ASM: .module fp=xx
21
26
22
27
# Checking if the Mips.abiflags were correctly emitted.
43
48
# CHECK-OBJ-64R2-NEXT: ISA: MIPS64r2
44
49
# CHECK-OBJ-MIPS-NEXT: ISA Extension: None (0x0)
45
50
# CHECK-OBJ-OCTEON-NEXT: ISA Extension: Cavium Networks Octeon (0x5)
51
+ # CHECK-OBJ-OCTEONP-NEXT: ISA Extension: Cavium Networks OcteonP (0x3)
46
52
# CHECK-OBJ-NEXT: ASEs [ (0x0)
47
53
# CHECK-OBJ-NEXT: ]
48
54
# CHECK-OBJ-32R1-NEXT: FP ABI: Hard float (32-bit CPU, Any FPU) (0x5)
You can’t perform that action at this time.
0 commit comments