X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FREADME.txt;h=1f69ffb09c0a4a04298f9e84b91acd2b3c06b1ec;hb=689b86ed2e1f1daf9201f0ef83ff3bc1d5167232;hp=4cc95340890d4cf997d9a91192ef435e4aacb2d1;hpb=3ff25514ce24a521fc9524eefb257a1f5f262d84;p=oota-llvm.git diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 4cc95340890..1f69ffb09c0 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -2348,3 +2348,13 @@ which can do this in a single operation (instruction or libcall). It is probably best to do this in the code generator. //===---------------------------------------------------------------------===// + +unsigned foo(unsigned x, unsigned y) { return (x & y) == 0 || x == 0; } +should fold to (x & y) == 0. + +//===---------------------------------------------------------------------===// + +unsigned foo(unsigned x, unsigned y) { return x > y && x != 0; } +should fold to x > y. + +//===---------------------------------------------------------------------===//