From: Chris Lattner Date: Wed, 3 Jan 2007 19:12:31 +0000 (+0000) Subject: fix testcase. It's not safe to strictly evaluate a load that should be lazy. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c9d3471d07ec220bd9458449149e33eb6d20b9c8;p=oota-llvm.git fix testcase. It's not safe to strictly evaluate a load that should be lazy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32842 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index ff77558f245..7a7bab152be 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -755,8 +755,9 @@ In c99 mode, the preprocessor doesn't like assembly comments like #TRUNCATE. //===---------------------------------------------------------------------===// This could be a single 16-bit load. + int f(char *p) { - if (p[0] == 1 && p[1] == 2) return 1; + if ((p[0] == 1) & (p[1] == 2)) return 1; return 0; }