{"action":"closed","issue":{"url":"https://api.github.com/repos/p12tic/libsimdpp/issues/66","repository_url":"https://api.github.com/repos/p12tic/libsimdpp","labels_url":"https://api.github.com/repos/p12tic/libsimdpp/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/p12tic/libsimdpp/issues/66/comments","events_url":"https://api.github.com/repos/p12tic/libsimdpp/issues/66/events","html_url":"https://github.com/p12tic/libsimdpp/issues/66","id":255799836,"number":66,"title":"math ops fail to do int/float conversion or generate an error on SSE2","user":{"login":"peabody-korg","id":1970611,"avatar_url":"https://avatars3.githubusercontent.com/u/1970611?v=4","gravatar_id":"","url":"https://api.github.com/users/peabody-korg","html_url":"https://github.com/peabody-korg","followers_url":"https://api.github.com/users/peabody-korg/followers","following_url":"https://api.github.com/users/peabody-korg/following{/other_user}","gists_url":"https://api.github.com/users/peabody-korg/gists{/gist_id}","starred_url":"https://api.github.com/users/peabody-korg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peabody-korg/subscriptions","organizations_url":"https://api.github.com/users/peabody-korg/orgs","repos_url":"https://api.github.com/users/peabody-korg/repos","events_url":"https://api.github.com/users/peabody-korg/events{/privacy}","received_events_url":"https://api.github.com/users/peabody-korg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-07T02:55:54Z","updated_at":"2017-10-08T19:32:49Z","closed_at":"2017-10-08T19:32:49Z","author_association":"NONE","body":"```\r\nfloat32x4 foo(float32x4 a, int32x4 b)\r\n{\r\n    return a+b;\r\n}\r\n```\r\nresults in a single addps instruction for SSE2, as if b were a float32.\r\n\r\n```\r\nfloat32x4 foo(float32x4 a, int32x4 b)\r\n{\r\n    return add(a,b);\r\n}\r\n```\r\nresults in a compilation error, which is resolved by explicitly converting b with to_float32(). Presumably use of + should fail in the same was as use of add() (or even better would be to automatically convert between float/int just scalar operations would)"}}
{"actor":{"display_login":"p12tic"}}