From 921c42389cf15b42b09f8364ad438ccc18f07e71 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 12 Mar 2024 13:28:57 +0000 Subject: arm64: Fix `VarHandle.getAndAdd(..., 0)`. Test: testrunner.py --target --64 --optimizing -t 712 Bug: 328420806 Change-Id: I5cc1ce481bc1c398453226c5385506ee91c3468d --- test/712-varhandle-invocations/util-src/generate_java.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/712-varhandle-invocations/util-src/generate_java.py') diff --git a/test/712-varhandle-invocations/util-src/generate_java.py b/test/712-varhandle-invocations/util-src/generate_java.py index e32cee9763..352c4d9fc5 100644 --- a/test/712-varhandle-invocations/util-src/generate_java.py +++ b/test/712-varhandle-invocations/util-src/generate_java.py @@ -916,6 +916,8 @@ def emit_accessor_test(var_handle_kind, accessor, var_type, output_path): if var_type.supports_numeric == True: expansions['binop'] = accessor.get_java_numeric_operator() test_template = Template(""" + ${var_type} unchanged = (${var_type}) vh.${accessor_method}(${coordinates}(${var_type}) 0); + assertEquals(${initial_value}, unchanged); ${var_type} old_value = (${var_type}) vh.${accessor_method}(${coordinates}${updated_value}); assertEquals(${initial_value}, old_value); ${var_type} expected_value = (${var_type}) (${initial_value} ${binop} ${updated_value}); -- cgit v1.2.3-59-g8ed1b