diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-08-16 09:52:54 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-23 07:46:40 +0200 |
| commit | c6d4716f71de8de9683464b677207304583dc2a0 (patch) | |
| tree | 9b49d056f48ae59fe666f75fe47aa8492090e0a3 /validation/optim/fpcast-constant.c | |
| parent | d0694a238744b642714e7cd226193dd1365176d0 (diff) | |
| download | sparse-dev-c6d4716f71de8de9683464b677207304583dc2a0.tar.gz | |
cast: specialize FPCAST into [USF]CVTF
Currently, all casts to a floating point type use OP_FPCAST.
This is maybe simple but rather uncovenient as it correspond
to several quite different operations that later need extra
checks.
Change this by directly using different instructions for the
different cases:
- FCVTF for float-float conversions
- UCVTF for unsigned integer to floats
- SCVTF for signed integer to floats
and reject attempts to cast a pointer to a float.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/fpcast-constant.c')
| -rw-r--r-- | validation/optim/fpcast-constant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/validation/optim/fpcast-constant.c b/validation/optim/fpcast-constant.c index c0f906b3..49355d00 100644 --- a/validation/optim/fpcast-constant.c +++ b/validation/optim/fpcast-constant.c @@ -8,6 +8,6 @@ static double foo(double a, int p) * check-command: test-linearize $file * * check-output-ignore - * check-output-contains: fpcast\\. + * check-output-contains: scvtf\\. * check-output-excludes: fmul\\..*\\$2 */ |
