mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 14:19:31 +02:00
x:=x*1 created wrong code for m68k
This commit is contained in:
parent
ae59f56484
commit
4155f6ba35
12
tests/tbs/tb0431.pp
Normal file
12
tests/tbs/tb0431.pp
Normal file
@ -0,0 +1,12 @@
|
||||
{ the smallest falling test I ever found PM }
|
||||
{ the code generated a shll #0,%edx on i386
|
||||
which was bad but harmless...
|
||||
but on m68K it generated a asl.l #0,%d2
|
||||
which is not correct ... }
|
||||
|
||||
var
|
||||
x : longint;
|
||||
begin
|
||||
x:=5;
|
||||
x:=x*1;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user