[Mips] TargetStreamer ELF flag Support for default and commandline options.
[oota-llvm.git] / test / MC / Mips / elf_eflags.s
index f459689bb92bc8bea1f35552d76291b1c04db524..c2849a5efce76bcee285d9b1bb1d47ce9896dc4c 100644 (file)
@@ -1,15 +1,21 @@
-// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o -| llvm-readobj -h | FileCheck %s
-// The initial value will be set at 0x50001003 and
-// we will override that with the negation of 0x2 (option pic0
-// the addition of 0x4 (.abicalls)
+// RUN: llvm-mc -filetype=obj -triple mipsel-unknown-linux %s -o - | \
+// RUN: llvm-readobj -h | FileCheck %s
 
-        .mips_hack_elf_flags 0x50001003
+// From the commandline and defaults the following should be set:
+//   EF_MIPS_ARCH_32      (0x50000000)
+//   EF_MIPS_ABI_O32      (0x00001000)
+//   EF_MIPS_NOREORDER    (0x00000001)
+//   EF_MIPS_PIC          (0x00000002)
+
+// Inline directives should set or unset the following:
+//   EF_MIPS_CPIC         (0x00000004) : .abicalls
+//   EF_MIPS_ARCH_ASE_M16 (0x04000000) : .set mips16
+//   The negation of EF_MIPS_PIC : .option pic0
 
 // CHECK: Flags [ (0x54001005)
 
         .abicalls
 
         .option pic0
- // Set EF_MIPS_ARCH_ASE_M16 (0x04000000)
+
         .set mips16