{"action":"created","issue":{"url":"https://api.github.com/repos/HSAFoundation/CLOC/issues/15","repository_url":"https://api.github.com/repos/HSAFoundation/CLOC","labels_url":"https://api.github.com/repos/HSAFoundation/CLOC/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/HSAFoundation/CLOC/issues/15/comments","events_url":"https://api.github.com/repos/HSAFoundation/CLOC/issues/15/events","html_url":"https://github.com/HSAFoundation/CLOC/issues/15","id":153898170,"number":15,"title":"CLOC generates GCN instructions, HSAILasm cannot assemble them","user":{"login":"sunyifan112358","id":2524066,"avatar_url":"https://avatars.githubusercontent.com/u/2524066?v=3","gravatar_id":"","url":"https://api.github.com/users/sunyifan112358","html_url":"https://github.com/sunyifan112358","followers_url":"https://api.github.com/users/sunyifan112358/followers","following_url":"https://api.github.com/users/sunyifan112358/following{/other_user}","gists_url":"https://api.github.com/users/sunyifan112358/gists{/gist_id}","starred_url":"https://api.github.com/users/sunyifan112358/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunyifan112358/subscriptions","organizations_url":"https://api.github.com/users/sunyifan112358/orgs","repos_url":"https://api.github.com/users/sunyifan112358/repos","events_url":"https://api.github.com/users/sunyifan112358/events{/privacy}","received_events_url":"https://api.github.com/users/sunyifan112358/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-10T00:17:20Z","updated_at":"2016-05-10T23:48:49Z","closed_at":null,"body":"When I was compiling some program with snackhsail.sh (I do not know when it changed to snackhsail, the old snack.sh does not work properly. Is AMD giving up HSAIL?), I notice some instruction is not compatible with HSA tool chains. I got the following error:\r\n\r\n```\r\n>       gcn_min_f32     $s5, $s9, $s5;\r\n>              ^\r\ninput(124,9): Undefined instruction\r\n```\r\n\r\nand \r\n\r\n```\r\n>       gcn_divrelaxed_ftz_f32  $s4, $s5, $s4;\r\n>                         ^\r\ninput(353,20): Undefined instruction\r\n```\r\n\r\nHow does gcn_min different the min instruction in HSAIL and how does the gcn_divrelaxed different from the div instruction in HSAIL? Should the CLOC compile the HSAIL program or only compiles for AMD GCN devices? How can another vendor use CLOC or even HSAIL if it generates GCN specific instructions?"},"comment":{"url":"https://api.github.com/repos/HSAFoundation/CLOC/issues/comments/218324993","html_url":"https://github.com/HSAFoundation/CLOC/issues/15#issuecomment-218324993","issue_url":"https://api.github.com/repos/HSAFoundation/CLOC/issues/15","id":218324993,"user":{"login":"sunyifan112358","id":2524066,"avatar_url":"https://avatars.githubusercontent.com/u/2524066?v=3","gravatar_id":"","url":"https://api.github.com/users/sunyifan112358","html_url":"https://github.com/sunyifan112358","followers_url":"https://api.github.com/users/sunyifan112358/followers","following_url":"https://api.github.com/users/sunyifan112358/following{/other_user}","gists_url":"https://api.github.com/users/sunyifan112358/gists{/gist_id}","starred_url":"https://api.github.com/users/sunyifan112358/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunyifan112358/subscriptions","organizations_url":"https://api.github.com/users/sunyifan112358/orgs","repos_url":"https://api.github.com/users/sunyifan112358/repos","events_url":"https://api.github.com/users/sunyifan112358/events{/privacy}","received_events_url":"https://api.github.com/users/sunyifan112358/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T23:48:49Z","updated_at":"2016-05-10T23:48:49Z","body":"@dpreobrazhensky We have been using CLOC for a very long time. Only since the most recent version (after the apt-get package is available), we had this problem. I knew that the gcn instructions are generated long time ago, but the compiled program works fine on Kaveri machines. After we updated CLOC, out program cannot get compiled."}}