Skip to content

Commit

Permalink
Wtf mips
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Jan 2, 2024
1 parent eb17e42 commit e727169
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ impl TargetMatcher for target_lexicon::Triple {
} else if arch == &targ::Arch::x86_64 {
self.architecture == Architecture::X86_64
|| self.architecture == Architecture::X86_64h
} else if arch == &targ::Arch::mips32r6 {
matches!(
self.architecture,
Architecture::Mips32(
Mips32Architecture::Mipsisa32r6 | Mips32Architecture::Mipsisa32r6el
)
)
} else if arch == &targ::Arch::mips64r6 {
matches!(
self.architecture,
Architecture::Mips64(
Mips64Architecture::Mipsisa64r6 | Mips64Architecture::Mipsisa64r6el
)
)
} else {
match arch.0.parse::<Architecture>() {
Ok(a) => match (self.architecture, a) {
Expand Down

0 comments on commit e727169

Please sign in to comment.