Skip to content

Commit

Permalink
Don't ZExt half
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jan 16, 2021
1 parent 0ae1e60 commit 6082e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ std::string generate_func_sig(const char *fname)
// see pull req #978. need to annotate signext/zeroext for
// small integer arguments.
jl_datatype_t *bt = (jl_datatype_t*)tti;
if (jl_datatype_size(bt) < 4) {
if (jl_datatype_size(bt) < 4 && bt != jl_float16_type) {
if (jl_signed_type && jl_subtype(tti, (jl_value_t*)jl_signed_type))
ab.addAttribute(Attribute::SExt);
else
Expand Down

0 comments on commit 6082e89

Please sign in to comment.