llvm.org GIT mirror llvm / 925ad19
On this code, llc did not pass the sixth argument (%reg321) to printf. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3986 91177308-0d34-0410-b5e6-96231b3b80d8 Vikram S. Adve 18 years ago
2 changed file(s) with 82 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; On this code, llc did not pass the sixth argument (%reg321) to printf.
1 ; It passed the first five in %o0 - %o4, but never initialized %o5.
2 ; Fix in SparcInstrSelection.cpp:
3 ; 2030c2030
4 ; - if (i < target.getRegInfo().GetNumOfIntArgRegs())
5 ; + if (i <= target.getRegInfo().GetNumOfIntArgRegs())
6 ;
7
8 %.LC12 = internal global [44 x sbyte] c"\09\09M = %g, I = %g, V = %g\0A\09\09O = %g, E = %g\0A\0A\00" ; <[44 x sbyte]*>
9
10 implementation;
11
12 declare int %printf(sbyte*, ...)
13
14 declare double %opaque(double)
15
16 int %main(int %argc, sbyte** %argv) {
17
18 bb25:
19 %b = setle int %argc, 2
20 br bool %b, label %bb42, label %bb43
21
22 bb42:
23 %reg315 = call double (double)* %opaque(double 3.0)
24 %reg316 = call double (double)* %opaque(double 3.1)
25 %reg317 = call double (double)* %opaque(double 3.2)
26 %reg318 = call double (double)* %opaque(double 3.3)
27 %reg319 = call double (double)* %opaque(double 3.4)
28 br label %bb43
29
30 bb43:
31 %reg321 = phi double [ 2.000000e-01, %bb25 ], [ %reg315, %bb42 ]
32 %reg322 = phi double [ 6.000000e+00, %bb25 ], [ %reg316, %bb42 ]
33 %reg323 = phi double [ 0xBFF0000000000000, %bb25 ], [ %reg317, %bb42 ]
34 %reg324 = phi double [ 0xBFF0000000000000, %bb25 ], [ %reg318, %bb42 ]
35 %reg325 = phi double [ 1.000000e+00, %bb25 ], [ %reg319, %bb42 ]
36
37 %reg609 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([44 x sbyte]* %.LC12, long 0, long 0), double %reg325, double %reg324, double %reg323, double %reg322, double %reg321 )
38
39 ret int 0
40 }
0 ; On this code, llc did not pass the sixth argument (%reg321) to printf.
1 ; It passed the first five in %o0 - %o4, but never initialized %o5.
2 ; Fix in SparcInstrSelection.cpp:
3 ; 2030c2030
4 ; - if (i < target.getRegInfo().GetNumOfIntArgRegs())
5 ; + if (i <= target.getRegInfo().GetNumOfIntArgRegs())
6 ;
7
8 %.LC12 = internal global [44 x sbyte] c"\09\09M = %g, I = %g, V = %g\0A\09\09O = %g, E = %g\0A\0A\00" ; <[44 x sbyte]*>
9
10 implementation;
11
12 declare int %printf(sbyte*, ...)
13
14 declare double %opaque(double)
15
16 int %main(int %argc, sbyte** %argv) {
17
18 bb25:
19 %b = setle int %argc, 2
20 br bool %b, label %bb42, label %bb43
21
22 bb42:
23 %reg315 = call double (double)* %opaque(double 3.0)
24 %reg316 = call double (double)* %opaque(double 3.1)
25 %reg317 = call double (double)* %opaque(double 3.2)
26 %reg318 = call double (double)* %opaque(double 3.3)
27 %reg319 = call double (double)* %opaque(double 3.4)
28 br label %bb43
29
30 bb43:
31 %reg321 = phi double [ 2.000000e-01, %bb25 ], [ %reg315, %bb42 ]
32 %reg322 = phi double [ 6.000000e+00, %bb25 ], [ %reg316, %bb42 ]
33 %reg323 = phi double [ 0xBFF0000000000000, %bb25 ], [ %reg317, %bb42 ]
34 %reg324 = phi double [ 0xBFF0000000000000, %bb25 ], [ %reg318, %bb42 ]
35 %reg325 = phi double [ 1.000000e+00, %bb25 ], [ %reg319, %bb42 ]
36
37 %reg609 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([44 x sbyte]* %.LC12, long 0, long 0), double %reg325, double %reg324, double %reg323, double %reg322, double %reg321 )
38
39 ret int 0
40 }