{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/1944","repository_url":"https://api.github.com/repos/ldc-developers/ldc","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1944/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1944/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1944/events","html_url":"https://github.com/ldc-developers/ldc/issues/1944","id":197520835,"number":1944,"title":"Invalid assembly in 64-bit (regression) ","user":{"login":"p0nce","id":1067485,"avatar_url":"https://avatars.githubusercontent.com/u/1067485?v=3","gravatar_id":"","url":"https://api.github.com/users/p0nce","html_url":"https://github.com/p0nce","followers_url":"https://api.github.com/users/p0nce/followers","following_url":"https://api.github.com/users/p0nce/following{/other_user}","gists_url":"https://api.github.com/users/p0nce/gists{/gist_id}","starred_url":"https://api.github.com/users/p0nce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0nce/subscriptions","organizations_url":"https://api.github.com/users/p0nce/orgs","repos_url":"https://api.github.com/users/p0nce/repos","events_url":"https://api.github.com/users/p0nce/events{/privacy}","received_events_url":"https://api.github.com/users/p0nce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-26T00:49:30Z","updated_at":"2016-12-26T08:21:45Z","closed_at":null,"body":"LDC version: ldc2-1.1.0-beta6-win64-msvc\r\n\r\n**What I see:**\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1067485/21473472/291cdf88-cb0d-11e6-8568-9cab6656a139.png)\r\n\r\n\r\n\r\n**How to reproduce**\r\n`ldc2 -c iir.d -march x86-64`\r\nWorths otherwise in 32-bit.\r\n\r\n**Input program**\r\n```d\r\n\r\nstruct Vec(T, int N)\r\n{\r\n    T[N] v;    \r\n    ref T opIndex(size_t i)\r\n    {\r\n        return v[i];\r\n    }\r\n\r\n    T opIndexAssign(U : T)(U x, size_t i)\r\n    {\r\n        return v[i] = x;\r\n    }        \r\n}\r\n\r\n\r\nstruct IIRDelay\r\n{\r\n    alias Vec!(double, 2) delay_t;\r\n    alias Vec!(float, 5) coeff_t;\r\n\r\n    delay_t x;\r\n    delay_t y;\r\n\r\n    void nextBuffer(float* pointer0, float* pointer1, int num, coeff_t coeff)\r\n    {\r\n        double x0 = x[0],\r\n            x1 = x[1],\r\n            y0 = y[0],\r\n            y1 = y[1];\r\n\r\n        double a0 = coeff[0],\r\n            a1 = coeff[1],\r\n            a2 = coeff[2],\r\n            a3 = coeff[3],\r\n            a4 = coeff[4];\r\n\r\n        ubyte[16*2] storage;\r\n\r\n        asm nothrow @nogc\r\n        {\r\n            movups storage+16, XMM7;\r\n            movups XMM7, storage+16;\r\n        }\r\n\r\n        x[0] = x0;\r\n        x[1] = x1;\r\n        y[0] = y0;\r\n        y[1] = y1;\r\n    }\r\n}\r\n\r\n```\r\n\r\nThis used to work with LDC 1.0.0-beta2"},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/269182440","html_url":"https://github.com/ldc-developers/ldc/issues/1944#issuecomment-269182440","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1944","id":269182440,"user":{"login":"thewilsonator","id":6802489,"avatar_url":"https://avatars.githubusercontent.com/u/6802489?v=3","gravatar_id":"","url":"https://api.github.com/users/thewilsonator","html_url":"https://github.com/thewilsonator","followers_url":"https://api.github.com/users/thewilsonator/followers","following_url":"https://api.github.com/users/thewilsonator/following{/other_user}","gists_url":"https://api.github.com/users/thewilsonator/gists{/gist_id}","starred_url":"https://api.github.com/users/thewilsonator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewilsonator/subscriptions","organizations_url":"https://api.github.com/users/thewilsonator/orgs","repos_url":"https://api.github.com/users/thewilsonator/repos","events_url":"https://api.github.com/users/thewilsonator/events{/privacy}","received_events_url":"https://api.github.com/users/thewilsonator/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T08:21:45Z","updated_at":"2016-12-26T08:21:45Z","body":"Works for me on OSX with recent ldc, but -output-s gives me \r\n```\r\n\tmovups\t%xmm7, -152(%rbp)\r\n\tmovups\t-152(%rbp), %xmm7\r\n```\r\nas the inline assembly portion.\r\n\r\nCould you please try `ldc2 -c iir.d -march x86-64 -vv` and post the interesting bits (most likely the tail portion) of the output.\r\n\r\nI take it this _is_ the dustmited version?"}}
{"actor":{"display_login":"thewilsonator"}}