From be7fe3b5466e10c4c49f027f10a801e1a4a9216c Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 9 Jul 2020 10:58:12 +0100 Subject: Add some x86/x86-64 assembler tests. Also add divq() and divl() to x86-64 assembler and clean up a test. This is a follow-up to https://android-review.googlesource.com/1355865 . Test: m test-art-host-gtest Test: testrunner.py --host --optimizing -t 082-inline-execute Bug: 156736938 Change-Id: Iade33a2250cea481249f6b976bc53c86663cb901 --- test/082-inline-execute/src/Main.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/082-inline-execute/src/Main.java') diff --git a/test/082-inline-execute/src/Main.java b/test/082-inline-execute/src/Main.java index 81afee1caf..338a3ddf00 100644 --- a/test/082-inline-execute/src/Main.java +++ b/test/082-inline-execute/src/Main.java @@ -1396,10 +1396,9 @@ public class Main { try { Integer.divideUnsigned(1, 0); - } catch (ArithmeticException e) { - return; + Assert.fail("Unreachable"); + } catch (ArithmeticException expected) { } - Assert.fail("Unreachable"); } public static void test_Integer_numberOfLeadingZeros() { -- cgit v1.2.3-59-g8ed1b