diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-01-07 20:40:46 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-01-07 20:40:46 +0000 |
commit | 18146f456f5a66b20d9f9f886a38364369b0474c (patch) | |
tree | f4ac466c9b35679f58cc38f46554ecece9ad0d3a /gcc/jit/libgccjit.h | |
parent | f63c7f852468f409205d1d0182b2fba989c38f93 (diff) | |
download | gcc-18146f456f5a66b20d9f9f886a38364369b0474c.zip gcc-18146f456f5a66b20d9f9f886a38364369b0474c.tar.gz gcc-18146f456f5a66b20d9f9f886a38364369b0474c.tar.bz2 |
API extension: add GCC_JIT_UNARY_OP_ABS to enum gcc_jit_unary_op
gcc/jit/ChangeLog:
* docs/topics/expressions.rst (Unary Operations): Add
GCC_JIT_UNARY_OP_ABS.
* jit-playback.c (gcc::jit::playback::context::new_unary_op):
Likewise.
* jit-recording.c (unary_op_strings): Likewise.
* libgccjit.c (gcc_jit_context_new_unary_op): Update checking
of "op" to reflect addition of GCC_JIT_UNARY_OP_ABS.
* libgccjit.h (enum gcc_jit_unary_op): Add GCC_JIT_UNARY_OP_ABS.
* docs/_build/texinfo/libgccjit.texi: Regenerate.
gcc/testsuite/ChangeLog:
* jit.dg/test-expressions.c (make_tests_of_unary_ops): Add test of
GCC_JIT_UNARY_OP_ABS.
(verify_unary_ops): Likewise.
From-SVN: r219321
Diffstat (limited to 'gcc/jit/libgccjit.h')
-rw-r--r-- | gcc/jit/libgccjit.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h index e89635c..2049795 100644 --- a/gcc/jit/libgccjit.h +++ b/gcc/jit/libgccjit.h @@ -649,7 +649,13 @@ enum gcc_jit_unary_op /* Logical negation of an arithmetic or pointer value; analogous to: !(EXPR) in C. */ - GCC_JIT_UNARY_OP_LOGICAL_NEGATE + GCC_JIT_UNARY_OP_LOGICAL_NEGATE, + + /* Absolute value of an arithmetic expression; analogous to: + abs (EXPR) + in C. */ + GCC_JIT_UNARY_OP_ABS + }; extern gcc_jit_rvalue * |