diff options
author | Jack Carter <jcarter@mips.com> | 2013-02-05 09:30:03 +0000 |
---|---|---|
committer | Jack Carter <jcarter@mips.com> | 2013-02-05 09:30:03 +0000 |
commit | 7304702ef99f98897d15baae0eede55f294bc602 (patch) | |
tree | 750793287d42bb3070187a37950417ce33c547a7 /test/MC/Mips | |
parent | 37ef65b9c1b93c386d13089d9ace6a1cc00e82dc (diff) | |
download | external_llvm-7304702ef99f98897d15baae0eede55f294bc602.zip external_llvm-7304702ef99f98897d15baae0eede55f294bc602.tar.gz external_llvm-7304702ef99f98897d15baae0eede55f294bc602.tar.bz2 |
This patch that sets the Mips ELF header flag for
MicroMips architectures.
Contributer: Zoran Jovanovic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips')
-rw-r--r-- | test/MC/Mips/elf_eflags.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/Mips/elf_eflags.ll b/test/MC/Mips/elf_eflags.ll index 4f29c72..bb7857d 100644 --- a/test/MC/Mips/elf_eflags.ll +++ b/test/MC/Mips/elf_eflags.ll @@ -17,6 +17,8 @@ ; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips32 %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=CHECK-BE32_PIC %s ; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips32r2 -relocation-model=static %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=CHECK-BE32R2 %s ; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips32r2 %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=CHECK-BE32R2_PIC %s +; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+micromips -relocation-model=static %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=CHECK-BE32R2-MICROMIPS %s +; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+micromips %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=CHECK-BE32R2-MICROMIPS_PIC %s ; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips64 -relocation-model=static %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=CHECK-BE64 %s ; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips64 %s -o - | elf-dump --dump-section-data | FileCheck -check-prefix=CHECK-BE64_PIC %s @@ -36,6 +38,12 @@ ; 32R2 bit with NO_REORDER and PIC ; CHECK-BE32R2_PIC: ('e_flags', 0x70000003) ; +; 32R2 bit MICROMIPS with NO_REORDER and static +; CHECK-BE32R2-MICROMIPS: ('e_flags', 0x72000001) +; +; 32R2 bit MICROMIPS with NO_REORDER and PIC +;CHECK-BE32R2-MICROMIPS_PIC: ('e_flags', 0x72000003) +; ; 64(R1) bit with NO_REORDER and static ; CHECK-BE64: ('e_flags', 0x60000001) ; |