]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/MC/Mips/mips_directives.s
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.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
23     .word 0x77fffffc
24 # CHECK: $JTI0_0:
25 # CHECK: .gpword ($BB0_2)
26 # CHECK:     .4byte    2013265916
27     .set  at=$12
28     .set macro
29 # CHECK:   b 1332               # encoding: [0x10,0x00,0x01,0x4d]
30 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
31 # CHECK:   j 1328               # encoding: [0x08,0x00,0x01,0x4c]
32 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
33 # CHECK:   jal 1328             # encoding: [0x0c,0x00,0x01,0x4c]
34 # CHECK:   nop                  # encoding: [0x00,0x00,0x00,0x00]
35     .set reorder
36     b 1332
37     j 1328
38     jal 1328
39     .set  at=$a0
40     .set STORE_MASK,$t7
41     .set FPU_MASK,$f7
42     .set r3,$3
43     .set f6,$f6
44 # CHECK:    abs.s   $f6, $f7           # encoding: [0x46,0x00,0x39,0x85]
45 # CHECK:    and     $3, $15, $15       # encoding: [0x01,0xef,0x18,0x24]
46     abs.s  f6,FPU_MASK
47     and    r3,$t7,STORE_MASK