| commit | 7cbc21529ddd7362688bdce90a451d5451e80240 | [log] [tgz] |
|---|---|---|
| author | Tim Northover <tnorthover@apple.com> | Fri Jun 28 15:29:25 2013 +0000 |
| committer | Tim Northover <tnorthover@apple.com> | Fri Jun 28 15:29:25 2013 +0000 |
| tree | bc5c8166897b40a7e7f595e59b36bb329060bd37 | |
| parent | 202881d1fe3a580bbdecd0b62d7fd83ae9d1b534 [diff] |
ARM: ensure fixed-point conversions have sane types
We were generating intrinsics for NEON fixed-point conversions that didn't
exist (e.g. float -> i16). There are two cases to consider:
+ iN is smaller than float. In this case we can do the conversion but need an
extend or truncate as well.
+ iN is larger than float. In this case using the NEON conversion would be
incorrect so we don't perform any combining.
llvm-svn: 185158