fpc/tests/tbs/tb0601.pp
svenbarth 2c93687c5a Fix an embarrasing error in m68k which fixes 60 tests.
m68k/cgcpu.pas, tcg68k.g_flags2reg:
  * don't sign extend the flag value which was stored to the register, but instead do a "AND 1" on it to reduce it to 1 bit; afterall Booleans in Pascal are either 0 or 1 and not 0 or $FF

+ added test

git-svn-id: trunk@25598 -
2013-09-28 20:07:57 +00:00

12 lines
138 B
ObjectPascal

program tb0601;
var
i1, i2, i3: LongWord;
begin
i1 := 42;
i2 := 84;
i3 := LongWord(i1 < i2);
if i3 <> 1 then
Halt(1);
end.