6bd690aad608200de8a8eb24b9ecb5ce27c97dc6
[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 $BB0_2:
6   .ent directives_test
7     .frame    $sp,0,$ra
8     .mask     0x00000000,0
9     .fmask    0x00000000,0
10 # CHECK:   b 1332               # encoding: [0x10,0x00,0x01,0x4d]
11 # CHECK:   j 1328               # encoding: [0x08,0x00,0x01,0x4c]
12 # CHECK:   jal 1328             # encoding: [0x0c,0x00,0x01,0x4c]
13
14     .set    noreorder
15      b 1332
16      j 1328
17      jal 1328
18     .set    nomacro
19     .set    noat
20 $JTI0_0:
21     .gpword    ($BB0_2)
22     .word 0x77fffffc
23 # CHECK: $JTI0_0:
24 # CHECK: .gpword ($BB0_2)
25 # CHECK-NEXT:     .4byte    2013265916
26     .set  at=$12
27     .set macro
28 # CHECK:   b 1332               # encoding: [0x10,0x00,0x01,0x4d]
29 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
30 # CHECK:   j 1328               # encoding: [0x08,0x00,0x01,0x4c]
31 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
32 # CHECK:   jal 1328             # encoding: [0x0c,0x00,0x01,0x4c]
33 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
34     .set reorder
35     b 1332
36     j 1328
37     jal 1328
38     .set  at=$a0
39     .set STORE_MASK,$t7
40     .set FPU_MASK,$f7
41     .set r3,$3
42     .set f6,$f6
43 # CHECK:    abs.s   $f6, $f7           # encoding: [0x46,0x00,0x39,0x85]
44 # CHECK:    and     $3, $15, $15       # encoding: [0x01,0xef,0x18,0x24]
45     abs.s  f6,FPU_MASK
46     and    r3,$t7,STORE_MASK