Bug 141 – inline assembler treats "const float" and "float" differently

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-05-14T03:34:00Z
Last change time
2014-02-15T13:20:49Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2006-05-14T03:34:39Z
compiles: void foo(){ float f = 1.2f; asm{ fld f; } } fails to compile with "unknown operand for floating point instruction" void bar(){ const f = 1.2f; asm{ fld f; } } test cases: http://dstress.kuehne.cn/run/a/asm_fld_01_A.d http://dstress.kuehne.cn/run/a/asm_fld_02_A.d
Comment #1 by bugzilla — 2006-05-25T04:24:03Z
Fixed 0.158