< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.aarch64.test/src/org/graalvm/compiler/core/aarch64/test/AArch64CbzTest.java

Print this page
rev 56282 : [mq]: graal

*** 1,7 **** /* ! * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, Arm Limited. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as --- 1,7 ---- /* ! * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, Arm Limited. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as
*** 65,82 **** } else { return "abc"; } } - public static String objectEqualsNull(String s1, String s2) { - if (s1.equals(null)) { - return s1 + "abc"; - } else { - return s2 + "abd"; - } - } - public static String objectEquals(String s1, String s2) { if (s1.equals(s2)) { return s1 + "abc"; } else { return s2 + "abd"; --- 65,74 ----
*** 110,126 **** test("isNotNull", "abc"); checkLIR("isNotNull", predicate, 1); } @Test - public void testObjectEqualsNull() { - test("objectEqualsNull", "ab", "ac"); - test("objectEqualsNull", "abc", "abc"); - checkLIR("objectEqualsNull", predicate, 1); - } - - @Test public void testObjectEquals() { test("objectEquals", "ab", "ac"); test("objectEquals", "abc", "abc"); checkLIR("objectEquals", predicate, 0); } --- 102,111 ----
< prev index next >