fix testcase. It's not safe to strictly evaluate a load that should be lazy.
authorChris Lattner <sabre@nondot.org>
Wed, 3 Jan 2007 19:12:31 +0000 (19:12 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 3 Jan 2007 19:12:31 +0000 (19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32842 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index ff77558f245be2115f8ebe3ca52336f83294ae87..7a7bab152be755378d0f35c8e16a7daa593fad6f 100644 (file)
@@ -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;
 }