From 256baa4b1fbccfea33409185da5db2919e3b90fd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 22 Jan 2009 07:16:03 +0000 Subject: [PATCH] add a note git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62760 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/README.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 756f38a6491..c679fd83c0d 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -1673,3 +1673,13 @@ while it could get this: sarl $5, %eax //===---------------------------------------------------------------------===// + +GCC PR31029: + +int test(int x) { return 1-x == x; } // --> return false +int test2(int x) { return 2-x == x; } // --> return x == 1 ? + +Always foldable for odd constants, what is the rule for even? + +//===---------------------------------------------------------------------===// + -- 2.34.1