On 11/04/2014 05:48 PM, Richard Henderson wrote:
On 10/28/2014 03:56 PM, Bernd Schmidt wrote:+nvptx_ptx_type_from_mode (enum machine_mode mode, bool promote) +{ + switch (mode) + { + case BLKmode: + return ".b8"; + case BImode: + return ".pred"; + case QImode: + if (promote) + return ".u32"; + else + return ".u8"; + case HImode: + return ".u16";Promote here too? Or does this have nothing to do with+static enum machine_mode +arg_promotion (enum machine_mode mode) +{ + if (mode == QImode || mode == HImode) + return SImode; + return mode; +}
No, these are different problems - the one in arg promotion is purely about K&R C and trying to match untyped function decls with calls, while the type_from_mode bit was about some ptx ideosyncracy. Although I forget what the problem was, that code is more than a year old - I'll see if I can get rid of this.
Bernd
