[mips] .ent and .end should also set the type and size of the symbol respectively.
[oota-llvm.git] / test / MC / Mips / directive-ent.s
1 # The effects of .ent on the .pdr section are tested in mips-pdr*.s. Test
2 # everything else here.
3 #
4 # RUN: llvm-mc -mcpu=mips32 -triple mips-unknown-unknown %s | \
5 # RUN:     FileCheck -check-prefix=ASM %s
6 # RUN: llvm-mc -filetype=obj -mcpu=mips32 -triple mips-unknown-unknown %s | \
7 # RUN:     llvm-readobj -symbols | \
8 # RUN:     FileCheck -check-prefix=OBJ -check-prefix=OBJ-32 %s
9 #
10 # RUN: llvm-mc -mcpu=mips32 -mattr=micromips -triple mips-unknown-unknown %s | \
11 # RUN:     FileCheck -check-prefix=ASM %s
12 # RUN: llvm-mc -filetype=obj -mcpu=mips32 -mattr=micromips \
13 # RUN:     -triple mips-unknown-unknown %s | \
14 # RUN:     llvm-readobj -symbols | \
15 # RUN:     FileCheck -check-prefix=OBJ -check-prefix=OBJ-MM %s
16 #
17     .ent a
18 a:
19
20 # ASM: .ent a
21 # ASM: a:
22
23 # OBJ:     Name: a
24 # OBJ:     Value: 0x0
25 # OBJ:     Size: 0
26 # OBJ:     Binding: Local
27 # OBJ:     Type: Function
28 # OBJ:     Other: 0
29 # OBJ:     Section: .text
30 # OBJ: }
31
32     .ent b
33 b:
34     nop
35     nop
36     .end b
37
38 # ASM: .ent b
39 # ASM: b:
40
41 # OBJ:     Name: b
42 # OBJ:     Value: 0x0
43 # OBJ-32:  Size: 8
44 # FIXME: microMIPS uses the 4-byte nop instead of the 2-byte nop.
45 # OBJ-MM:  Size: 8
46 # OBJ:     Binding: Local
47 # OBJ:     Type: Function
48 # OBJ:     Other: 0
49 # OBJ:     Section: .text
50 # OBJ: }