mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-12 01:18:03 +00:00
[mips] Add initial (experimental) MIPS-IV support.
Summary: Adds the 'mips4' processor and a simple test of the ELF e_flags. Patch by David Chisnall His work was sponsored by: DARPA, AFRL I made one small change to the testcase so that it uses mips64-unknown-linux instead of mips4-unknown-linux. This patch indirectly adds FeatureCondMov to FeatureMips64. This is ok because it's supposed to be there anyway and it turns out that FeatureCondMov is not a predicate of any instructions at the moment (this is a bug that hasn't been noticed because there are no targets without the conditional move instructions yet). CC: theraven Differential Revision: http://llvm-reviews.chandlerc.com/D3244 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -156,6 +156,8 @@ MipsTargetELFStreamer::MipsTargetELFStreamer(MCStreamer &S,
|
||||
EFlags |= ELF::EF_MIPS_ARCH_64R2;
|
||||
else if (Features & Mips::FeatureMips64)
|
||||
EFlags |= ELF::EF_MIPS_ARCH_64;
|
||||
else if (Features & Mips::FeatureMips4)
|
||||
EFlags |= ELF::EF_MIPS_ARCH_4;
|
||||
else if (Features & Mips::FeatureMips32r2)
|
||||
EFlags |= ELF::EF_MIPS_ARCH_32R2;
|
||||
else if (Features & Mips::FeatureMips32)
|
||||
|
||||
Reference in New Issue
Block a user