aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-17 19:43:57 +0000
committerChris Lattner <sabre@nondot.org>2008-02-17 19:43:57 +0000
commit456012c72e8596e36596ab3798b1d271477955ef (patch)
tree1cd20dd54c6bb6f408d8941a743ea8ad8a63d3a9
parent5f137244c2908bc36d0d6ee651db42b62e843114 (diff)
move PR2053 to here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47237 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/README.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt
index 846d69403f..60163e2193 100644
--- a/lib/Target/X86/README.txt
+++ b/lib/Target/X86/README.txt
@@ -1516,3 +1516,15 @@ should generate:
lock ; mov %esp, %esp
//===---------------------------------------------------------------------===//
+
+The generated code on x86 for checking for signed overflow on a multiply the
+obvious way is much longer than it needs to be.
+
+int x(int a, int b) {
+ long long prod = (long long)a*b;
+ return prod > 0x7FFFFFFF || prod < (-0x7FFFFFFF-1);
+}
+
+See PR2053 for more details.
+
+//===---------------------------------------------------------------------===//