{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/3596","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/3596/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/3596/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/3596/events","html_url":"https://github.com/JuliaLang/julia/issues/3596","id":16233113,"number":3596,"title":"Int128 bit shift issue","user":{"login":"Keno","id":1291671,"avatar_url":"https://avatars.githubusercontent.com/u/1291671?v=3","gravatar_id":"","url":"https://api.github.com/users/Keno","html_url":"https://github.com/Keno","followers_url":"https://api.github.com/users/Keno/followers","following_url":"https://api.github.com/users/Keno/following{/other_user}","gists_url":"https://api.github.com/users/Keno/gists{/gist_id}","starred_url":"https://api.github.com/users/Keno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keno/subscriptions","organizations_url":"https://api.github.com/users/Keno/orgs","repos_url":"https://api.github.com/users/Keno/repos","events_url":"https://api.github.com/users/Keno/events{/privacy}","received_events_url":"https://api.github.com/users/Keno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/upstream","name":"upstream","color":"bbbbbb"}],"state":"open","locked":false,"assignee":{"login":"Keno","id":1291671,"avatar_url":"https://avatars.githubusercontent.com/u/1291671?v=3","gravatar_id":"","url":"https://api.github.com/users/Keno","html_url":"https://github.com/Keno","followers_url":"https://api.github.com/users/Keno/followers","following_url":"https://api.github.com/users/Keno/following{/other_user}","gists_url":"https://api.github.com/users/Keno/gists{/gist_id}","starred_url":"https://api.github.com/users/Keno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keno/subscriptions","organizations_url":"https://api.github.com/users/Keno/orgs","repos_url":"https://api.github.com/users/Keno/repos","events_url":"https://api.github.com/users/Keno/events{/privacy}","received_events_url":"https://api.github.com/users/Keno/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2013-07-01T20:19:01Z","updated_at":"2015-06-09T17:29:33Z","closed_at":null,"body":"From #3447 \r\n```julia\r\nint128(1)<<0\r\n```\r\nis broken. \r\n\r\nCorresponding LLVM IR:\r\n```llvm\r\ndefine i128 @julia_foo2599(i32) {\r\ntop:\r\n  %1 = shl i32 %0, 4\r\n  %2 = zext i32 %1 to i128\r\n  %3 = shl i128 1, %2\r\n  %4 = icmp ugt i32 %1, 127\r\n  %5 = select i1 %4, i128 0, i128 %3\r\n  ret i128 %5\r\n}\r\ndefine i32 @main() {\r\ntop:\r\n  %0 = call i128 @julia_foo2599(i32 0)\r\n  %1 = lshr i128 %0, 64\r\n  %2 = trunc i128 %1 to i32\r\n  ret i32 %2\r\n}\r\n```\r\nLLVM bug no: http://llvm.org/bugs/show_bug.cgi?id=16439"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/110440758","html_url":"https://github.com/JuliaLang/julia/issues/3596#issuecomment-110440758","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/3596","id":110440758,"user":{"login":"Keno","id":1291671,"avatar_url":"https://avatars.githubusercontent.com/u/1291671?v=3","gravatar_id":"","url":"https://api.github.com/users/Keno","html_url":"https://github.com/Keno","followers_url":"https://api.github.com/users/Keno/followers","following_url":"https://api.github.com/users/Keno/following{/other_user}","gists_url":"https://api.github.com/users/Keno/gists{/gist_id}","starred_url":"https://api.github.com/users/Keno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keno/subscriptions","organizations_url":"https://api.github.com/users/Keno/orgs","repos_url":"https://api.github.com/users/Keno/repos","events_url":"https://api.github.com/users/Keno/events{/privacy}","received_events_url":"https://api.github.com/users/Keno/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T17:29:33Z","updated_at":"2015-06-09T17:29:33Z","body":"This was committed upstream."}}