commit | 81a63f1de0bc94a8de12c3aa56f4f5d70c8d3a7e | [log] [tgz] |
---|---|---|
author | Neil Henning <neil.henning@amd.com> | Mon Nov 26 10:17:33 2018 +0000 |
committer | Neil Henning <neil.henning@amd.com> | Mon Nov 26 12:45:33 2018 +0000 |
tree | a3100a23dc81422d050de36e5ccf25bd12e5e3b4 | |
parent | 0e6c82ce937eff14999cdd510fbe267aaffc27e9 [diff] |
Add conversion folding when the source is a constant. This change adds unary conversion folding when the source is a constant. This fixes an ISV issue whereby: ``` const float16_t f = float16_t(42.0); ``` Wouldn't compile because the conversion operator would always produce an EvqTemporary when it could have produced an EvqConst. I've also added a test case that proves out that all basic-type to basic-type conversions work.