llvm.org GIT mirror llvm / 3f3a6f6
remove extra [] in stores git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31008 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 13 years ago
2 changed file(s) with 12 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
303303
304304 // Floating Point Store
305305 def FSTS : InstARM<(ops FPRegs:$src, op_addr_mode5:$addr),
306 "fsts $src, [$addr]",
306 "fsts $src, $addr",
307307 [(store FPRegs:$src, addr_mode5:$addr)]>;
308308
309309 def FSTD : InstARM<(ops DFPRegs:$src, op_addr_mode5:$addr),
310 "fstd $src, [$addr]",
310 "fstd $src, $addr",
311311 [(store DFPRegs:$src, addr_mode5:$addr)]>;
312312
313313 def : Pat<(ARMcall tglobaladdr:$dst),
0 ; RUN: llvm-as < %s | llc -march=arm &&
11 ; RUN: llvm-as < %s | llc -march=arm | grep flds | wc -l | grep 2 &&
2 ; RUN: llvm-as < %s | llc -march=arm | grep "flds.*\[" | wc -l | grep 1
2 ; RUN: llvm-as < %s | llc -march=arm | grep "flds.*\[" | wc -l | grep 1 &&
3 ; RUN: llvm-as < %s | llc -march=arm | grep "fsts.*\[" | wc -l | grep 1
34
4 float %g(float %a) {
5 float %f1(float %a) {
56 entry:
67 ret float 0.000000e+00
78 }
89
9 float %g(float* %v) {
10 float %f2(float* %v) {
1011 entry:
1112 %tmp = load float* %v
1213 ret float %tmp
1314 }
15
16 void %f3(float %a, float* %v) {
17 entry:
18 store float %a, float* %v
19 ret void
20 }