mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Floating-point add, sub, and mul are now spelled fadd, fsub, and fmul,
respectively. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -484,7 +484,7 @@ ready> <b>4+5</b>;
|
||||
Read top-level expression:
|
||||
define double @""() {
|
||||
entry:
|
||||
%addtmp = add double 4.000000e+00, 5.000000e+00
|
||||
%addtmp = fadd double 4.000000e+00, 5.000000e+00
|
||||
ret double %addtmp
|
||||
}
|
||||
</pre>
|
||||
@@ -503,12 +503,12 @@ ready> <b>def foo(a b) a*a + 2*a*b + b*b;</b>
|
||||
Read function definition:
|
||||
define double @foo(double %a, double %b) {
|
||||
entry:
|
||||
%multmp = mul double %a, %a
|
||||
%multmp1 = mul double 2.000000e+00, %a
|
||||
%multmp2 = mul double %multmp1, %b
|
||||
%addtmp = add double %multmp, %multmp2
|
||||
%multmp3 = mul double %b, %b
|
||||
%addtmp4 = add double %addtmp, %multmp3
|
||||
%multmp = fmul double %a, %a
|
||||
%multmp1 = fmul double 2.000000e+00, %a
|
||||
%multmp2 = fmul double %multmp1, %b
|
||||
%addtmp = fadd double %multmp, %multmp2
|
||||
%multmp3 = fmul double %b, %b
|
||||
%addtmp4 = fadd double %addtmp, %multmp3
|
||||
ret double %addtmp4
|
||||
}
|
||||
</pre>
|
||||
@@ -525,7 +525,7 @@ define double @bar(double %a) {
|
||||
entry:
|
||||
%calltmp = call double @foo( double %a, double 4.000000e+00 )
|
||||
%calltmp1 = call double @bar( double 3.133700e+04 )
|
||||
%addtmp = add double %calltmp, %calltmp1
|
||||
%addtmp = fadd double %calltmp, %calltmp1
|
||||
ret double %addtmp
|
||||
}
|
||||
</pre>
|
||||
@@ -561,18 +561,18 @@ ready> <b>^D</b>
|
||||
|
||||
define double @""() {
|
||||
entry:
|
||||
%addtmp = add double 4.000000e+00, 5.000000e+00
|
||||
%addtmp = fadd double 4.000000e+00, 5.000000e+00
|
||||
ret double %addtmp
|
||||
}
|
||||
|
||||
define double @foo(double %a, double %b) {
|
||||
entry:
|
||||
%multmp = mul double %a, %a
|
||||
%multmp1 = mul double 2.000000e+00, %a
|
||||
%multmp2 = mul double %multmp1, %b
|
||||
%addtmp = add double %multmp, %multmp2
|
||||
%multmp3 = mul double %b, %b
|
||||
%addtmp4 = add double %addtmp, %multmp3
|
||||
%multmp = fmul double %a, %a
|
||||
%multmp1 = fmul double 2.000000e+00, %a
|
||||
%multmp2 = fmul double %multmp1, %b
|
||||
%addtmp = fadd double %multmp, %multmp2
|
||||
%multmp3 = fmul double %b, %b
|
||||
%addtmp4 = fadd double %addtmp, %multmp3
|
||||
ret double %addtmp4
|
||||
}
|
||||
|
||||
@@ -580,7 +580,7 @@ define double @bar(double %a) {
|
||||
entry:
|
||||
%calltmp = call double @foo( double %a, double 4.000000e+00 )
|
||||
%calltmp1 = call double @bar( double 3.133700e+04 )
|
||||
%addtmp = add double %calltmp, %calltmp1
|
||||
%addtmp = fadd double %calltmp, %calltmp1
|
||||
ret double %addtmp
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user