aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Target/README.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index e59c28697a..5c97b8984c 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -93,6 +93,14 @@ when it would be better to generate:
addq %rdi, %rbx
jno LBB0_2
+Apparently some version of GCC knows this. Here is a multiply idiom:
+
+unsigned int mul(unsigned int a,unsigned int b) {
+ if ((unsigned long long)a*b>0xffffffff)
+ exit(0);
+ return a*b;
+}
+
//===---------------------------------------------------------------------===//
Get the C front-end to expand hypot(x,y) -> llvm.sqrt(x*x+y*y) when errno and