[Mips] TargetStreamer Support for .set mips16.
[oota-llvm.git] / test / MC / Mips / mips_directives.s
1 # RUN: llvm-mc -show-encoding -triple mips-unknown-unknown %s | FileCheck %s
2 #
3 # CHECK:  .text
4 # CHECK:  $BB0_2:
5 # CHECK:  .abicalls
6 $BB0_2:
7   .ent directives_test
8      .abicalls
9     .frame    $sp,0,$ra
10     .mask     0x00000000,0
11     .fmask    0x00000000,0
12 # CHECK:   b 1332               # encoding: [0x10,0x00,0x01,0x4d]
13 # CHECK:   j 1328               # encoding: [0x08,0x00,0x01,0x4c]
14 # CHECK:   jal 1328             # encoding: [0x0c,0x00,0x01,0x4c]
15
16     .set    noreorder
17      b 1332
18      j 1328
19      jal 1328
20     .set    nomacro
21     .set    noat
22 $JTI0_0:
23     .gpword    ($BB0_2)
24
25     .word 0x77fffffc
26 # CHECK: $JTI0_0:
27 # CHECK: .gpword ($BB0_2)
28 # CHECK:     .4byte    2013265916
29     .set  at=$12
30     .set macro
31 # CHECK:   b 1332               # encoding: [0x10,0x00,0x01,0x4d]
32 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
33 # CHECK:   j 1328               # encoding: [0x08,0x00,0x01,0x4c]
34 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
35 # CHECK:   jal 1328             # encoding: [0x0c,0x00,0x01,0x4c]
36 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
37     .set reorder
38 $BB0_4:
39     b 1332
40     j 1328
41     jal 1328
42     .set  at=$a0
43     .set STORE_MASK,$t7
44     .set FPU_MASK,$f7
45     .set  $tmp7, $BB0_4-$BB0_2
46     .set f6,$f6
47 # CHECK:    abs.s   $f6, $f7           # encoding: [0x46,0x00,0x39,0x85]
48 # CHECK:    lui     $1, %hi($tmp7)     # encoding: [0x3c'A',0x01'A',0x00,0x00]
49 # CHECK:                               #   fixup A - offset: 0, value: ($tmp7)@ABS_HI, kind: fixup_Mips_HI16
50     abs.s  f6,FPU_MASK
51     lui $1, %hi($tmp7)