diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-18 14:29:23 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-21 14:07:33 +0200 |
| commit | 91ca9ff50b7f3d7ee71421e81ccf9dae0b7c025b (patch) | |
| tree | b40d2301c623661c9c382b0653e0dc45444dff17 /validation/optim/fpcast-constant.c | |
| parent | 42b6bbfcfca288f5268c0ba46e4f9e98c060b9cc (diff) | |
| download | sparse-dev-91ca9ff50b7f3d7ee71421e81ccf9dae0b7c025b.tar.gz | |
fix bad fpcast simplification
A integer-to-float cast of a constant is currently simplified away
as if it is an integer-to-integer cast. That's bad.
Fix this by refusing to simplify away any integer-to-float casts
like already done for float-to-integer casts.
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 | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/fpcast-constant.c b/validation/optim/fpcast-constant.c index 47feffe5..c0f906b3 100644 --- a/validation/optim/fpcast-constant.c +++ b/validation/optim/fpcast-constant.c @@ -6,7 +6,6 @@ static double foo(double a, int p) /* * check-name: fpcast-constant * check-command: test-linearize $file - * check-known-to-fail * * check-output-ignore * check-output-contains: fpcast\\. |
