test/compiler/6603011/Test.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/test/compiler/6603011/Test.java Thu Nov 4 10:25:05 2010
--- new/test/compiler/6603011/Test.java Thu Nov 4 10:25:05 2010
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 2010, Oracle and/or its affiliates. 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
* published by the Free Software Foundation.
*** 106,117 ****
--- 106,119 ----
long quo0 = s.divl(dividend, divisor());
long rem0 = s.modl(dividend, divisor());
if (quo != quo0 || rem != rem0) {
if (VERBOSE) {
! System.out.println(" " + dividend + " / " + divisor() + " = " +
! quo + ", " + dividend + " % " + divisor() + " = " + rem);
! System.out.println("Computed: " + dividend + " / " + divisor() + " = " +
! quo + ", " + dividend + " % " + divisor() + " = " + rem );
+ System.out.println("expected: " + dividend + " / " + divisor() + " = " +
+ quo0 + ", " + dividend + " % " + divisor() + " = " + rem0);
// Report sign of rem failure
if (rem != 0 && (rem ^ dividend) < 0) {
System.out.println(" rem & dividend have different signs");
}
// Report range of rem failure
*** 166,176 ****
--- 168,178 ----
outerloop:
for (int i = start; i <= end; i++) {
for (int s = 0; s < 64; s += 4) {
total++;
! long dividend = ((long)i) << s;
if (!checkL(dividend)) {
wrong++;
// Stop on the first failure
// break outerloop;
}
test/compiler/6603011/Test.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File