[Mips] TargetStreamer ELF flag Support for default and commandline options.
[oota-llvm.git] / test / MC / Mips / elf_eflags.s
1 // RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | \
2 // RUN: llvm-readobj -h | FileCheck %s
3
4 // From the commandline and defaults the following should be set:
5 //   EF_MIPS_ARCH_32      (0x50000000)
6 //   EF_MIPS_ABI_O32      (0x00001000)
7 //   EF_MIPS_NOREORDER    (0x00000001)
8 //   EF_MIPS_PIC          (0x00000002)
9
10 // Inline directives should set or unset the following:
11 //   EF_MIPS_CPIC         (0x00000004) : .abicalls
12 //   EF_MIPS_ARCH_ASE_M16 (0x04000000) : .set mips16
13 //   The negation of EF_MIPS_PIC : .option pic0
14
15 // CHECK: Flags [ (0x54001005)
16
17         .abicalls
18
19         .option pic0
20
21         .set mips16