linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] floating-point specific instructions
@ 2017-03-28 14:18 Luc Van Oostenryck
  2017-03-28 14:18 ` [PATCH 1/4] fix linearize_inc_dec() with floats Luc Van Oostenryck
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Luc Van Oostenryck @ 2017-03-28 14:18 UTC (permalink / raw)
  To: linux-sparse; +Cc: Christopher Li, Luc Van Oostenryck

Floating-point arithmetic is quite different from arithmetic
on integers (or on real numbers). In particular,
most transformations, simplifications that can be done on integers
are invalid when done on floats.

Since they don't follow the same rules as their integer
counterpart, better to give a specific opcode to floating-point
operations instead of having to test the type of the operands at
each manipulation.


Luc Van Oostenryck (4):
  fix linearize_inc_dec() with floats
  add test case for boolean negation on float
  fix support of floating-point compare
  add support of floating-point specific arithmetic ops

 cse.c                               |  14 ++++
 linearize.c                         |  58 ++++++++++++++---
 linearize.h                         |  25 ++++++++
 liveness.c                          |   1 +
 opcode.c                            |  46 +++++++++++---
 opcode.h                            |  10 +++
 simplify.c                          |   2 +-
 sparse-llvm.c                       |  64 ++++++++++---------
 validation/backend/arithmetic-ops.c |  20 ++++++
 validation/bool-float.c             |   9 +++
 validation/fp-ops.c                 |  57 +++++++++++++++++
 validation/inc-dec-float.c          |  13 ++++
 validation/optim/canonical-fcmp.c   | 123 ++++++++++++++++++++++++++++++++++++
 13 files changed, 394 insertions(+), 48 deletions(-)
 create mode 100644 validation/bool-float.c
 create mode 100644 validation/fp-ops.c
 create mode 100644 validation/inc-dec-float.c
 create mode 100644 validation/optim/canonical-fcmp.c

-- 
2.12.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-18 14:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-28 14:18 [PATCH 0/4] floating-point specific instructions Luc Van Oostenryck
2017-03-28 14:18 ` [PATCH 1/4] fix linearize_inc_dec() with floats Luc Van Oostenryck
2017-03-28 14:18 ` [PATCH 2/4] add test case for boolean negation on float Luc Van Oostenryck
2017-03-28 14:18 ` [PATCH 3/4] fix support of floating-point compare Luc Van Oostenryck
2017-03-28 14:18 ` [PATCH 4/4] add support of floating-point specific arithmetic ops Luc Van Oostenryck
2017-04-01 10:56 ` [GIT PULL] floating-point specific instructions Luc Van Oostenryck
2017-11-18 14:27 ` [PATCH 0/4] " Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).