<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
There seems to be a bug in the codegenerator for armv6m thumb code.<br>
<br>
tst r0,#-2147483648 <br>
<br>
is not valid armv6m assembler code, documentation says that tst only
can use registers:<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="page" title="Page 68">
<div class="layoutArea">
<div class="column">
<p><span style="font-size: 8.000000pt; font-family:
'LucidaSansTypewriteX'">TST </span><span
style="font-size: 8.000000pt; font-family:
'LucidaSansTypewriteXOblique'">Rn</span><span
style="font-size: 8.000000pt; font-family:
'LucidaSansTypewriteX'">, </span><span style="font-size:
8.000000pt; font-family: 'LucidaSansTypewriteXOblique'">Rm
</span></p>
<p><span style="font-size: 10.000000pt; font-family:
'TimesNewRomanPSMT'">where:<br>
</span><span style="font-size: 8.000000pt; font-family:
'LucidaSansTypewriteXOblique'">Rn </span><span
style="font-size: 10.000000pt; font-family:
'TimesNewRomanPSMT'">Is the register holding the first
operand.
</span><span style="font-size: 8.000000pt; font-family:
'LucidaSansTypewriteXOblique'">Rm </span><span
style="font-size: 10.000000pt; font-family:
'TimesNewRomanPSMT'">The register to test against.
</span></p>
</div>
</div>
</div>
<title>Cortex-M0+ Devices Generic User Guide</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="page" title="Page 68">
<div class="layoutArea">
<div class="column">
<p><span style="font-size: 10.000000pt; font-family: 'Arial';
font-weight: 700">Restrictions
</span></p>
<p><span style="font-size: 10.000000pt; font-family:
'TimesNewRomanPSMT'">In these instructions, </span><span
style="font-size: 8.000000pt; font-family:
'LucidaSansTypewriteXOblique'">Rn </span><span
style="font-size: 10.000000pt; font-family:
'TimesNewRomanPSMT'">and </span><span style="font-size:
8.000000pt; font-family: 'LucidaSansTypewriteXOblique'">Rm
</span><span style="font-size: 10.000000pt; font-family:
'TimesNewRomanPSMT'">must only specify R0-R7.
</span></p>
</div>
</div>
</div>
<title>Cortex-M0+ Devices Generic User Guide</title>
<br>
Could somebody please fix?<br>
<br>
Thank you,<br>
<br>
Michael<br>
<br>
/Users/ring/devel/fpc-arm/compiler/ppcrossarm -Cparmv6m @rtl.cfg -Ur
-Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc
-Fi../arm -FE. -FU/Users/ring/devel/fpc-arm/rtl/units/arm-embedded
-darm -dRELEASE -O- -gw2 -Us -Sg system.pp<br>
/Users/ring/devel/fpc-arm/rtl/units/arm-embedded/system.s: Assembler
messages:<br>
/Users/ring/devel/fpc-arm/rtl/units/arm-embedded/system.s:342:
Error: unshifted register required -- `tst r0,#-2147483648'<br>
</body>
</html>