[nvptx] HImode complex args

Nathan Sidwell nathan@acm.org
Mon Aug 24 12:52:00 GMT 2015


My patch to walk_args_for_param to fix QImode complex args, didn't deal with 
HImode ones.  Those also had the same problem,  but I'd not triaged the 
testsuite enough to see at that point.

This patch reverts the change to nvptx_ptx_type_from_mode, instead moving the 
call to arg_promotion into the path for both split and unsplit args.

This fixes the following testcases (in addition to the ones the earlier patch 
fixed):

gcc.dg/compat/scalar-by-value-4
gcc.dg/compat/scalar-return-4
gcc.dg/compat/struct-by-value-12


nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptx-cplx-2.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150824/f74907fb/attachment.bin>


More information about the Gcc-patches mailing list