mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
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
This commit is contained in:
parent
a3bfdd47ab
commit
c9d3471d07
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user