[Issue 6189] [64bit] optimizer: register content destroyed in function prolog

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 22 11:12:51 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6189



--- Comment #11 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-05-22 11:14:28 PDT ---
(In reply to comment #9)
> Reduced test case (compile with -m64 -O):
> 
> void bug6189(int half, int[2] pos, float[3] *pts, int unused)
> {
>     pos[0] += half;
> 
>     (*pts)[0] = pos[0];
>     (*pts)[1] = pos[1];
>     (*pts)[2] = half;
> }
> 
> void main()
> {
>     int[2] pos = [2,2];
>     float[3] pts = [0.0, 0.0, 0.0];
>     bug6189(0, pos, &pts, 0);
>     assert(pts[0] == 2);
> }

This is working on latest dmd2 (42d8967) and d1 (4351a58), but the testcase in
comment 8 still fails on both.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list