Thu, 11 Apr 2013 09:39:57 -0700
Added tag jdk8-b85 for changeset 42fe530cd478
twisti@994 | 1 | /* |
trims@1907 | 2 | * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. |
twisti@994 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
twisti@994 | 4 | * |
twisti@994 | 5 | * This code is free software; you can redistribute it and/or modify it |
twisti@994 | 6 | * under the terms of the GNU General Public License version 2 only, as |
twisti@994 | 7 | * published by the Free Software Foundation. |
twisti@994 | 8 | * |
twisti@994 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
twisti@994 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
twisti@994 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
twisti@994 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
twisti@994 | 13 | * accompanied this code). |
twisti@994 | 14 | * |
twisti@994 | 15 | * You should have received a copy of the GNU General Public License version |
twisti@994 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
twisti@994 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
twisti@994 | 18 | * |
trims@1907 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | * or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | * questions. |
twisti@994 | 22 | */ |
twisti@994 | 23 | |
twisti@994 | 24 | /** |
twisti@994 | 25 | * @test |
twisti@994 | 26 | * @bug 6795362 |
twisti@994 | 27 | * @summary 32bit server compiler leads to wrong results on solaris-x86 |
twisti@994 | 28 | * |
twisti@994 | 29 | * @run main/othervm -Xcomp -XX:CompileOnly=Test6795362.sub Test6795362 |
twisti@994 | 30 | */ |
twisti@994 | 31 | |
twisti@994 | 32 | public class Test6795362 { |
twisti@994 | 33 | public static void main(String[] args) |
twisti@994 | 34 | { |
twisti@994 | 35 | sub(); |
twisti@994 | 36 | |
twisti@994 | 37 | if (var_bad != 0) |
twisti@994 | 38 | throw new InternalError(var_bad + " != 0"); |
twisti@994 | 39 | } |
twisti@994 | 40 | |
twisti@994 | 41 | static long var_bad = -1L; |
twisti@994 | 42 | |
twisti@994 | 43 | static void sub() |
twisti@994 | 44 | { |
twisti@994 | 45 | var_bad >>= 65; |
twisti@994 | 46 | var_bad /= 65; |
twisti@994 | 47 | } |
twisti@994 | 48 | } |