summaryrefslogtreecommitdiff
path: root/tb/sim/mult.c
diff options
context:
space:
mode:
Diffstat (limited to 'tb/sim/mult.c')
-rw-r--r--tb/sim/mult.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tb/sim/mult.c b/tb/sim/mult.c
index 531a824..67158f0 100644
--- a/tb/sim/mult.c
+++ b/tb/sim/mult.c
@@ -1,4 +1,10 @@
-int reset(int a, int b, int c)
+long long __attribute__((noinline)) mla(long long a, long long b, long long c)
{
return a * b + c;
}
+
+long long reset(int a, int b, int c)
+{
+ long long la = a, lb = b;
+ return mla(la * la, la + 2 * lb, c);
+}