486N/A/*
1472N/A * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
486N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
486N/A *
486N/A * This code is free software; you can redistribute it and/or modify it
486N/A * under the terms of the GNU General Public License version 2 only, as
486N/A * published by the Free Software Foundation.
486N/A *
486N/A * This code is distributed in the hope that it will be useful, but WITHOUT
486N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
486N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
486N/A * version 2 for more details (a copy is included in the LICENSE file that
486N/A * accompanied this code).
486N/A *
486N/A * You should have received a copy of the GNU General Public License version
486N/A * 2 along with this work; if not, write to the Free Software Foundation,
486N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
486N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
486N/A */
486N/A
486N/A/**
486N/A * @test
486N/A * @bug 6757316
486N/A * @summary load_constant() produces a wrong long constant, with high a low words swapped
486N/A * @run main/othervm -Xcomp Test6757316
486N/A */
486N/A
486N/Apublic class Test6757316 {
486N/A public static void main(String[] args) {
486N/A long[] arr = {
486N/A 0x11111111aaaaaaaaL,
486N/A 0xaaaaaaaa11111111L,
486N/A 0x11111111aaaaaaaaL,
486N/A 0xaaaaaaaa11111111L
486N/A };
486N/A if (arr[0] == arr[1]) {
486N/A throw new InternalError();
486N/A }
486N/A }
486N/A}