Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/test/compiler/6726999/Test.java
32285 views
/*1* Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324/*25* @test26* @bug 672699927* @summary nsk/stress/jck12a/jck12a010 assert(n != NULL,"Bad immediate dominator info.");28* @run main/othervm -Xbatch -XX:CompileCommand=exclude,Test.dummy -XX:+AggressiveOpts Test29*/3031import java.lang.reflect.Array;3233class Point {34int x;35int y;36}3738public class Test {3940void dummy() {41// Empty method to verify correctness of DebugInfo.42// Use -XX:CompileCommand=exclude,Test.dummy43}4445int test0_0_0(int y) {46int x = 3;47Point p = new Point();48dummy();49p.x = x;50p.y = 3 * x + y;51return p.x * p.y;52}5354int test0_0_1(int y) {55int x = 3;56Point p = null;57dummy();58p = new Point();59dummy();60p.x = x;61p.y = 3 * x + y;62return p.x * p.y;63}6465int test0_0_2(int y) {66int x = 3;67Point p = new Point();68dummy();69p = new Point();70dummy();71p.x = x;72p.y = 3 * x + y;73return p.x * p.y;74}7576int test0_0_3(int y) {77int x = 3;78Point p[] = new Point[1];79p[0] = new Point();80dummy();81p[0].x = x;82p[0].y = 3 * x + y;83return p[0].x * p[0].y;84}8586int test0_0_4(int y) {87int x = 3;88Point p[] = new Point[1];89dummy();90p[0] = new Point();91dummy();92p[0].x = x;93p[0].y = 3 * x + y;94return p[0].x * p[0].y;95}9697int test0_0_5(int y) {98int x = 3;99Point p[] = new Point[1];100dummy();101p[0] = null;102dummy();103p[0] = new Point();104dummy();105p[0].x = x;106p[0].y = 3 * x + y;107return p[0].x * p[0].y;108}109110int test0_0_6(int y) {111int x = 3;112Point p[] = new Point[1];113p[0] = new Point();114dummy();115p[0] = new Point();116dummy();117p[0].x = x;118p[0].y = 3 * x + y;119return p[0].x * p[0].y;120}121122int test0_1_3(int y) {123int x = 3;124Point p1 = new Point();125dummy();126Point p[] = new Point[1];127p[0] = p1;128dummy();129p[0].x = x;130p[0].y = 3 * x + y;131return p[0].x * p[0].y;132}133134int test0_1_4(int y) {135int x = 3;136Point p1 = new Point();137dummy();138Point p[] = new Point[1];139dummy();140p[0] = p1;141dummy();142p[0].x = x;143p[0].y = 3 * x + y;144return p[0].x * p[0].y;145}146147int test0_1_5(int y) {148int x = 3;149Point p1 = new Point();150dummy();151Point p[] = new Point[1];152dummy();153p[0] = null;154dummy();155p[0] = p1;156dummy();157p[0].x = x;158p[0].y = 3 * x + y;159return p[0].x * p[0].y;160}161162int test0_1_6(int y) {163int x = 3;164Point p1 = new Point();165dummy();166Point p2 = new Point();167dummy();168Point p[] = new Point[1];169p[0] = p1;170dummy();171p[0] = p2;172dummy();173p[0].x = x;174p[0].y = 3 * x + y;175return p[0].x * p[0].y;176}177178int test1_0_0(int y) {179Point p = new Point();180if ( (y & 1) == 1 ) {181p = new Point();182}183int x = 3;184p.x = x;185p.y = 3 * x + y;186dummy();187return p.x * p.y;188}189190int test1_0_1(int y) {191Point p = null;192if ( (y & 1) == 1 ) {193p = new Point();194}195int x = 3;196if ( p == null )197return (3 * x + y) * x;198p.x = x;199p.y = 3 * x + y;200dummy();201return p.x * p.y;202}203204int test1_0_2(int y) {205Point p[] = new Point[1];206if ( (y & 1) == 1 ) {207p[0] = new Point();208}209int x = 3;210if ( p[0] == null )211return (3 * x + y) * x;212p[0].x = x;213p[0].y = 3 * x + y;214dummy();215return p[0].x * p[0].y;216}217218int test1_0_3(int y) {219Point p[] = new Point[1];220p[0] = null;221if ( (y & 1) == 1 ) {222p[0] = new Point();223}224int x = 3;225if ( p[0] == null )226return (3 * x + y) * x;227p[0].x = x;228p[0].y = 3 * x + y;229dummy();230return p[0].x * p[0].y;231}232233int test1_0_4(int y) {234Point p[] = new Point[1];235p[0] = new Point();236if ( (y & 1) == 1 ) {237p[0] = new Point();238}239int x = 3;240if ( p[0] == null )241return (3 * x + y) * x;242p[0].x = x;243p[0].y = 3 * x + y;244dummy();245return p[0].x * p[0].y;246}247248int test1_0_5(int y) {249Point p[] = new Point[1];250if ( (y & 1) == 1 ) {251p[0] = new Point();252} else {253p[0] = null;254}255int x = 3;256if ( p[0] == null )257return (3 * x + y) * x;258p[0].x = x;259p[0].y = 3 * x + y;260dummy();261return p[0].x * p[0].y;262}263264int test1_0_6(int y) {265Point p[] = new Point[1];266if ( (y & 1) == 1 ) {267p[0] = new Point();268} else {269p[0] = new Point();270}271int x = 3;272if ( p[0] == null )273return (3 * x + y) * x;274p[0].x = x;275p[0].y = 3 * x + y;276dummy();277return p[0].x * p[0].y;278}279280int test1_1_0(int y) {281Point p = new Point();282if ( (y & 1) == 1 ) {283dummy();284p = new Point();285dummy();286}287int x = 3;288p.x = x;289p.y = 3 * x + y;290dummy();291return p.x * p.y;292}293294int test1_1_1(int y) {295Point p = null;296if ( (y & 1) == 1 ) {297dummy();298p = new Point();299dummy();300}301int x = 3;302if ( p == null )303return (3 * x + y) * x;304p.x = x;305p.y = 3 * x + y;306dummy();307return p.x * p.y;308}309310int test1_1_2(int y) {311Point p[] = new Point[1];312if ( (y & 1) == 1 ) {313dummy();314p[0] = new Point();315dummy();316}317int x = 3;318if ( p[0] == null )319return (3 * x + y) * x;320p[0].x = x;321p[0].y = 3 * x + y;322dummy();323return p[0].x * p[0].y;324}325326int test1_1_3(int y) {327Point p[] = new Point[1];328dummy();329p[0] = null;330if ( (y & 1) == 1 ) {331dummy();332p[0] = new Point();333dummy();334}335int x = 3;336if ( p[0] == null )337return (3 * x + y) * x;338p[0].x = x;339p[0].y = 3 * x + y;340dummy();341return p[0].x * p[0].y;342}343344int test1_1_4(int y) {345Point p[] = new Point[1];346dummy();347p[0] = new Point();348if ( (y & 1) == 1 ) {349dummy();350p[0] = new Point();351dummy();352}353int x = 3;354if ( p[0] == null )355return (3 * x + y) * x;356p[0].x = x;357p[0].y = 3 * x + y;358dummy();359return p[0].x * p[0].y;360}361362int test1_1_5(int y) {363Point p[] = new Point[1];364if ( (y & 1) == 1 ) {365dummy();366p[0] = new Point();367dummy();368} else {369dummy();370p[0] = null;371dummy();372}373int x = 3;374if ( p[0] == null )375return (3 * x + y) * x;376p[0].x = x;377p[0].y = 3 * x + y;378dummy();379return p[0].x * p[0].y;380}381382int test1_1_6(int y) {383Point p[] = new Point[1];384if ( (y & 1) == 1 ) {385dummy();386p[0] = new Point();387dummy();388} else {389dummy();390p[0] = new Point();391dummy();392}393int x = 3;394if ( p[0] == null )395return (3 * x + y) * x;396p[0].x = x;397p[0].y = 3 * x + y;398dummy();399return p[0].x * p[0].y;400}401402int test1_2_0(int y) {403Point p1 = new Point();404dummy();405Point p = new Point();406if ( (y & 1) == 1 ) {407dummy();408p = p1;409dummy();410}411int x = 3;412p.x = x;413p.y = 3 * x + y;414dummy();415return p.x * p.y;416}417418int test1_2_1(int y) {419Point p1 = new Point();420dummy();421Point p = null;422if ( (y & 1) == 1 ) {423dummy();424p = p1;425dummy();426}427int x = 3;428if ( p == null )429return (3 * x + y) * x;430p.x = x;431p.y = 3 * x + y;432dummy();433return p.x * p.y;434}435436int test1_2_2(int y) {437Point p1 = new Point();438dummy();439Point p[] = new Point[1];440if ( (y & 1) == 1 ) {441dummy();442p[0] = p1;443dummy();444}445int x = 3;446if ( p[0] == null )447return (3 * x + y) * x;448p[0].x = x;449p[0].y = 3 * x + y;450dummy();451return p[0].x * p[0].y;452}453454int test1_2_3(int y) {455Point p1 = new Point();456dummy();457Point p[] = new Point[1];458dummy();459p[0] = null;460if ( (y & 1) == 1 ) {461dummy();462p[0] = p1;463dummy();464}465int x = 3;466if ( p[0] == null )467return (3 * x + y) * x;468p[0].x = x;469p[0].y = 3 * x + y;470dummy();471return p[0].x * p[0].y;472}473474int test1_2_4(int y) {475Point p1 = new Point();476dummy();477Point p2 = new Point();478dummy();479Point p[] = new Point[1];480dummy();481p[0] = p1;482if ( (y & 1) == 1 ) {483dummy();484p[0] = p2;485dummy();486}487int x = 3;488if ( p[0] == null )489return (3 * x + y) * x;490p[0].x = x;491p[0].y = 3 * x + y;492dummy();493return p[0].x * p[0].y;494}495496int test1_2_5(int y) {497Point p1 = new Point();498dummy();499Point p[] = new Point[1];500if ( (y & 1) == 1 ) {501dummy();502p[0] = p1;503dummy();504} else {505dummy();506p[0] = null;507dummy();508}509int x = 3;510if ( p[0] == null )511return (3 * x + y) * x;512p[0].x = x;513p[0].y = 3 * x + y;514dummy();515return p[0].x * p[0].y;516}517518int test1_2_6(int y) {519Point p1 = new Point();520dummy();521Point p2 = new Point();522dummy();523Point p[] = new Point[1];524if ( (y & 1) == 1 ) {525dummy();526p[0] = p1;527dummy();528} else {529dummy();530p[0] = p2;531dummy();532}533int x = 3;534if ( p[0] == null )535return (3 * x + y) * x;536p[0].x = x;537p[0].y = 3 * x + y;538dummy();539return p[0].x * p[0].y;540}541542int test2_0_0(int y) {543Point p = new Point();544int lim = (y & 3);545for (int i = 0; i < lim; i++) {546p = new Point();547}548int x = 3;549p.x = x;550p.y = 3 * x + y;551dummy();552return p.x * p.y;553}554555int test2_0_1(int y) {556Point p = null;557int lim = (y & 3);558for (int i = 0; i < lim; i++) {559p = new Point();560}561int x = 3;562if ( p == null )563return (3 * x + y) * x;564p.x = x;565p.y = 3 * x + y;566dummy();567return p.x * p.y;568}569570int test2_0_2(int y) {571Point p[] = new Point[3];572int lim = (y & 3);573for (int i = 0; i < lim; i++) {574p[i] = new Point();575}576int x = 3;577int j = (y & 1);578if ( p[j] == null )579return (3 * x + y) * x;580p[j].x = x;581p[j].y = 3 * x + y;582dummy();583return p[j].x * p[0].y;584}585586int test2_0_3(int y) {587Point p[] = new Point[3];588int j = (y & 1);589p[j] = null;590int lim = (y & 3);591for (int i = 0; i < lim; i++) {592p[i] = new Point();593}594int x = 3;595if ( p[j] == null )596return (3 * x + y) * x;597p[j].x = x;598p[j].y = 3 * x + y;599dummy();600return p[j].x * p[0].y;601}602603int test2_0_4(int y) {604Point p[] = new Point[3];605int j = (y & 1);606p[j] = new Point();607int lim = (y & 3);608for (int i = 0; i < lim; i++) {609p[i] = new Point();610}611int x = 3;612if ( p[j] == null )613return (3 * x + y) * x;614p[j].x = x;615p[j].y = 3 * x + y;616dummy();617return p[j].x * p[0].y;618}619620int test2_0_5(int y) {621Point p[] = new Point[3];622int lim = (y & 3);623for (int i = 0; i < lim; i++) {624p[i] = new Point();625}626for (int i = 0; i < lim; i++) {627p[i] = null;628}629int x = 3;630int j = (y & 1);631if ( p[j] == null )632return (3 * x + y) * x;633p[j].x = x;634p[j].y = 3 * x + y;635dummy();636return p[j].x * p[0].y;637}638639int test2_0_6(int y) {640Point p[] = new Point[3];641int lim = (y & 3);642for (int i = 0; i < lim; i++) {643p[i] = new Point();644}645for (int i = 0; i < lim; i++) {646p[i] = new Point();647}648int x = 3;649int j = (y & 1);650if ( p[j] == null )651return (3 * x + y) * x;652p[j].x = x;653p[j].y = 3 * x + y;654dummy();655return p[j].x * p[0].y;656}657658int test2_1_0(int y) {659Point p = new Point();660int lim = (y & 3);661for (int i = 0; i < lim; i++) {662dummy();663p = new Point();664dummy();665}666int x = 3;667p.x = x;668p.y = 3 * x + y;669dummy();670return p.x * p.y;671}672673int test2_1_1(int y) {674Point p = null;675int lim = (y & 3);676for (int i = 0; i < lim; i++) {677dummy();678p = new Point();679dummy();680}681int x = 3;682if ( p == null )683return (3 * x + y) * x;684p.x = x;685p.y = 3 * x + y;686dummy();687return p.x * p.y;688}689690int test2_1_2(int y) {691Point p[] = new Point[3];692int lim = (y & 3);693for (int i = 0; i < lim; i++) {694dummy();695p[i] = new Point();696dummy();697}698int x = 3;699int j = (y & 1);700if ( p[j] == null )701return (3 * x + y) * x;702p[j].x = x;703p[j].y = 3 * x + y;704dummy();705return p[j].x * p[0].y;706}707708int test2_1_3(int y) {709Point p[] = new Point[3];710dummy();711int j = (y & 1);712p[j] = null;713int lim = (y & 3);714for (int i = 0; i < lim; i++) {715dummy();716p[i] = new Point();717dummy();718}719int x = 3;720if ( p[j] == null )721return (3 * x + y) * x;722p[j].x = x;723p[j].y = 3 * x + y;724dummy();725return p[j].x * p[0].y;726}727728int test2_1_4(int y) {729Point p[] = new Point[3];730dummy();731int j = (y & 1);732p[j] = new Point();733int lim = (y & 3);734for (int i = 0; i < lim; i++) {735dummy();736p[i] = new Point();737dummy();738}739int x = 3;740if ( p[j] == null )741return (3 * x + y) * x;742p[j].x = x;743p[j].y = 3 * x + y;744dummy();745return p[j].x * p[0].y;746}747748int test2_1_5(int y) {749Point p[] = new Point[3];750int lim = (y & 3);751for (int i = 0; i < lim; i++) {752dummy();753p[i] = new Point();754dummy();755}756for (int i = 0; i < lim; i++) {757dummy();758p[i] = null;759dummy();760}761int x = 3;762int j = (y & 1);763if ( p[j] == null )764return (3 * x + y) * x;765p[j].x = x;766p[j].y = 3 * x + y;767dummy();768return p[j].x * p[0].y;769}770771int test2_1_6(int y) {772Point p[] = new Point[3];773int lim = (y & 3);774for (int i = 0; i < lim; i++) {775dummy();776p[i] = new Point();777dummy();778}779for (int i = 0; i < lim; i++) {780dummy();781p[i] = new Point();782dummy();783}784int x = 3;785int j = (y & 1);786if ( p[j] == null )787return (3 * x + y) * x;788p[j].x = x;789p[j].y = 3 * x + y;790dummy();791return p[j].x * p[0].y;792}793794int test2_2_0(int y) {795Point p1 = new Point();796dummy();797Point p = new Point();798int lim = (y & 3);799for (int i = 0; i < lim; i++) {800dummy();801p = p1;802dummy();803}804int x = 3;805p.x = x;806p.y = 3 * x + y;807dummy();808return p.x * p.y;809}810811int test2_2_1(int y) {812Point p1 = new Point();813dummy();814Point p = null;815int lim = (y & 3);816for (int i = 0; i < lim; i++) {817dummy();818p = p1;819dummy();820}821int x = 3;822if ( p == null )823return (3 * x + y) * x;824p.x = x;825p.y = 3 * x + y;826dummy();827return p.x * p.y;828}829830int test2_2_2(int y) {831Point p1 = new Point();832dummy();833Point p[] = new Point[3];834int lim = (y & 3);835for (int i = 0; i < lim; i++) {836dummy();837p[i] = p1;838dummy();839}840int x = 3;841int j = (y & 1);842if ( p[j] == null )843return (3 * x + y) * x;844p[j].x = x;845p[j].y = 3 * x + y;846dummy();847return p[j].x * p[0].y;848}849850int test2_2_3(int y) {851Point p1 = new Point();852dummy();853Point p[] = new Point[3];854dummy();855int j = (y & 1);856p[j] = null;857int lim = (y & 3);858for (int i = 0; i < lim; i++) {859dummy();860p[i] = p1;861dummy();862}863int x = 3;864if ( p[j] == null )865return (3 * x + y) * x;866p[j].x = x;867p[j].y = 3 * x + y;868dummy();869return p[j].x * p[0].y;870}871872int test2_2_4(int y) {873Point p1 = new Point();874dummy();875Point p2 = new Point();876dummy();877Point p[] = new Point[3];878dummy();879int j = (y & 1);880p[j] = p1;881int lim = (y & 3);882for (int i = 0; i < lim; i++) {883dummy();884p[i] = p2;885dummy();886}887int x = 3;888if ( p[j] == null )889return (3 * x + y) * x;890p[j].x = x;891p[j].y = 3 * x + y;892dummy();893return p[j].x * p[0].y;894}895896int test2_2_5(int y) {897Point p1 = new Point();898dummy();899Point p[] = new Point[3];900int lim = (y & 3);901for (int i = 0; i < lim; i++) {902dummy();903p[i] = p1;904dummy();905}906for (int i = 0; i < lim; i++) {907dummy();908p[i] = null;909dummy();910}911int x = 3;912int j = (y & 1);913if ( p[j] == null )914return (3 * x + y) * x;915p[j].x = x;916p[j].y = 3 * x + y;917dummy();918return p[j].x * p[0].y;919}920921int test2_2_6(int y) {922Point p1 = new Point();923dummy();924Point p2 = new Point();925dummy();926Point p[] = new Point[3];927int lim = (y & 3);928for (int i = 0; i < lim; i++) {929dummy();930p[i] = p1;931dummy();932}933for (int i = 0; i < lim; i++) {934dummy();935p[i] = p2;936dummy();937}938int x = 3;939int j = (y & 1);940if ( p[j] == null )941return (3 * x + y) * x;942p[j].x = x;943p[j].y = 3 * x + y;944dummy();945return p[j].x * p[0].y;946}947948public static void main(String args[]) {949Test tsr = new Test();950Point p = new Point();951Point ptmp = p;952Class cls = Point.class;953int y = 0;954for (int i=0; i<10000; i++) {955y = tsr.test0_0_0(y);956y = tsr.test0_0_0(y);957y = tsr.test0_0_1(y);958y = tsr.test0_0_1(y);959y = tsr.test0_0_2(y);960y = tsr.test0_0_2(y);961y = tsr.test0_0_3(y);962y = tsr.test0_0_3(y);963y = tsr.test0_0_4(y);964y = tsr.test0_0_4(y);965y = tsr.test0_0_5(y);966y = tsr.test0_0_5(y);967y = tsr.test0_0_6(y);968y = tsr.test0_0_6(y);969970y = tsr.test0_1_3(y);971y = tsr.test0_1_3(y);972y = tsr.test0_1_4(y);973y = tsr.test0_1_4(y);974y = tsr.test0_1_5(y);975y = tsr.test0_1_5(y);976y = tsr.test0_1_6(y);977y = tsr.test0_1_6(y);978979y = tsr.test1_0_0(y&~1);980y = tsr.test1_0_1(y&~1);981y = tsr.test1_0_2(y&~1);982y = tsr.test1_0_3(y&~1);983y = tsr.test1_0_4(y&~1);984y = tsr.test1_0_5(y&~1);985y = tsr.test1_0_6(y&~1);986y = tsr.test1_0_0((y&~1)+1);987y = tsr.test1_0_1((y&~1)+1);988y = tsr.test1_0_2((y&~1)+1);989y = tsr.test1_0_3((y&~1)+1);990y = tsr.test1_0_4((y&~1)+1);991y = tsr.test1_0_5((y&~1)+1);992y = tsr.test1_0_6((y&~1)+1);993994y = tsr.test1_1_0(y&~1);995y = tsr.test1_1_1(y&~1);996y = tsr.test1_1_2(y&~1);997y = tsr.test1_1_3(y&~1);998y = tsr.test1_1_4(y&~1);999y = tsr.test1_1_5(y&~1);1000y = tsr.test1_1_6(y&~1);1001y = tsr.test1_1_0((y&~1)+1);1002y = tsr.test1_1_1((y&~1)+1);1003y = tsr.test1_1_2((y&~1)+1);1004y = tsr.test1_1_3((y&~1)+1);1005y = tsr.test1_1_4((y&~1)+1);1006y = tsr.test1_1_5((y&~1)+1);1007y = tsr.test1_1_6((y&~1)+1);10081009y = tsr.test1_2_0(y&~1);1010y = tsr.test1_2_1(y&~1);1011y = tsr.test1_2_2(y&~1);1012y = tsr.test1_2_3(y&~1);1013y = tsr.test1_2_4(y&~1);1014y = tsr.test1_2_5(y&~1);1015y = tsr.test1_2_6(y&~1);1016y = tsr.test1_2_0((y&~1)+1);1017y = tsr.test1_2_1((y&~1)+1);1018y = tsr.test1_2_2((y&~1)+1);1019y = tsr.test1_2_3((y&~1)+1);1020y = tsr.test1_2_4((y&~1)+1);1021y = tsr.test1_2_5((y&~1)+1);1022y = tsr.test1_2_6((y&~1)+1);10231024y = tsr.test2_0_0(y&~3);1025y = tsr.test2_0_1(y&~3);1026y = tsr.test2_0_2(y&~3);1027y = tsr.test2_0_3(y&~3);1028y = tsr.test2_0_4(y&~3);1029y = tsr.test2_0_5(y&~3);1030y = tsr.test2_0_6(y&~3);1031y = tsr.test2_0_0((y&~3)+3);1032y = tsr.test2_0_1((y&~3)+3);1033y = tsr.test2_0_2((y&~3)+3);1034y = tsr.test2_0_3((y&~3)+3);1035y = tsr.test2_0_4((y&~3)+3);1036y = tsr.test2_0_5((y&~3)+3);1037y = tsr.test2_0_6((y&~3)+3);10381039y = tsr.test2_1_0(y&~3);1040y = tsr.test2_1_1(y&~3);1041y = tsr.test2_1_2(y&~3);1042y = tsr.test2_1_3(y&~3);1043y = tsr.test2_1_4(y&~3);1044y = tsr.test2_1_5(y&~3);1045y = tsr.test2_1_6(y&~3);1046y = tsr.test2_1_0((y&~3)+3);1047y = tsr.test2_1_1((y&~3)+3);1048y = tsr.test2_1_2((y&~3)+3);1049y = tsr.test2_1_3((y&~3)+3);1050y = tsr.test2_1_4((y&~3)+3);1051y = tsr.test2_1_5((y&~3)+3);1052y = tsr.test2_1_6((y&~3)+3);10531054y = tsr.test2_2_0(y&~3);1055y = tsr.test2_2_1(y&~3);1056y = tsr.test2_2_2(y&~3);1057y = tsr.test2_2_3(y&~3);1058y = tsr.test2_2_4(y&~3);1059y = tsr.test2_2_5(y&~3);1060y = tsr.test2_2_6(y&~3);1061y = tsr.test2_2_0((y&~3)+3);1062y = tsr.test2_2_1((y&~3)+3);1063y = tsr.test2_2_2((y&~3)+3);1064y = tsr.test2_2_3((y&~3)+3);1065y = tsr.test2_2_4((y&~3)+3);1066y = tsr.test2_2_5((y&~3)+3);1067y = tsr.test2_2_6((y&~3)+3);10681069}1070for (int i=0; i<10000; i++) {1071y = tsr.test0_0_0(y);1072y = tsr.test0_0_0(y);1073y = tsr.test0_0_1(y);1074y = tsr.test0_0_1(y);1075y = tsr.test0_0_2(y);1076y = tsr.test0_0_2(y);1077y = tsr.test0_0_3(y);1078y = tsr.test0_0_3(y);1079y = tsr.test0_0_4(y);1080y = tsr.test0_0_4(y);1081y = tsr.test0_0_5(y);1082y = tsr.test0_0_5(y);1083y = tsr.test0_0_6(y);1084y = tsr.test0_0_6(y);10851086y = tsr.test0_1_3(y);1087y = tsr.test0_1_3(y);1088y = tsr.test0_1_4(y);1089y = tsr.test0_1_4(y);1090y = tsr.test0_1_5(y);1091y = tsr.test0_1_5(y);1092y = tsr.test0_1_6(y);1093y = tsr.test0_1_6(y);10941095y = tsr.test1_0_0(y&~1);1096y = tsr.test1_0_1(y&~1);1097y = tsr.test1_0_2(y&~1);1098y = tsr.test1_0_3(y&~1);1099y = tsr.test1_0_4(y&~1);1100y = tsr.test1_0_5(y&~1);1101y = tsr.test1_0_6(y&~1);1102y = tsr.test1_0_0((y&~1)+1);1103y = tsr.test1_0_1((y&~1)+1);1104y = tsr.test1_0_2((y&~1)+1);1105y = tsr.test1_0_3((y&~1)+1);1106y = tsr.test1_0_4((y&~1)+1);1107y = tsr.test1_0_5((y&~1)+1);1108y = tsr.test1_0_6((y&~1)+1);11091110y = tsr.test1_1_0(y&~1);1111y = tsr.test1_1_1(y&~1);1112y = tsr.test1_1_2(y&~1);1113y = tsr.test1_1_3(y&~1);1114y = tsr.test1_1_4(y&~1);1115y = tsr.test1_1_5(y&~1);1116y = tsr.test1_1_6(y&~1);1117y = tsr.test1_1_0((y&~1)+1);1118y = tsr.test1_1_1((y&~1)+1);1119y = tsr.test1_1_2((y&~1)+1);1120y = tsr.test1_1_3((y&~1)+1);1121y = tsr.test1_1_4((y&~1)+1);1122y = tsr.test1_1_5((y&~1)+1);1123y = tsr.test1_1_6((y&~1)+1);11241125y = tsr.test1_2_0(y&~1);1126y = tsr.test1_2_1(y&~1);1127y = tsr.test1_2_2(y&~1);1128y = tsr.test1_2_3(y&~1);1129y = tsr.test1_2_4(y&~1);1130y = tsr.test1_2_5(y&~1);1131y = tsr.test1_2_6(y&~1);1132y = tsr.test1_2_0((y&~1)+1);1133y = tsr.test1_2_1((y&~1)+1);1134y = tsr.test1_2_2((y&~1)+1);1135y = tsr.test1_2_3((y&~1)+1);1136y = tsr.test1_2_4((y&~1)+1);1137y = tsr.test1_2_5((y&~1)+1);1138y = tsr.test1_2_6((y&~1)+1);11391140y = tsr.test2_0_0(y&~3);1141y = tsr.test2_0_1(y&~3);1142y = tsr.test2_0_2(y&~3);1143y = tsr.test2_0_3(y&~3);1144y = tsr.test2_0_4(y&~3);1145y = tsr.test2_0_5(y&~3);1146y = tsr.test2_0_6(y&~3);1147y = tsr.test2_0_0((y&~3)+3);1148y = tsr.test2_0_1((y&~3)+3);1149y = tsr.test2_0_2((y&~3)+3);1150y = tsr.test2_0_3((y&~3)+3);1151y = tsr.test2_0_4((y&~3)+3);1152y = tsr.test2_0_5((y&~3)+3);1153y = tsr.test2_0_6((y&~3)+3);11541155y = tsr.test2_1_0(y&~3);1156y = tsr.test2_1_1(y&~3);1157y = tsr.test2_1_2(y&~3);1158y = tsr.test2_1_3(y&~3);1159y = tsr.test2_1_4(y&~3);1160y = tsr.test2_1_5(y&~3);1161y = tsr.test2_1_6(y&~3);1162y = tsr.test2_1_0((y&~3)+3);1163y = tsr.test2_1_1((y&~3)+3);1164y = tsr.test2_1_2((y&~3)+3);1165y = tsr.test2_1_3((y&~3)+3);1166y = tsr.test2_1_4((y&~3)+3);1167y = tsr.test2_1_5((y&~3)+3);1168y = tsr.test2_1_6((y&~3)+3);11691170y = tsr.test2_2_0(y&~3);1171y = tsr.test2_2_1(y&~3);1172y = tsr.test2_2_2(y&~3);1173y = tsr.test2_2_3(y&~3);1174y = tsr.test2_2_4(y&~3);1175y = tsr.test2_2_5(y&~3);1176y = tsr.test2_2_6(y&~3);1177y = tsr.test2_2_0((y&~3)+3);1178y = tsr.test2_2_1((y&~3)+3);1179y = tsr.test2_2_2((y&~3)+3);1180y = tsr.test2_2_3((y&~3)+3);1181y = tsr.test2_2_4((y&~3)+3);1182y = tsr.test2_2_5((y&~3)+3);1183y = tsr.test2_2_6((y&~3)+3);11841185}1186for (int i=0; i<10000; i++) {1187y = tsr.test0_0_0(y);1188y = tsr.test0_0_0(y);1189y = tsr.test0_0_1(y);1190y = tsr.test0_0_1(y);1191y = tsr.test0_0_2(y);1192y = tsr.test0_0_2(y);1193y = tsr.test0_0_3(y);1194y = tsr.test0_0_3(y);1195y = tsr.test0_0_4(y);1196y = tsr.test0_0_4(y);1197y = tsr.test0_0_5(y);1198y = tsr.test0_0_5(y);1199y = tsr.test0_0_6(y);1200y = tsr.test0_0_6(y);12011202y = tsr.test0_1_3(y);1203y = tsr.test0_1_3(y);1204y = tsr.test0_1_4(y);1205y = tsr.test0_1_4(y);1206y = tsr.test0_1_5(y);1207y = tsr.test0_1_5(y);1208y = tsr.test0_1_6(y);1209y = tsr.test0_1_6(y);12101211y = tsr.test1_0_0(y&~1);1212y = tsr.test1_0_1(y&~1);1213y = tsr.test1_0_2(y&~1);1214y = tsr.test1_0_3(y&~1);1215y = tsr.test1_0_4(y&~1);1216y = tsr.test1_0_5(y&~1);1217y = tsr.test1_0_6(y&~1);1218y = tsr.test1_0_0((y&~1)+1);1219y = tsr.test1_0_1((y&~1)+1);1220y = tsr.test1_0_2((y&~1)+1);1221y = tsr.test1_0_3((y&~1)+1);1222y = tsr.test1_0_4((y&~1)+1);1223y = tsr.test1_0_5((y&~1)+1);1224y = tsr.test1_0_6((y&~1)+1);12251226y = tsr.test1_1_0(y&~1);1227y = tsr.test1_1_1(y&~1);1228y = tsr.test1_1_2(y&~1);1229y = tsr.test1_1_3(y&~1);1230y = tsr.test1_1_4(y&~1);1231y = tsr.test1_1_5(y&~1);1232y = tsr.test1_1_6(y&~1);1233y = tsr.test1_1_0((y&~1)+1);1234y = tsr.test1_1_1((y&~1)+1);1235y = tsr.test1_1_2((y&~1)+1);1236y = tsr.test1_1_3((y&~1)+1);1237y = tsr.test1_1_4((y&~1)+1);1238y = tsr.test1_1_5((y&~1)+1);1239y = tsr.test1_1_6((y&~1)+1);12401241y = tsr.test1_2_0(y&~1);1242y = tsr.test1_2_1(y&~1);1243y = tsr.test1_2_2(y&~1);1244y = tsr.test1_2_3(y&~1);1245y = tsr.test1_2_4(y&~1);1246y = tsr.test1_2_5(y&~1);1247y = tsr.test1_2_6(y&~1);1248y = tsr.test1_2_0((y&~1)+1);1249y = tsr.test1_2_1((y&~1)+1);1250y = tsr.test1_2_2((y&~1)+1);1251y = tsr.test1_2_3((y&~1)+1);1252y = tsr.test1_2_4((y&~1)+1);1253y = tsr.test1_2_5((y&~1)+1);1254y = tsr.test1_2_6((y&~1)+1);12551256y = tsr.test2_0_0(y&~3);1257y = tsr.test2_0_1(y&~3);1258y = tsr.test2_0_2(y&~3);1259y = tsr.test2_0_3(y&~3);1260y = tsr.test2_0_4(y&~3);1261y = tsr.test2_0_5(y&~3);1262y = tsr.test2_0_6(y&~3);1263y = tsr.test2_0_0((y&~3)+3);1264y = tsr.test2_0_1((y&~3)+3);1265y = tsr.test2_0_2((y&~3)+3);1266y = tsr.test2_0_3((y&~3)+3);1267y = tsr.test2_0_4((y&~3)+3);1268y = tsr.test2_0_5((y&~3)+3);1269y = tsr.test2_0_6((y&~3)+3);12701271y = tsr.test2_1_0(y&~3);1272y = tsr.test2_1_1(y&~3);1273y = tsr.test2_1_2(y&~3);1274y = tsr.test2_1_3(y&~3);1275y = tsr.test2_1_4(y&~3);1276y = tsr.test2_1_5(y&~3);1277y = tsr.test2_1_6(y&~3);1278y = tsr.test2_1_0((y&~3)+3);1279y = tsr.test2_1_1((y&~3)+3);1280y = tsr.test2_1_2((y&~3)+3);1281y = tsr.test2_1_3((y&~3)+3);1282y = tsr.test2_1_4((y&~3)+3);1283y = tsr.test2_1_5((y&~3)+3);1284y = tsr.test2_1_6((y&~3)+3);12851286y = tsr.test2_2_0(y&~3);1287y = tsr.test2_2_1(y&~3);1288y = tsr.test2_2_2(y&~3);1289y = tsr.test2_2_3(y&~3);1290y = tsr.test2_2_4(y&~3);1291y = tsr.test2_2_5(y&~3);1292y = tsr.test2_2_6(y&~3);1293y = tsr.test2_2_0((y&~3)+3);1294y = tsr.test2_2_1((y&~3)+3);1295y = tsr.test2_2_2((y&~3)+3);1296y = tsr.test2_2_3((y&~3)+3);1297y = tsr.test2_2_4((y&~3)+3);1298y = tsr.test2_2_5((y&~3)+3);1299y = tsr.test2_2_6((y&~3)+3);13001301}13021303int z = 0;1304y = tsr.test0_0_0(0);1305System.out.println("After 'test0_0_0' y=" + y);1306y = tsr.test0_0_1(0);1307System.out.println("After 'test0_0_1' y=" + y);1308y = tsr.test0_0_2(0);1309System.out.println("After 'test0_0_2' y=" + y);1310y = tsr.test0_0_3(0);1311System.out.println("After 'test0_0_3' y=" + y);1312y = tsr.test0_0_4(0);1313System.out.println("After 'test0_0_4' y=" + y);1314y = tsr.test0_0_5(0);1315System.out.println("After 'test0_0_5' y=" + y);1316y = tsr.test0_0_6(0);1317System.out.println("After 'test0_0_6' y=" + y);1318y = tsr.test0_1_3(0);1319System.out.println("After 'test0_1_3' y=" + y);1320y = tsr.test0_1_4(0);1321System.out.println("After 'test0_1_4' y=" + y);1322y = tsr.test0_1_5(0);1323System.out.println("After 'test0_1_5' y=" + y);1324y = tsr.test0_1_6(0);1325System.out.println("After 'test0_1_6' y=" + y);13261327y = tsr.test1_0_0(0);1328System.out.println("After 'test1_0_0' y=" + y);1329y = tsr.test1_0_1(0);1330System.out.println("After 'test1_0_1' y=" + y);1331y = tsr.test1_0_2(0);1332System.out.println("After 'test1_0_2' y=" + y);1333y = tsr.test1_0_3(0);1334System.out.println("After 'test1_0_3' y=" + y);1335y = tsr.test1_0_4(0);1336System.out.println("After 'test1_0_4' y=" + y);1337y = tsr.test1_0_5(0);1338System.out.println("After 'test1_0_5' y=" + y);1339y = tsr.test1_0_6(0);1340System.out.println("After 'test1_0_6' y=" + y);13411342y = tsr.test1_1_0(0);1343System.out.println("After 'test1_1_0' y=" + y);1344y = tsr.test1_1_1(0);1345System.out.println("After 'test1_1_1' y=" + y);1346y = tsr.test1_1_2(0);1347System.out.println("After 'test1_1_2' y=" + y);1348y = tsr.test1_1_3(0);1349System.out.println("After 'test1_1_3' y=" + y);1350y = tsr.test1_1_4(0);1351System.out.println("After 'test1_1_4' y=" + y);1352y = tsr.test1_1_5(0);1353System.out.println("After 'test1_1_5' y=" + y);1354y = tsr.test1_1_6(0);1355System.out.println("After 'test1_1_6' y=" + y);13561357y = tsr.test1_2_0(0);1358System.out.println("After 'test1_2_0' y=" + y);1359y = tsr.test1_2_1(0);1360System.out.println("After 'test1_2_1' y=" + y);1361y = tsr.test1_2_2(0);1362System.out.println("After 'test1_2_2' y=" + y);1363y = tsr.test1_2_3(0);1364System.out.println("After 'test1_2_3' y=" + y);1365y = tsr.test1_2_4(0);1366System.out.println("After 'test1_2_4' y=" + y);1367y = tsr.test1_2_5(0);1368System.out.println("After 'test1_2_5' y=" + y);1369y = tsr.test1_2_6(0);1370System.out.println("After 'test1_2_6' y=" + y);13711372y = tsr.test2_0_0(0);1373System.out.println("After 'test2_0_0' y=" + y);1374y = tsr.test2_0_1(0);1375System.out.println("After 'test2_0_1' y=" + y);1376y = tsr.test2_0_2(0);1377System.out.println("After 'test2_0_2' y=" + y);1378y = tsr.test2_0_3(0);1379System.out.println("After 'test2_0_3' y=" + y);1380y = tsr.test2_0_4(0);1381System.out.println("After 'test2_0_4' y=" + y);1382y = tsr.test2_0_5(0);1383System.out.println("After 'test2_0_5' y=" + y);1384y = tsr.test2_0_6(0);1385System.out.println("After 'test2_0_6' y=" + y);13861387y = tsr.test2_1_0(0);1388System.out.println("After 'test2_1_0' y=" + y);1389y = tsr.test2_1_1(0);1390System.out.println("After 'test2_1_1' y=" + y);1391y = tsr.test2_1_2(0);1392System.out.println("After 'test2_1_2' y=" + y);1393y = tsr.test2_1_3(0);1394System.out.println("After 'test2_1_3' y=" + y);1395y = tsr.test2_1_4(0);1396System.out.println("After 'test2_1_4' y=" + y);1397y = tsr.test2_1_5(0);1398System.out.println("After 'test2_1_5' y=" + y);1399y = tsr.test2_1_6(0);1400System.out.println("After 'test2_1_6' y=" + y);14011402y = tsr.test2_2_0(0);1403System.out.println("After 'test2_2_0' y=" + y);1404y = tsr.test2_2_1(0);1405System.out.println("After 'test2_2_1' y=" + y);1406y = tsr.test2_2_2(0);1407System.out.println("After 'test2_2_2' y=" + y);1408y = tsr.test2_2_3(0);1409System.out.println("After 'test2_2_3' y=" + y);1410y = tsr.test2_2_4(0);1411System.out.println("After 'test2_2_4' y=" + y);1412y = tsr.test2_2_5(0);1413System.out.println("After 'test2_2_5' y=" + y);1414y = tsr.test2_2_6(0);1415System.out.println("After 'test2_2_6' y=" + y);14161417}1418}141914201421