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

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 141 - inline assembler treats "const float" and "float" differently
Summary: inline assembler treats "const float" and "float" differently
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P3 minor
Assignee: Walter Bright
URL:
Keywords: rejects-valid
Depends on:
Blocks:
Reported: 2006年05月14日 03:34 UTC by Thomas Kühne
Modified: 2014年02月15日 13:20 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2006年05月14日 03:34:39 UTC
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 Walter Bright 2006年05月25日 04:24:03 UTC
Fixed 0.158


AltStyle によって変換されたページ (->オリジナル) /