libgccjit: Fix bug where unary_op will return an integer type instead of the correct...
authorAntoni Boucher <bouanto@zoho.com>
Wed, 29 Jun 2022 23:56:56 +0000 (19:56 -0400)
committerAntoni Boucher <bouanto@zoho.com>
Wed, 29 Jun 2022 23:57:15 +0000 (19:57 -0400)
commite3a5c77388ae3791afed4f4286ec7e41e5b9f7c3
tree8e87a2bd6f58c2ef0ea0f9407a39c74ec7cdf000
parent3183acc8e0452fbc0ad429a909811ca0308c86c9
libgccjit: Fix bug where unary_op will return an integer type instead of the correct type

2022-06-29  Antoni Boucher  <bouanto@zoho.com>

gcc/jit/
PR jit/105812
* jit-playback.cc: Use the correct return type when folding in
as_truth_value.

gcc/testsuite/
PR jit/105812
* jit.dg/test-asm.cc: Add include missing to make the test pass.
* jit.dg/test-pr105812-bool-operations.c: New test.
gcc/jit/jit-playback.cc
gcc/testsuite/jit.dg/test-asm.cc
gcc/testsuite/jit.dg/test-pr105812-bool-operations.c [new file with mode: 0644]