Path: blob/master/test/hotspot/jtreg/compiler/escapeAnalysis/Test6726999.java
41149 views
/*1* Copyright (c) 2008, 2018, 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*/2223/*24* @test25* @bug 672699926* @summary nsk/stress/jck12a/jck12a010 assert(n != NULL,"Bad immediate dominator info.");27*28* @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -Xbatch -XX:+EliminateAutoBox -XX:AutoBoxCacheMax=2000029* -XX:CompileCommand=exclude,compiler.escapeAnalysis.Test6726999::dummy30* compiler.escapeAnalysis.Test672699931*/3233package compiler.escapeAnalysis;3435public class Test6726999 {36static class Point {37int x;38int y;39}4041void dummy() {42// Empty method to verify correctness of DebugInfo.43// Use -XX:CompileCommand=exclude,Test.dummy44}4546int test0_0_0(int y) {47int x = 3;48Point p = new Point();49dummy();50p.x = x;51p.y = 3 * x + y;52return p.x * p.y;53}5455int test0_0_1(int y) {56int x = 3;57Point p = null;58dummy();59p = new Point();60dummy();61p.x = x;62p.y = 3 * x + y;63return p.x * p.y;64}6566int test0_0_2(int y) {67int x = 3;68Point p = new Point();69dummy();70p = new Point();71dummy();72p.x = x;73p.y = 3 * x + y;74return p.x * p.y;75}7677int test0_0_3(int y) {78int x = 3;79Point p[] = new Point[1];80p[0] = new Point();81dummy();82p[0].x = x;83p[0].y = 3 * x + y;84return p[0].x * p[0].y;85}8687int test0_0_4(int y) {88int x = 3;89Point p[] = new Point[1];90dummy();91p[0] = new Point();92dummy();93p[0].x = x;94p[0].y = 3 * x + y;95return p[0].x * p[0].y;96}9798int test0_0_5(int y) {99int x = 3;100Point p[] = new Point[1];101dummy();102p[0] = null;103dummy();104p[0] = new Point();105dummy();106p[0].x = x;107p[0].y = 3 * x + y;108return p[0].x * p[0].y;109}110111int test0_0_6(int y) {112int x = 3;113Point p[] = new Point[1];114p[0] = new Point();115dummy();116p[0] = new Point();117dummy();118p[0].x = x;119p[0].y = 3 * x + y;120return p[0].x * p[0].y;121}122123int test0_1_3(int y) {124int x = 3;125Point p1 = new Point();126dummy();127Point p[] = new Point[1];128p[0] = p1;129dummy();130p[0].x = x;131p[0].y = 3 * x + y;132return p[0].x * p[0].y;133}134135int test0_1_4(int y) {136int x = 3;137Point p1 = new Point();138dummy();139Point p[] = new Point[1];140dummy();141p[0] = p1;142dummy();143p[0].x = x;144p[0].y = 3 * x + y;145return p[0].x * p[0].y;146}147148int test0_1_5(int y) {149int x = 3;150Point p1 = new Point();151dummy();152Point p[] = new Point[1];153dummy();154p[0] = null;155dummy();156p[0] = p1;157dummy();158p[0].x = x;159p[0].y = 3 * x + y;160return p[0].x * p[0].y;161}162163int test0_1_6(int y) {164int x = 3;165Point p1 = new Point();166dummy();167Point p2 = new Point();168dummy();169Point p[] = new Point[1];170p[0] = p1;171dummy();172p[0] = p2;173dummy();174p[0].x = x;175p[0].y = 3 * x + y;176return p[0].x * p[0].y;177}178179int test1_0_0(int y) {180Point p = new Point();181if ((y & 1) == 1) {182p = new Point();183}184int x = 3;185p.x = x;186p.y = 3 * x + y;187dummy();188return p.x * p.y;189}190191int test1_0_1(int y) {192Point p = null;193if ((y & 1) == 1) {194p = new Point();195}196int x = 3;197if (p == null)198return (3 * x + y) * x;199p.x = x;200p.y = 3 * x + y;201dummy();202return p.x * p.y;203}204205int test1_0_2(int y) {206Point p[] = new Point[1];207if ((y & 1) == 1) {208p[0] = new Point();209}210int x = 3;211if (p[0] == null)212return (3 * x + y) * x;213p[0].x = x;214p[0].y = 3 * x + y;215dummy();216return p[0].x * p[0].y;217}218219int test1_0_3(int y) {220Point p[] = new Point[1];221p[0] = null;222if ((y & 1) == 1) {223p[0] = new Point();224}225int x = 3;226if (p[0] == null)227return (3 * x + y) * x;228p[0].x = x;229p[0].y = 3 * x + y;230dummy();231return p[0].x * p[0].y;232}233234int test1_0_4(int y) {235Point p[] = new Point[1];236p[0] = new Point();237if ((y & 1) == 1) {238p[0] = new Point();239}240int x = 3;241if (p[0] == null)242return (3 * x + y) * x;243p[0].x = x;244p[0].y = 3 * x + y;245dummy();246return p[0].x * p[0].y;247}248249int test1_0_5(int y) {250Point p[] = new Point[1];251if ((y & 1) == 1) {252p[0] = new Point();253} else {254p[0] = null;255}256int x = 3;257if (p[0] == null)258return (3 * x + y) * x;259p[0].x = x;260p[0].y = 3 * x + y;261dummy();262return p[0].x * p[0].y;263}264265int test1_0_6(int y) {266Point p[] = new Point[1];267if ((y & 1) == 1) {268p[0] = new Point();269} else {270p[0] = new Point();271}272int x = 3;273if (p[0] == null)274return (3 * x + y) * x;275p[0].x = x;276p[0].y = 3 * x + y;277dummy();278return p[0].x * p[0].y;279}280281int test1_1_0(int y) {282Point p = new Point();283if ((y & 1) == 1) {284dummy();285p = new Point();286dummy();287}288int x = 3;289p.x = x;290p.y = 3 * x + y;291dummy();292return p.x * p.y;293}294295int test1_1_1(int y) {296Point p = null;297if ((y & 1) == 1) {298dummy();299p = new Point();300dummy();301}302int x = 3;303if (p == null)304return (3 * x + y) * x;305p.x = x;306p.y = 3 * x + y;307dummy();308return p.x * p.y;309}310311int test1_1_2(int y) {312Point p[] = new Point[1];313if ((y & 1) == 1) {314dummy();315p[0] = new Point();316dummy();317}318int x = 3;319if (p[0] == null)320return (3 * x + y) * x;321p[0].x = x;322p[0].y = 3 * x + y;323dummy();324return p[0].x * p[0].y;325}326327int test1_1_3(int y) {328Point p[] = new Point[1];329dummy();330p[0] = null;331if ((y & 1) == 1) {332dummy();333p[0] = new Point();334dummy();335}336int x = 3;337if (p[0] == null)338return (3 * x + y) * x;339p[0].x = x;340p[0].y = 3 * x + y;341dummy();342return p[0].x * p[0].y;343}344345int test1_1_4(int y) {346Point p[] = new Point[1];347dummy();348p[0] = new Point();349if ((y & 1) == 1) {350dummy();351p[0] = new Point();352dummy();353}354int x = 3;355if (p[0] == null)356return (3 * x + y) * x;357p[0].x = x;358p[0].y = 3 * x + y;359dummy();360return p[0].x * p[0].y;361}362363int test1_1_5(int y) {364Point p[] = new Point[1];365if ((y & 1) == 1) {366dummy();367p[0] = new Point();368dummy();369} else {370dummy();371p[0] = null;372dummy();373}374int x = 3;375if (p[0] == null)376return (3 * x + y) * x;377p[0].x = x;378p[0].y = 3 * x + y;379dummy();380return p[0].x * p[0].y;381}382383int test1_1_6(int y) {384Point p[] = new Point[1];385if ((y & 1) == 1) {386dummy();387p[0] = new Point();388dummy();389} else {390dummy();391p[0] = new Point();392dummy();393}394int x = 3;395if (p[0] == null)396return (3 * x + y) * x;397p[0].x = x;398p[0].y = 3 * x + y;399dummy();400return p[0].x * p[0].y;401}402403int test1_2_0(int y) {404Point p1 = new Point();405dummy();406Point p = new Point();407if ((y & 1) == 1) {408dummy();409p = p1;410dummy();411}412int x = 3;413p.x = x;414p.y = 3 * x + y;415dummy();416return p.x * p.y;417}418419int test1_2_1(int y) {420Point p1 = new Point();421dummy();422Point p = null;423if ((y & 1) == 1) {424dummy();425p = p1;426dummy();427}428int x = 3;429if (p == null)430return (3 * x + y) * x;431p.x = x;432p.y = 3 * x + y;433dummy();434return p.x * p.y;435}436437int test1_2_2(int y) {438Point p1 = new Point();439dummy();440Point p[] = new Point[1];441if ((y & 1) == 1) {442dummy();443p[0] = p1;444dummy();445}446int x = 3;447if (p[0] == null)448return (3 * x + y) * x;449p[0].x = x;450p[0].y = 3 * x + y;451dummy();452return p[0].x * p[0].y;453}454455int test1_2_3(int y) {456Point p1 = new Point();457dummy();458Point p[] = new Point[1];459dummy();460p[0] = null;461if ((y & 1) == 1) {462dummy();463p[0] = p1;464dummy();465}466int x = 3;467if (p[0] == null)468return (3 * x + y) * x;469p[0].x = x;470p[0].y = 3 * x + y;471dummy();472return p[0].x * p[0].y;473}474475int test1_2_4(int y) {476Point p1 = new Point();477dummy();478Point p2 = new Point();479dummy();480Point p[] = new Point[1];481dummy();482p[0] = p1;483if ((y & 1) == 1) {484dummy();485p[0] = p2;486dummy();487}488int x = 3;489if (p[0] == null)490return (3 * x + y) * x;491p[0].x = x;492p[0].y = 3 * x + y;493dummy();494return p[0].x * p[0].y;495}496497int test1_2_5(int y) {498Point p1 = new Point();499dummy();500Point p[] = new Point[1];501if ((y & 1) == 1) {502dummy();503p[0] = p1;504dummy();505} else {506dummy();507p[0] = null;508dummy();509}510int x = 3;511if (p[0] == null)512return (3 * x + y) * x;513p[0].x = x;514p[0].y = 3 * x + y;515dummy();516return p[0].x * p[0].y;517}518519int test1_2_6(int y) {520Point p1 = new Point();521dummy();522Point p2 = new Point();523dummy();524Point p[] = new Point[1];525if ((y & 1) == 1) {526dummy();527p[0] = p1;528dummy();529} else {530dummy();531p[0] = p2;532dummy();533}534int x = 3;535if (p[0] == null)536return (3 * x + y) * x;537p[0].x = x;538p[0].y = 3 * x + y;539dummy();540return p[0].x * p[0].y;541}542543int test2_0_0(int y) {544Point p = new Point();545int lim = (y & 3);546for (int i = 0; i < lim; i++) {547p = new Point();548}549int x = 3;550p.x = x;551p.y = 3 * x + y;552dummy();553return p.x * p.y;554}555556int test2_0_1(int y) {557Point p = null;558int lim = (y & 3);559for (int i = 0; i < lim; i++) {560p = new Point();561}562int x = 3;563if (p == null)564return (3 * x + y) * x;565p.x = x;566p.y = 3 * x + y;567dummy();568return p.x * p.y;569}570571int test2_0_2(int y) {572Point p[] = new Point[3];573int lim = (y & 3);574for (int i = 0; i < lim; i++) {575p[i] = new Point();576}577int x = 3;578int j = (y & 1);579if (p[j] == null)580return (3 * x + y) * x;581p[j].x = x;582p[j].y = 3 * x + y;583dummy();584return p[j].x * p[0].y;585}586587int test2_0_3(int y) {588Point p[] = new Point[3];589int j = (y & 1);590p[j] = null;591int lim = (y & 3);592for (int i = 0; i < lim; i++) {593p[i] = new Point();594}595int x = 3;596if (p[j] == null)597return (3 * x + y) * x;598p[j].x = x;599p[j].y = 3 * x + y;600dummy();601return p[j].x * p[0].y;602}603604int test2_0_4(int y) {605Point p[] = new Point[3];606int j = (y & 1);607p[j] = new Point();608int lim = (y & 3);609for (int i = 0; i < lim; i++) {610p[i] = new Point();611}612int x = 3;613if (p[j] == null)614return (3 * x + y) * x;615p[j].x = x;616p[j].y = 3 * x + y;617dummy();618return p[j].x * p[0].y;619}620621int test2_0_5(int y) {622Point p[] = new Point[3];623int lim = (y & 3);624for (int i = 0; i < lim; i++) {625p[i] = new Point();626}627for (int i = 0; i < lim; i++) {628p[i] = null;629}630int x = 3;631int j = (y & 1);632if (p[j] == null)633return (3 * x + y) * x;634p[j].x = x;635p[j].y = 3 * x + y;636dummy();637return p[j].x * p[0].y;638}639640int test2_0_6(int y) {641Point p[] = new Point[3];642int lim = (y & 3);643for (int i = 0; i < lim; i++) {644p[i] = new Point();645}646for (int i = 0; i < lim; i++) {647p[i] = new Point();648}649int x = 3;650int j = (y & 1);651if (p[j] == null)652return (3 * x + y) * x;653p[j].x = x;654p[j].y = 3 * x + y;655dummy();656return p[j].x * p[0].y;657}658659int test2_1_0(int y) {660Point p = new Point();661int lim = (y & 3);662for (int i = 0; i < lim; i++) {663dummy();664p = new Point();665dummy();666}667int x = 3;668p.x = x;669p.y = 3 * x + y;670dummy();671return p.x * p.y;672}673674int test2_1_1(int y) {675Point p = null;676int lim = (y & 3);677for (int i = 0; i < lim; i++) {678dummy();679p = new Point();680dummy();681}682int x = 3;683if (p == null)684return (3 * x + y) * x;685p.x = x;686p.y = 3 * x + y;687dummy();688return p.x * p.y;689}690691int test2_1_2(int y) {692Point p[] = new Point[3];693int lim = (y & 3);694for (int i = 0; i < lim; i++) {695dummy();696p[i] = new Point();697dummy();698}699int x = 3;700int j = (y & 1);701if (p[j] == null)702return (3 * x + y) * x;703p[j].x = x;704p[j].y = 3 * x + y;705dummy();706return p[j].x * p[0].y;707}708709int test2_1_3(int y) {710Point p[] = new Point[3];711dummy();712int j = (y & 1);713p[j] = null;714int lim = (y & 3);715for (int i = 0; i < lim; i++) {716dummy();717p[i] = new Point();718dummy();719}720int x = 3;721if (p[j] == null)722return (3 * x + y) * x;723p[j].x = x;724p[j].y = 3 * x + y;725dummy();726return p[j].x * p[0].y;727}728729int test2_1_4(int y) {730Point p[] = new Point[3];731dummy();732int j = (y & 1);733p[j] = new Point();734int lim = (y & 3);735for (int i = 0; i < lim; i++) {736dummy();737p[i] = new Point();738dummy();739}740int x = 3;741if (p[j] == null)742return (3 * x + y) * x;743p[j].x = x;744p[j].y = 3 * x + y;745dummy();746return p[j].x * p[0].y;747}748749int test2_1_5(int y) {750Point p[] = new Point[3];751int lim = (y & 3);752for (int i = 0; i < lim; i++) {753dummy();754p[i] = new Point();755dummy();756}757for (int i = 0; i < lim; i++) {758dummy();759p[i] = null;760dummy();761}762int x = 3;763int j = (y & 1);764if (p[j] == null)765return (3 * x + y) * x;766p[j].x = x;767p[j].y = 3 * x + y;768dummy();769return p[j].x * p[0].y;770}771772int test2_1_6(int y) {773Point p[] = new Point[3];774int lim = (y & 3);775for (int i = 0; i < lim; i++) {776dummy();777p[i] = new Point();778dummy();779}780for (int i = 0; i < lim; i++) {781dummy();782p[i] = new Point();783dummy();784}785int x = 3;786int j = (y & 1);787if (p[j] == null)788return (3 * x + y) * x;789p[j].x = x;790p[j].y = 3 * x + y;791dummy();792return p[j].x * p[0].y;793}794795int test2_2_0(int y) {796Point p1 = new Point();797dummy();798Point p = new Point();799int lim = (y & 3);800for (int i = 0; i < lim; i++) {801dummy();802p = p1;803dummy();804}805int x = 3;806p.x = x;807p.y = 3 * x + y;808dummy();809return p.x * p.y;810}811812int test2_2_1(int y) {813Point p1 = new Point();814dummy();815Point p = null;816int lim = (y & 3);817for (int i = 0; i < lim; i++) {818dummy();819p = p1;820dummy();821}822int x = 3;823if (p == null)824return (3 * x + y) * x;825p.x = x;826p.y = 3 * x + y;827dummy();828return p.x * p.y;829}830831int test2_2_2(int y) {832Point p1 = new Point();833dummy();834Point p[] = new Point[3];835int lim = (y & 3);836for (int i = 0; i < lim; i++) {837dummy();838p[i] = p1;839dummy();840}841int x = 3;842int j = (y & 1);843if (p[j] == null)844return (3 * x + y) * x;845p[j].x = x;846p[j].y = 3 * x + y;847dummy();848return p[j].x * p[0].y;849}850851int test2_2_3(int y) {852Point p1 = new Point();853dummy();854Point p[] = new Point[3];855dummy();856int j = (y & 1);857p[j] = null;858int lim = (y & 3);859for (int i = 0; i < lim; i++) {860dummy();861p[i] = p1;862dummy();863}864int x = 3;865if (p[j] == null)866return (3 * x + y) * x;867p[j].x = x;868p[j].y = 3 * x + y;869dummy();870return p[j].x * p[0].y;871}872873int test2_2_4(int y) {874Point p1 = new Point();875dummy();876Point p2 = new Point();877dummy();878Point p[] = new Point[3];879dummy();880int j = (y & 1);881p[j] = p1;882int lim = (y & 3);883for (int i = 0; i < lim; i++) {884dummy();885p[i] = p2;886dummy();887}888int x = 3;889if (p[j] == null)890return (3 * x + y) * x;891p[j].x = x;892p[j].y = 3 * x + y;893dummy();894return p[j].x * p[0].y;895}896897int test2_2_5(int y) {898Point p1 = new Point();899dummy();900Point p[] = new Point[3];901int lim = (y & 3);902for (int i = 0; i < lim; i++) {903dummy();904p[i] = p1;905dummy();906}907for (int i = 0; i < lim; i++) {908dummy();909p[i] = null;910dummy();911}912int x = 3;913int j = (y & 1);914if (p[j] == null)915return (3 * x + y) * x;916p[j].x = x;917p[j].y = 3 * x + y;918dummy();919return p[j].x * p[0].y;920}921922int test2_2_6(int y) {923Point p1 = new Point();924dummy();925Point p2 = new Point();926dummy();927Point p[] = new Point[3];928int lim = (y & 3);929for (int i = 0; i < lim; i++) {930dummy();931p[i] = p1;932dummy();933}934for (int i = 0; i < lim; i++) {935dummy();936p[i] = p2;937dummy();938}939int x = 3;940int j = (y & 1);941if (p[j] == null)942return (3 * x + y) * x;943p[j].x = x;944p[j].y = 3 * x + y;945dummy();946return p[j].x * p[0].y;947}948949public static void main(String args[]) {950Test6726999 tsr = new Test6726999();951Point p = new Point();952Point ptmp = p;953Class cls = Point.class;954int y = 0;955for (int i = 0; i < 10000; i++) {956y = tsr.test0_0_0(y);957y = tsr.test0_0_0(y);958y = tsr.test0_0_1(y);959y = tsr.test0_0_1(y);960y = tsr.test0_0_2(y);961y = tsr.test0_0_2(y);962y = tsr.test0_0_3(y);963y = tsr.test0_0_3(y);964y = tsr.test0_0_4(y);965y = tsr.test0_0_4(y);966y = tsr.test0_0_5(y);967y = tsr.test0_0_5(y);968y = tsr.test0_0_6(y);969y = tsr.test0_0_6(y);970971y = tsr.test0_1_3(y);972y = tsr.test0_1_3(y);973y = tsr.test0_1_4(y);974y = tsr.test0_1_4(y);975y = tsr.test0_1_5(y);976y = tsr.test0_1_5(y);977y = tsr.test0_1_6(y);978y = tsr.test0_1_6(y);979980y = tsr.test1_0_0(y & ~1);981y = tsr.test1_0_1(y & ~1);982y = tsr.test1_0_2(y & ~1);983y = tsr.test1_0_3(y & ~1);984y = tsr.test1_0_4(y & ~1);985y = tsr.test1_0_5(y & ~1);986y = tsr.test1_0_6(y & ~1);987y = tsr.test1_0_0((y & ~1) + 1);988y = tsr.test1_0_1((y & ~1) + 1);989y = tsr.test1_0_2((y & ~1) + 1);990y = tsr.test1_0_3((y & ~1) + 1);991y = tsr.test1_0_4((y & ~1) + 1);992y = tsr.test1_0_5((y & ~1) + 1);993y = tsr.test1_0_6((y & ~1) + 1);994995y = tsr.test1_1_0(y & ~1);996y = tsr.test1_1_1(y & ~1);997y = tsr.test1_1_2(y & ~1);998y = tsr.test1_1_3(y & ~1);999y = tsr.test1_1_4(y & ~1);1000y = tsr.test1_1_5(y & ~1);1001y = tsr.test1_1_6(y & ~1);1002y = tsr.test1_1_0((y & ~1) + 1);1003y = tsr.test1_1_1((y & ~1) + 1);1004y = tsr.test1_1_2((y & ~1) + 1);1005y = tsr.test1_1_3((y & ~1) + 1);1006y = tsr.test1_1_4((y & ~1) + 1);1007y = tsr.test1_1_5((y & ~1) + 1);1008y = tsr.test1_1_6((y & ~1) + 1);10091010y = tsr.test1_2_0(y & ~1);1011y = tsr.test1_2_1(y & ~1);1012y = tsr.test1_2_2(y & ~1);1013y = tsr.test1_2_3(y & ~1);1014y = tsr.test1_2_4(y & ~1);1015y = tsr.test1_2_5(y & ~1);1016y = tsr.test1_2_6(y & ~1);1017y = tsr.test1_2_0((y & ~1) + 1);1018y = tsr.test1_2_1((y & ~1) + 1);1019y = tsr.test1_2_2((y & ~1) + 1);1020y = tsr.test1_2_3((y & ~1) + 1);1021y = tsr.test1_2_4((y & ~1) + 1);1022y = tsr.test1_2_5((y & ~1) + 1);1023y = tsr.test1_2_6((y & ~1) + 1);10241025y = tsr.test2_0_0(y & ~3);1026y = tsr.test2_0_1(y & ~3);1027y = tsr.test2_0_2(y & ~3);1028y = tsr.test2_0_3(y & ~3);1029y = tsr.test2_0_4(y & ~3);1030y = tsr.test2_0_5(y & ~3);1031y = tsr.test2_0_6(y & ~3);1032y = tsr.test2_0_0((y & ~3) + 3);1033y = tsr.test2_0_1((y & ~3) + 3);1034y = tsr.test2_0_2((y & ~3) + 3);1035y = tsr.test2_0_3((y & ~3) + 3);1036y = tsr.test2_0_4((y & ~3) + 3);1037y = tsr.test2_0_5((y & ~3) + 3);1038y = tsr.test2_0_6((y & ~3) + 3);10391040y = tsr.test2_1_0(y & ~3);1041y = tsr.test2_1_1(y & ~3);1042y = tsr.test2_1_2(y & ~3);1043y = tsr.test2_1_3(y & ~3);1044y = tsr.test2_1_4(y & ~3);1045y = tsr.test2_1_5(y & ~3);1046y = tsr.test2_1_6(y & ~3);1047y = tsr.test2_1_0((y & ~3) + 3);1048y = tsr.test2_1_1((y & ~3) + 3);1049y = tsr.test2_1_2((y & ~3) + 3);1050y = tsr.test2_1_3((y & ~3) + 3);1051y = tsr.test2_1_4((y & ~3) + 3);1052y = tsr.test2_1_5((y & ~3) + 3);1053y = tsr.test2_1_6((y & ~3) + 3);10541055y = tsr.test2_2_0(y & ~3);1056y = tsr.test2_2_1(y & ~3);1057y = tsr.test2_2_2(y & ~3);1058y = tsr.test2_2_3(y & ~3);1059y = tsr.test2_2_4(y & ~3);1060y = tsr.test2_2_5(y & ~3);1061y = tsr.test2_2_6(y & ~3);1062y = tsr.test2_2_0((y & ~3) + 3);1063y = tsr.test2_2_1((y & ~3) + 3);1064y = tsr.test2_2_2((y & ~3) + 3);1065y = tsr.test2_2_3((y & ~3) + 3);1066y = tsr.test2_2_4((y & ~3) + 3);1067y = tsr.test2_2_5((y & ~3) + 3);1068y = tsr.test2_2_6((y & ~3) + 3);10691070}1071for (int i = 0; i < 10000; i++) {1072y = tsr.test0_0_0(y);1073y = tsr.test0_0_0(y);1074y = tsr.test0_0_1(y);1075y = tsr.test0_0_1(y);1076y = tsr.test0_0_2(y);1077y = tsr.test0_0_2(y);1078y = tsr.test0_0_3(y);1079y = tsr.test0_0_3(y);1080y = tsr.test0_0_4(y);1081y = tsr.test0_0_4(y);1082y = tsr.test0_0_5(y);1083y = tsr.test0_0_5(y);1084y = tsr.test0_0_6(y);1085y = tsr.test0_0_6(y);10861087y = tsr.test0_1_3(y);1088y = tsr.test0_1_3(y);1089y = tsr.test0_1_4(y);1090y = tsr.test0_1_4(y);1091y = tsr.test0_1_5(y);1092y = tsr.test0_1_5(y);1093y = tsr.test0_1_6(y);1094y = tsr.test0_1_6(y);10951096y = tsr.test1_0_0(y & ~1);1097y = tsr.test1_0_1(y & ~1);1098y = tsr.test1_0_2(y & ~1);1099y = tsr.test1_0_3(y & ~1);1100y = tsr.test1_0_4(y & ~1);1101y = tsr.test1_0_5(y & ~1);1102y = tsr.test1_0_6(y & ~1);1103y = tsr.test1_0_0((y & ~1) + 1);1104y = tsr.test1_0_1((y & ~1) + 1);1105y = tsr.test1_0_2((y & ~1) + 1);1106y = tsr.test1_0_3((y & ~1) + 1);1107y = tsr.test1_0_4((y & ~1) + 1);1108y = tsr.test1_0_5((y & ~1) + 1);1109y = tsr.test1_0_6((y & ~1) + 1);11101111y = tsr.test1_1_0(y & ~1);1112y = tsr.test1_1_1(y & ~1);1113y = tsr.test1_1_2(y & ~1);1114y = tsr.test1_1_3(y & ~1);1115y = tsr.test1_1_4(y & ~1);1116y = tsr.test1_1_5(y & ~1);1117y = tsr.test1_1_6(y & ~1);1118y = tsr.test1_1_0((y & ~1) + 1);1119y = tsr.test1_1_1((y & ~1) + 1);1120y = tsr.test1_1_2((y & ~1) + 1);1121y = tsr.test1_1_3((y & ~1) + 1);1122y = tsr.test1_1_4((y & ~1) + 1);1123y = tsr.test1_1_5((y & ~1) + 1);1124y = tsr.test1_1_6((y & ~1) + 1);11251126y = tsr.test1_2_0(y & ~1);1127y = tsr.test1_2_1(y & ~1);1128y = tsr.test1_2_2(y & ~1);1129y = tsr.test1_2_3(y & ~1);1130y = tsr.test1_2_4(y & ~1);1131y = tsr.test1_2_5(y & ~1);1132y = tsr.test1_2_6(y & ~1);1133y = tsr.test1_2_0((y & ~1) + 1);1134y = tsr.test1_2_1((y & ~1) + 1);1135y = tsr.test1_2_2((y & ~1) + 1);1136y = tsr.test1_2_3((y & ~1) + 1);1137y = tsr.test1_2_4((y & ~1) + 1);1138y = tsr.test1_2_5((y & ~1) + 1);1139y = tsr.test1_2_6((y & ~1) + 1);11401141y = tsr.test2_0_0(y & ~3);1142y = tsr.test2_0_1(y & ~3);1143y = tsr.test2_0_2(y & ~3);1144y = tsr.test2_0_3(y & ~3);1145y = tsr.test2_0_4(y & ~3);1146y = tsr.test2_0_5(y & ~3);1147y = tsr.test2_0_6(y & ~3);1148y = tsr.test2_0_0((y & ~3) + 3);1149y = tsr.test2_0_1((y & ~3) + 3);1150y = tsr.test2_0_2((y & ~3) + 3);1151y = tsr.test2_0_3((y & ~3) + 3);1152y = tsr.test2_0_4((y & ~3) + 3);1153y = tsr.test2_0_5((y & ~3) + 3);1154y = tsr.test2_0_6((y & ~3) + 3);11551156y = tsr.test2_1_0(y & ~3);1157y = tsr.test2_1_1(y & ~3);1158y = tsr.test2_1_2(y & ~3);1159y = tsr.test2_1_3(y & ~3);1160y = tsr.test2_1_4(y & ~3);1161y = tsr.test2_1_5(y & ~3);1162y = tsr.test2_1_6(y & ~3);1163y = tsr.test2_1_0((y & ~3) + 3);1164y = tsr.test2_1_1((y & ~3) + 3);1165y = tsr.test2_1_2((y & ~3) + 3);1166y = tsr.test2_1_3((y & ~3) + 3);1167y = tsr.test2_1_4((y & ~3) + 3);1168y = tsr.test2_1_5((y & ~3) + 3);1169y = tsr.test2_1_6((y & ~3) + 3);11701171y = tsr.test2_2_0(y & ~3);1172y = tsr.test2_2_1(y & ~3);1173y = tsr.test2_2_2(y & ~3);1174y = tsr.test2_2_3(y & ~3);1175y = tsr.test2_2_4(y & ~3);1176y = tsr.test2_2_5(y & ~3);1177y = tsr.test2_2_6(y & ~3);1178y = tsr.test2_2_0((y & ~3) + 3);1179y = tsr.test2_2_1((y & ~3) + 3);1180y = tsr.test2_2_2((y & ~3) + 3);1181y = tsr.test2_2_3((y & ~3) + 3);1182y = tsr.test2_2_4((y & ~3) + 3);1183y = tsr.test2_2_5((y & ~3) + 3);1184y = tsr.test2_2_6((y & ~3) + 3);11851186}1187for (int i = 0; i < 10000; i++) {1188y = tsr.test0_0_0(y);1189y = tsr.test0_0_0(y);1190y = tsr.test0_0_1(y);1191y = tsr.test0_0_1(y);1192y = tsr.test0_0_2(y);1193y = tsr.test0_0_2(y);1194y = tsr.test0_0_3(y);1195y = tsr.test0_0_3(y);1196y = tsr.test0_0_4(y);1197y = tsr.test0_0_4(y);1198y = tsr.test0_0_5(y);1199y = tsr.test0_0_5(y);1200y = tsr.test0_0_6(y);1201y = tsr.test0_0_6(y);12021203y = tsr.test0_1_3(y);1204y = tsr.test0_1_3(y);1205y = tsr.test0_1_4(y);1206y = tsr.test0_1_4(y);1207y = tsr.test0_1_5(y);1208y = tsr.test0_1_5(y);1209y = tsr.test0_1_6(y);1210y = tsr.test0_1_6(y);12111212y = tsr.test1_0_0(y & ~1);1213y = tsr.test1_0_1(y & ~1);1214y = tsr.test1_0_2(y & ~1);1215y = tsr.test1_0_3(y & ~1);1216y = tsr.test1_0_4(y & ~1);1217y = tsr.test1_0_5(y & ~1);1218y = tsr.test1_0_6(y & ~1);1219y = tsr.test1_0_0((y & ~1) + 1);1220y = tsr.test1_0_1((y & ~1) + 1);1221y = tsr.test1_0_2((y & ~1) + 1);1222y = tsr.test1_0_3((y & ~1) + 1);1223y = tsr.test1_0_4((y & ~1) + 1);1224y = tsr.test1_0_5((y & ~1) + 1);1225y = tsr.test1_0_6((y & ~1) + 1);12261227y = tsr.test1_1_0(y & ~1);1228y = tsr.test1_1_1(y & ~1);1229y = tsr.test1_1_2(y & ~1);1230y = tsr.test1_1_3(y & ~1);1231y = tsr.test1_1_4(y & ~1);1232y = tsr.test1_1_5(y & ~1);1233y = tsr.test1_1_6(y & ~1);1234y = tsr.test1_1_0((y & ~1) + 1);1235y = tsr.test1_1_1((y & ~1) + 1);1236y = tsr.test1_1_2((y & ~1) + 1);1237y = tsr.test1_1_3((y & ~1) + 1);1238y = tsr.test1_1_4((y & ~1) + 1);1239y = tsr.test1_1_5((y & ~1) + 1);1240y = tsr.test1_1_6((y & ~1) + 1);12411242y = tsr.test1_2_0(y & ~1);1243y = tsr.test1_2_1(y & ~1);1244y = tsr.test1_2_2(y & ~1);1245y = tsr.test1_2_3(y & ~1);1246y = tsr.test1_2_4(y & ~1);1247y = tsr.test1_2_5(y & ~1);1248y = tsr.test1_2_6(y & ~1);1249y = tsr.test1_2_0((y & ~1) + 1);1250y = tsr.test1_2_1((y & ~1) + 1);1251y = tsr.test1_2_2((y & ~1) + 1);1252y = tsr.test1_2_3((y & ~1) + 1);1253y = tsr.test1_2_4((y & ~1) + 1);1254y = tsr.test1_2_5((y & ~1) + 1);1255y = tsr.test1_2_6((y & ~1) + 1);12561257y = tsr.test2_0_0(y & ~3);1258y = tsr.test2_0_1(y & ~3);1259y = tsr.test2_0_2(y & ~3);1260y = tsr.test2_0_3(y & ~3);1261y = tsr.test2_0_4(y & ~3);1262y = tsr.test2_0_5(y & ~3);1263y = tsr.test2_0_6(y & ~3);1264y = tsr.test2_0_0((y & ~3) + 3);1265y = tsr.test2_0_1((y & ~3) + 3);1266y = tsr.test2_0_2((y & ~3) + 3);1267y = tsr.test2_0_3((y & ~3) + 3);1268y = tsr.test2_0_4((y & ~3) + 3);1269y = tsr.test2_0_5((y & ~3) + 3);1270y = tsr.test2_0_6((y & ~3) + 3);12711272y = tsr.test2_1_0(y & ~3);1273y = tsr.test2_1_1(y & ~3);1274y = tsr.test2_1_2(y & ~3);1275y = tsr.test2_1_3(y & ~3);1276y = tsr.test2_1_4(y & ~3);1277y = tsr.test2_1_5(y & ~3);1278y = tsr.test2_1_6(y & ~3);1279y = tsr.test2_1_0((y & ~3) + 3);1280y = tsr.test2_1_1((y & ~3) + 3);1281y = tsr.test2_1_2((y & ~3) + 3);1282y = tsr.test2_1_3((y & ~3) + 3);1283y = tsr.test2_1_4((y & ~3) + 3);1284y = tsr.test2_1_5((y & ~3) + 3);1285y = tsr.test2_1_6((y & ~3) + 3);12861287y = tsr.test2_2_0(y & ~3);1288y = tsr.test2_2_1(y & ~3);1289y = tsr.test2_2_2(y & ~3);1290y = tsr.test2_2_3(y & ~3);1291y = tsr.test2_2_4(y & ~3);1292y = tsr.test2_2_5(y & ~3);1293y = tsr.test2_2_6(y & ~3);1294y = tsr.test2_2_0((y & ~3) + 3);1295y = tsr.test2_2_1((y & ~3) + 3);1296y = tsr.test2_2_2((y & ~3) + 3);1297y = tsr.test2_2_3((y & ~3) + 3);1298y = tsr.test2_2_4((y & ~3) + 3);1299y = tsr.test2_2_5((y & ~3) + 3);1300y = tsr.test2_2_6((y & ~3) + 3);13011302}13031304int z = 0;1305y = tsr.test0_0_0(0);1306System.out.println("After 'test0_0_0' y=" + y);1307y = tsr.test0_0_1(0);1308System.out.println("After 'test0_0_1' y=" + y);1309y = tsr.test0_0_2(0);1310System.out.println("After 'test0_0_2' y=" + y);1311y = tsr.test0_0_3(0);1312System.out.println("After 'test0_0_3' y=" + y);1313y = tsr.test0_0_4(0);1314System.out.println("After 'test0_0_4' y=" + y);1315y = tsr.test0_0_5(0);1316System.out.println("After 'test0_0_5' y=" + y);1317y = tsr.test0_0_6(0);1318System.out.println("After 'test0_0_6' y=" + y);1319y = tsr.test0_1_3(0);1320System.out.println("After 'test0_1_3' y=" + y);1321y = tsr.test0_1_4(0);1322System.out.println("After 'test0_1_4' y=" + y);1323y = tsr.test0_1_5(0);1324System.out.println("After 'test0_1_5' y=" + y);1325y = tsr.test0_1_6(0);1326System.out.println("After 'test0_1_6' y=" + y);13271328y = tsr.test1_0_0(0);1329System.out.println("After 'test1_0_0' y=" + y);1330y = tsr.test1_0_1(0);1331System.out.println("After 'test1_0_1' y=" + y);1332y = tsr.test1_0_2(0);1333System.out.println("After 'test1_0_2' y=" + y);1334y = tsr.test1_0_3(0);1335System.out.println("After 'test1_0_3' y=" + y);1336y = tsr.test1_0_4(0);1337System.out.println("After 'test1_0_4' y=" + y);1338y = tsr.test1_0_5(0);1339System.out.println("After 'test1_0_5' y=" + y);1340y = tsr.test1_0_6(0);1341System.out.println("After 'test1_0_6' y=" + y);13421343y = tsr.test1_1_0(0);1344System.out.println("After 'test1_1_0' y=" + y);1345y = tsr.test1_1_1(0);1346System.out.println("After 'test1_1_1' y=" + y);1347y = tsr.test1_1_2(0);1348System.out.println("After 'test1_1_2' y=" + y);1349y = tsr.test1_1_3(0);1350System.out.println("After 'test1_1_3' y=" + y);1351y = tsr.test1_1_4(0);1352System.out.println("After 'test1_1_4' y=" + y);1353y = tsr.test1_1_5(0);1354System.out.println("After 'test1_1_5' y=" + y);1355y = tsr.test1_1_6(0);1356System.out.println("After 'test1_1_6' y=" + y);13571358y = tsr.test1_2_0(0);1359System.out.println("After 'test1_2_0' y=" + y);1360y = tsr.test1_2_1(0);1361System.out.println("After 'test1_2_1' y=" + y);1362y = tsr.test1_2_2(0);1363System.out.println("After 'test1_2_2' y=" + y);1364y = tsr.test1_2_3(0);1365System.out.println("After 'test1_2_3' y=" + y);1366y = tsr.test1_2_4(0);1367System.out.println("After 'test1_2_4' y=" + y);1368y = tsr.test1_2_5(0);1369System.out.println("After 'test1_2_5' y=" + y);1370y = tsr.test1_2_6(0);1371System.out.println("After 'test1_2_6' y=" + y);13721373y = tsr.test2_0_0(0);1374System.out.println("After 'test2_0_0' y=" + y);1375y = tsr.test2_0_1(0);1376System.out.println("After 'test2_0_1' y=" + y);1377y = tsr.test2_0_2(0);1378System.out.println("After 'test2_0_2' y=" + y);1379y = tsr.test2_0_3(0);1380System.out.println("After 'test2_0_3' y=" + y);1381y = tsr.test2_0_4(0);1382System.out.println("After 'test2_0_4' y=" + y);1383y = tsr.test2_0_5(0);1384System.out.println("After 'test2_0_5' y=" + y);1385y = tsr.test2_0_6(0);1386System.out.println("After 'test2_0_6' y=" + y);13871388y = tsr.test2_1_0(0);1389System.out.println("After 'test2_1_0' y=" + y);1390y = tsr.test2_1_1(0);1391System.out.println("After 'test2_1_1' y=" + y);1392y = tsr.test2_1_2(0);1393System.out.println("After 'test2_1_2' y=" + y);1394y = tsr.test2_1_3(0);1395System.out.println("After 'test2_1_3' y=" + y);1396y = tsr.test2_1_4(0);1397System.out.println("After 'test2_1_4' y=" + y);1398y = tsr.test2_1_5(0);1399System.out.println("After 'test2_1_5' y=" + y);1400y = tsr.test2_1_6(0);1401System.out.println("After 'test2_1_6' y=" + y);14021403y = tsr.test2_2_0(0);1404System.out.println("After 'test2_2_0' y=" + y);1405y = tsr.test2_2_1(0);1406System.out.println("After 'test2_2_1' y=" + y);1407y = tsr.test2_2_2(0);1408System.out.println("After 'test2_2_2' y=" + y);1409y = tsr.test2_2_3(0);1410System.out.println("After 'test2_2_3' y=" + y);1411y = tsr.test2_2_4(0);1412System.out.println("After 'test2_2_4' y=" + y);1413y = tsr.test2_2_5(0);1414System.out.println("After 'test2_2_5' y=" + y);1415y = tsr.test2_2_6(0);1416System.out.println("After 'test2_2_6' y=" + y);14171418}1419}142014211422