2 Commits

Author SHA1 Message Date
qWord
7338d820d4 Fix broken HIGHWORD-operator
The HIGHWORD-Operator was implemented as right shift
by 16 of opnd1->value. This is wrong because:
  - the bits 32...63 are not zeroed
  - the compiler might do an arithmetic shift
    (typeof opnd1->value == int_32)

As fix, the result of the right shift is masked (bitwise AND)
and then assigned to the 64 bit value opnd1->llvalue.

Resolves: #152 resp. SF-BUG-298
2016-05-06 18:32:43 +02:00
Anton Kochkov
2d5853b0c2 Importing sources from JWasm212s_140105.zip 2014-06-18 19:16:56 +04:00