projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* device/lib/medium/Makefile: added for new memory model medium
[fw/sdcc]
/
src
/
avr
/
gen.c
diff --git
a/src/avr/gen.c
b/src/avr/gen.c
index cde734ea6a7c045364837ed46dfe5e8f7fda913b..b06f5c8dd612a860acbaa7d03e9ce3561c0f1298 100644
(file)
--- a/
src/avr/gen.c
+++ b/
src/avr/gen.c
@@
-2679,7
+2679,7
@@
genBitWise (iCode * ic, iCode * ifx, int bitop)
(int) floatFromVal (AOP (right)->aopu.
aop_lit);
int p2 = powof2 (lit);
(int) floatFromVal (AOP (right)->aopu.
aop_lit);
int p2 = powof2 (lit);
- if (bitop == AVR_AND &&
p2) {
/* right side is a power of 2 */
+ if (bitop == AVR_AND &&
(p2 >= 0)) {
/* right side is a power of 2 */
l = aopGet (AOP (left), p2 / 8);
if (IC_TRUE (ifx)) {
emitcode ("sbrc", "%s,%d", l,
l = aopGet (AOP (left), p2 / 8);
if (IC_TRUE (ifx)) {
emitcode ("sbrc", "%s,%d", l,