Browse Source

Add jitplus support for the new trunc insn.

cache-refactoring
Klaus Treichel 14 years ago
parent
commit
f1ad239d61
  1. 5
      ChangeLog
  2. 1
      include/jit/jit-plus.h
  3. 6
      jitplus/jit-plus-function.cpp

5
ChangeLog

@ -35,6 +35,11 @@
* tests/math.pas: Add tests for the new trunc insn.
* include/jit/jit-plus.h: Add jit_function insn_trunc member.
* jitplus/jit-plus-function.cpp (insn_trunc): Implement wrapper for
the new trunc insn.
2010-08-04 Klaus Treichel <ktreichel@web.de>
* include/jit/Makefile.am: Don't include jit-arch.h in the

1
include/jit/jit-plus.h

@ -309,6 +309,7 @@ public:
jit_value insn_sqrt(const jit_value& value1);
jit_value insn_tan(const jit_value& value1);
jit_value insn_tanh(const jit_value& value1);
jit_value insn_trunc(const jit_value& value1);
jit_value insn_is_nan(const jit_value& value1);
jit_value insn_is_finite(const jit_value& value1);
jit_value insn_is_inf(const jit_value& value1);

6
jitplus/jit-plus-function.cpp

@ -595,6 +595,7 @@ jit_label jit_function::new_label()
* @deftypemethodx jit_function jit_value insn_sqrt (const jit_value& @var{value1})
* @deftypemethodx jit_function jit_value insn_tan (const jit_value& @var{value1})
* @deftypemethodx jit_function jit_value insn_tanh (const jit_value& @var{value1})
* @deftypemethodx jit_function jit_value insn_trunc (const jit_value& @var{value1})
* @deftypemethodx jit_function jit_value insn_is_nan (const jit_value& @var{value1})
* @deftypemethodx jit_function jit_value insn_is_finite (const jit_value& @var{value1})
* @deftypemethodx jit_function jit_value insn_is_inf (const jit_value& @var{value1})
@ -1011,6 +1012,11 @@ jit_value jit_function::insn_tanh(const jit_value& value1)
value_wrap(jit_insn_tanh(func, value1.raw()));
}
jit_value jit_function::insn_trunc(const jit_value& value1)
{
value_wrap(jit_insn_trunc(func, value1.raw()));
}
jit_value jit_function::insn_is_nan(const jit_value& value1)
{
value_wrap(jit_insn_is_nan(func, value1.raw()));

Loading…
Cancel
Save