{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/4659","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/4659/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/4659/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/4659/events","html_url":"https://github.com/dotnet/coreclr/issues/4659","id":151776133,"number":4659,"title":"RyuJIT x86: Silent bad codegen with i8_cs","user":{"login":"BruceForstall","id":10901265,"avatar_url":"https://avatars.githubusercontent.com/u/10901265?v=3","gravatar_id":"","url":"https://api.github.com/users/BruceForstall","html_url":"https://github.com/BruceForstall","followers_url":"https://api.github.com/users/BruceForstall/followers","following_url":"https://api.github.com/users/BruceForstall/following{/other_user}","gists_url":"https://api.github.com/users/BruceForstall/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceForstall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceForstall/subscriptions","organizations_url":"https://api.github.com/users/BruceForstall/orgs","repos_url":"https://api.github.com/users/BruceForstall/repos","events_url":"https://api.github.com/users/BruceForstall/events{/privacy}","received_events_url":"https://api.github.com/users/BruceForstall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/coreclr/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/coreclr/labels/CodeGen","name":"CodeGen","color":"d4c5f9"},{"url":"https://api.github.com/repos/dotnet/coreclr/labels/x86","name":"x86","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"BruceForstall","id":10901265,"avatar_url":"https://avatars.githubusercontent.com/u/10901265?v=3","gravatar_id":"","url":"https://api.github.com/users/BruceForstall","html_url":"https://github.com/BruceForstall","followers_url":"https://api.github.com/users/BruceForstall/followers","following_url":"https://api.github.com/users/BruceForstall/following{/other_user}","gists_url":"https://api.github.com/users/BruceForstall/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceForstall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceForstall/subscriptions","organizations_url":"https://api.github.com/users/BruceForstall/orgs","repos_url":"https://api.github.com/users/BruceForstall/repos","events_url":"https://api.github.com/users/BruceForstall/events{/privacy}","received_events_url":"https://api.github.com/users/BruceForstall/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/coreclr/milestones/5","html_url":"https://github.com/dotnet/coreclr/milestones/Future","labels_url":"https://api.github.com/repos/dotnet/coreclr/milestones/5/labels","id":1328081,"number":5,"title":"Future","description":"Milestone tracking the issues that have been triaged for after 1.0.0-rtm","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":446,"closed_issues":138,"state":"open","created_at":"2015-09-29T00:26:07Z","updated_at":"2016-05-06T21:17:50Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-04-29T01:12:25Z","updated_at":"2016-05-07T15:11:45Z","closed_at":"2016-05-05T16:03:21Z","body":"JIT\\Methodical\\AsgOp\\i8\\i8_cs_d\\i8_cs_d.cmd\r\nJIT\\Methodical\\AsgOp\\i8\\i8_cs_do\\i8_cs_do.cmd\r\nJIT\\Methodical\\AsgOp\\i8\\i8_cs_r\\i8_cs_r.cmd\r\nJIT\\Methodical\\AsgOp\\i8\\i8_cs_ro\\i8_cs_ro.cmd\r\n\r\ntest output:\r\n\r\nInitial parameters: x is -10 and y is 4.\r\nf11     x += x - y failed.\r\nx: -8589934616,         expected: -24\r\n\r\nInitial parameters: x is -10 and y is 4.\r\nf18     x += x ^ y failed.\r\nx: -4294967320,         expected: -24\r\n\r\nInitial parameters: x is -10 and y is 4.\r\nf19     x += x | y failed.\r\nx: -4294967316,         expected: -20\r\nExpected: 100\r\nActual: 1"},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/217643379","html_url":"https://github.com/dotnet/coreclr/issues/4659#issuecomment-217643379","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/4659","id":217643379,"user":{"login":"BruceForstall","id":10901265,"avatar_url":"https://avatars.githubusercontent.com/u/10901265?v=3","gravatar_id":"","url":"https://api.github.com/users/BruceForstall","html_url":"https://github.com/BruceForstall","followers_url":"https://api.github.com/users/BruceForstall/followers","following_url":"https://api.github.com/users/BruceForstall/following{/other_user}","gists_url":"https://api.github.com/users/BruceForstall/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceForstall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceForstall/subscriptions","organizations_url":"https://api.github.com/users/BruceForstall/orgs","repos_url":"https://api.github.com/users/BruceForstall/repos","events_url":"https://api.github.com/users/BruceForstall/events{/privacy}","received_events_url":"https://api.github.com/users/BruceForstall/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T15:11:45Z","updated_at":"2016-05-07T15:11:45Z","body":"@mikedn Excellent! I was planning on implementing this when I had the chance. We talked about this implementation option internally, and were worried about both CQ and complexity of the IR (the dumps with lots of embedded statements are going to be very hard to read/understand). Perhaps these operations are handling \"contained\" memory operands (in your examples, everything is in registers). Or perhaps LSRA will require some preferencing tweaks.\r\n\r\n/cc @CarolEidt @sivarv @RussKeldorph @adiaaida "}}