[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / micromips-label-test.s
blob8224398e67235d2f2677f91aa9c569c6e8aa2290
1 # RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 \
2 # RUN: -mattr=+micromips -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s
3 .text
4 .set nomicromips
5 f:
6 nop
7 g:
8 .set micromips
9 nop
11 .word 0
13 .long 0
15 .hword 0
17 .2byte 0
19 .4byte 0
21 .8byte 0
23 nop
25 .set nomicromips
26 nop
27 # CHECK: Symbols [
28 # CHECK: Symbol {
29 # CHECK: Name: f
30 # CHECK: Binding: Local
31 # CHECK: Type: None
32 # CHECK: Other: 0
33 # CHECK: Section: .text
34 # CHECK: }
35 # CHECK: Symbol {
36 # CHECK: Name: g
37 # CHECK: Binding: Local
38 # CHECK: Type: None
39 # CHECK: Other [ (0x80)
40 # CHECK: STO_MIPS_MICROMIPS
41 # CHECK: ]
42 # CHECK: Section: .text
43 # CHECK: }
44 # CHECK: Symbol {
45 # CHECK: Name: h
46 # CHECK: Binding: Local
47 # CHECK: Type: None
48 # CHECK: Other: 0
49 # CHECK: Section: .text
50 # CHECK: }
51 # CHECK: Symbol {
52 # CHECK: Name: k
53 # CHECK: Binding: Local
54 # CHECK: Type: None
55 # CHECK: Other: 0
56 # CHECK: Section: .text
57 # CHECK: }
58 # CHECK: Symbol {
59 # CHECK: Name: l
60 # CHECK: Binding: Local
61 # CHECK: Type: None
62 # CHECK: Other: 0
63 # CHECK: Section: .text
64 # CHECK: }
65 # CHECK: Symbol {
66 # CHECK: Name: m
67 # CHECK: Binding: Local
68 # CHECK: Type: None
69 # CHECK: Other: 0
70 # CHECK: Section: .text
71 # CHECK: }
72 # CHECK: Symbol {
73 # CHECK: Name: n
74 # CHECK: Binding: Local
75 # CHECK: Type: None
76 # CHECK: Other: 0
77 # CHECK: Section: .text
78 # CHECK: }
79 # CHECK: Symbol {
80 # CHECK: Name: o
81 # CHECK: Binding: Local
82 # CHECK: Type: None
83 # CHECK: Other: 0
84 # CHECK: Section: .text
85 # CHECK: }
86 # CHECK: Symbol {
87 # CHECK-NEXT: Name: i
88 # CHECK: Binding: Local
89 # CHECK-NEXT: Type: None
90 # CHECK-NEXT: Other [ (0x80)
91 # CHECK-NEXT: STO_MIPS_MICROMIPS
92 # CHECK-NEXT: ]
93 # CHECK-NEXT: Section: .text
94 # CHECK-NEXT: }
95 # CHECK-NEXT: Symbol {
96 # CHECK-NEXT: Name: j
97 # CHECK: Binding: Local
98 # CHECK-NEXT: Type: None
99 # CHECK-NEXT: Other: 0
100 # CHECK-NEXT: Section: .text
101 # CHECK-NEXT: }
102 # CHECK: ]