Bug 842 – incorrect assembler output for asm{ fst x; }

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-01-13T06:47:00Z
Last change time
2015-06-09T05:14:41Z
Keywords
diagnostic
Assigned to
dvdfrdmn
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2007-01-13T06:47:08Z
# void main(){ # real x; # # asm{ # fst x; # } # } /tmp/ccRfLLTc.s: Assembler messages: /tmp/ccRfLLTc.s:20: Error: no such instruction: `fstt -24(%ebp)' test case: http://dstress.kuehne.cn/nocompile/a/asm_fst_02_F.d
Comment #1 by dvdfrdmn — 2007-09-23T19:05:00Z
That is not a valid instruction. GDC uses the system assembler for some operand checking so the output looks a little rough. DMD prints: x.d(5): bad type/size of operands 'fst'