yasm/libyasm/tests/value-shr-symexpr.asm
Peter Johnson dd7c64f68a Fix #178: Don't "distribute" shift right op.
This breaks horribly for things like (sym+511)>>9 in -f bin, as the result is
zero instead of something more useful.

Also don't check RHS for symbols; these will fall out later in the assembly
process if they cannot be simplified.

svn path=/trunk/yasm/; revision=2220
2009-07-24 19:01:35 +00:00

6 lines
82 B
NASM

dw foo
dw (foo+((1<<9)-1))
dw (foo+((1<<9)-1)) >> 9
foo:
dw (bar+foo)>>(0+1)
bar: