HSA: fix emission of clrsb{l,ll} builtins
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Feb 2016 14:14:51 +0000 (14:14 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Feb 2016 14:14:51 +0000 (14:14 +0000)
commit6ba562d5c1ee387654ddd66c932e7881854a4ec5
tree1d2d1f5ec203cf55ce55834f79bf5d62393d0aab
parent09343379e142fac1de9c8876dbd3639071e41522
HSA: fix emission of clrsb{l,ll} builtins

* hsa-gen.c (gen_hsa_clrsb): In case of zero value,
return bitsize - 1 as the return value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233602 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/hsa-gen.c