{"action":"created","issue":{"url":"https://api.github.com/repos/zig-lang/zig/issues/393","repository_url":"https://api.github.com/repos/zig-lang/zig","labels_url":"https://api.github.com/repos/zig-lang/zig/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/zig-lang/zig/issues/393/comments","events_url":"https://api.github.com/repos/zig-lang/zig/issues/393/events","html_url":"https://github.com/zig-lang/zig/issues/393","id":236421864,"number":393,"title":"compiler_rt issue during math library tests under release mode","user":{"login":"tiehuis","id":4605603,"avatar_url":"https://avatars3.githubusercontent.com/u/4605603?v=3","gravatar_id":"","url":"https://api.github.com/users/tiehuis","html_url":"https://github.com/tiehuis","followers_url":"https://api.github.com/users/tiehuis/followers","following_url":"https://api.github.com/users/tiehuis/following{/other_user}","gists_url":"https://api.github.com/users/tiehuis/gists{/gist_id}","starred_url":"https://api.github.com/users/tiehuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiehuis/subscriptions","organizations_url":"https://api.github.com/users/tiehuis/orgs","repos_url":"https://api.github.com/users/tiehuis/repos","events_url":"https://api.github.com/users/tiehuis/events{/privacy}","received_events_url":"https://api.github.com/users/tiehuis/received_events","type":"User","site_admin":false},"labels":[{"id":244683521,"url":"https://api.github.com/repos/zig-lang/zig/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/zig-lang/zig/milestones/1","html_url":"https://github.com/zig-lang/zig/milestone/1","labels_url":"https://api.github.com/repos/zig-lang/zig/milestones/1/labels","id":1513550,"number":1,"title":"0.1.0","description":"","creator":{"login":"andrewrk","id":106511,"avatar_url":"https://avatars3.githubusercontent.com/u/106511?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":174,"state":"open","created_at":"2016-01-18T21:44:08Z","updated_at":"2017-06-17T14:46:52Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-06-16T08:57:45Z","updated_at":"2017-06-17T16:50:01Z","closed_at":null,"body":"See the `math` branch.\r\n\r\nSome failures when running in release mode that need to be resolved before we can merge. The exact test cases that fail under release-fast are:\r\n\r\n```\r\npow32(37.45, 3.3)\r\nexp2f(0.2)\r\nexp2f(0.8923)\r\nexp2f(37.45)\r\nexp2d(0.2)\r\nexp2d(0.8923)\r\nsin32(37.45)\r\nsin32(89.123)\r\ncos32(89.123)\r\ntan32(1.5)\r\ntan32(37.45)\r\ntan32(89.123)\r\n```\r\n\r\nrelease-safe is also okay once commenting the following tests, so is likely the same.\r\n\r\n----\r\n\r\n```\r\n$ (math) zig test --release-safe pow.zig \r\nTest 1/132 pow...OK\r\nTest 2/132 pow32...reached unreachable code\r\n???:?:?: 0x65726e7520646568 in ??? (???)\r\n    ???\r\n\r\n\r\nTests failed. Use the following command to reproduce the failure:\r\n./test\r\n$ (math) zig test --release-fast pow.zig\r\nTest 1/132 pow...OK\r\nTest 2/132 pow32...reached unreachable code\r\n/usr/lib/zig/std/special/compiler_rt.zig:15:24: 0x0000000000000003 in ??? (compiler_rt)\r\n    return __udivmoddi4(a, b, null);\r\n                       ^\r\n???:?:?: 0x0000003436776f70 in ??? (???)\r\n    ???\r\n\r\n\r\nTests failed. Use the following command to reproduce the failure:\r\n./test\r\n```"},"comment":{"url":"https://api.github.com/repos/zig-lang/zig/issues/comments/309226370","html_url":"https://github.com/zig-lang/zig/issues/393#issuecomment-309226370","issue_url":"https://api.github.com/repos/zig-lang/zig/issues/393","id":309226370,"user":{"login":"andrewrk","id":106511,"avatar_url":"https://avatars3.githubusercontent.com/u/106511?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewrk","html_url":"https://github.com/andrewrk","followers_url":"https://api.github.com/users/andrewrk/followers","following_url":"https://api.github.com/users/andrewrk/following{/other_user}","gists_url":"https://api.github.com/users/andrewrk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrk/subscriptions","organizations_url":"https://api.github.com/users/andrewrk/orgs","repos_url":"https://api.github.com/users/andrewrk/repos","events_url":"https://api.github.com/users/andrewrk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrk/received_events","type":"User","site_admin":false},"created_at":"2017-06-17T16:50:01Z","updated_at":"2017-06-17T16:50:01Z","body":"If only 1 assert is present (even if it's the same one copy-pasted multiple times), LLVM evaluates the entire test at compile time and the test function has an empty body. When multiple different tests are present, then LLVM emits the pow32 function into the binary."}}
{"actor":{"display_login":"andrewrk"}}