fpc/tests/test/opt/tarmsa1.pp
Jonas Maebe 31a3122b91 * fixed LsrAnd2Lsr test by replacing the existing buggy check with comparing
the outcome of the original and the optimised sequence and seeing whether
    it's same + test

git-svn-id: trunk@25776 -
2013-10-14 12:49:28 +00:00

16 lines
154 B
ObjectPascal

{ %opt=-O2 }
procedure test;
var
a, b: cardinal;
begin
a:=$ffffffff;
b:=(a shr 24) and $3f;
if b<>$3f then
halt(1);
end;
begin
test;
end.