summaryrefslogtreecommitdiffstats
path: root/contrib/compiler-rt/README.txt
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-12-31 19:01:48 +0000
committered <ed@FreeBSD.org>2011-12-31 19:01:48 +0000
commit0ece074de9d070fa87b7f58f9e96bce63db862d8 (patch)
tree21b838383a703c249dd4f0180c8566c40f70e0e3 /contrib/compiler-rt/README.txt
parent55bd70ed9a164b6b2d84037c8362ff3725ff294b (diff)
parent6a5f9bc9ae3205be8bb5570b86a509fcd01a9db6 (diff)
downloadFreeBSD-src-0ece074de9d070fa87b7f58f9e96bce63db862d8.zip
FreeBSD-src-0ece074de9d070fa87b7f58f9e96bce63db862d8.tar.gz
Upgrade libcompiler_rt to upstream revision 147390.
This version of libcompiler_rt adds support for __mulo[sdt]i4(), which computes a multiply and its overflow flag. There are also a lot of cleanup fixes to headers that don't really affect us. Updating to this revision should make it a bit easier to contribute changes back to the LLVM developers.
Diffstat (limited to 'contrib/compiler-rt/README.txt')
-rw-r--r--contrib/compiler-rt/README.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/compiler-rt/README.txt b/contrib/compiler-rt/README.txt
index cbeb10c..b37c0ae 100644
--- a/contrib/compiler-rt/README.txt
+++ b/contrib/compiler-rt/README.txt
@@ -106,6 +106,15 @@ si_int __mulvsi3(si_int a, si_int b); // a * b
di_int __mulvdi3(di_int a, di_int b); // a * b
ti_int __mulvti3(ti_int a, ti_int b); // a * b
+
+// Integral arithmetic which returns if overflow
+
+si_int __mulosi4(si_int a, si_int b, int* overflow); // a * b, overflow set to one if result not in signed range
+di_int __mulodi4(di_int a, di_int b, int* overflow); // a * b, overflow set to one if result not in signed range
+ti_int __muloti4(ti_int a, ti_int b, int* overflow); // a * b, overflow set to
+ one if result not in signed range
+
+
// Integral comparison: a < b -> 0
// a == b -> 1
// a > b -> 2
OpenPOWER on IntegriCloud