annotate test/CodeGen/Mips/hf1_body.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 1172e4bd9c6f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 \
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
2 ; RUN: -relocation-model=pic -no-integrated-as < %s | \
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
3 ; RUN: FileCheck %s -check-prefixes=ALL,GAS
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
4
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
5 ; The integrated assembler expands assembly macros before printing.
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
6 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 \
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
7 ; RUN: -relocation-model=pic < %s | \
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
8 ; RUN: FileCheck %s -check-prefixes=ALL,IAS
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 @x = external global float
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 ; Function Attrs: nounwind
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 define void @v_sf(float %p) #0 {
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 entry:
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 %p.addr = alloca float, align 4
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 store float %p, float* %p.addr, align 4
95
afa8332a0e37 LLVM 3.8
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 33
diff changeset
17 %0 = load float, float* %p.addr, align 4
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 store float %0, float* @x, align 4
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 ret void
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 }
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
21 ; ALL-LABEL: .ent __fn_stub_v_sf
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
22 ; ALL: .cpload $25
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
23 ; ALL: .set reorder
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
24 ; ALL: .reloc 0, R_MIPS_NONE, v_sf
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
25 ; GAS: la $25, $__fn_local_v_sf
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
26 ; IAS: lw $25, %got($$__fn_local_v_sf)($gp)
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
27 ; IAS: addiu $25, $25, %lo($$__fn_local_v_sf)
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
28 ; ALL: mfc1 $4, $f12
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
29 ; ALL: jr $25
1172e4bd9c6f update 4.0.0
mir3636
parents: 100
diff changeset
30 ; ALL: .end __fn_stub_v_sf