diff --git a/tools/dx-tests/Android.mk b/tools/dx-tests/Android.mk deleted file mode 100644 index d249cea1ac8dcebe06e6bcdb52ef7478cc2986e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/Android.mk +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -LOCAL_PATH := $(call my-dir) - -# run-dx-tests host module -#=========================================================== - -include $(CLEAR_VARS) -LOCAL_IS_HOST_MODULE := true -LOCAL_MODULE_CLASS := EXECUTABLES -LOCAL_MODULE := dx-tests - -LOCAL_JAVA_LIBRARIES := dx - - -include $(BUILD_SYSTEM)/base_rules.mk - -ALL_SRC_FILES := $(patsubst ./%,%,$(shell cd $(LOCAL_PATH) && find src/dxc/junit -name "*.java" -o -name "*.j" -o -name "*.cfh")) -ABSOLUTE_SRC_FILES := $(addprefix $(LOCAL_PATH)/,$(ALL_SRC_FILES)) - -$(LOCAL_BUILT_MODULE): PRIVATE_CURRENT_MODULE_SCRIPT := $(LOCAL_PATH)/etc/compileall -$(LOCAL_BUILT_MODULE): PRIVATE_BASE := $(LOCAL_PATH) -$(LOCAL_BUILT_MODULE): PRIVATE_INTERMEDIATES := $(intermediates) -$(LOCAL_BUILT_MODULE): $(DX) $(TARGET_OUT_EXECUTABLES)/dalvikvm -$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/starttests $(LOCAL_PATH)/etc/compileall ${ABSOLUTE_SRC_FILES} $(HOST_OUT_JAVA_LIBRARIES)/dx.jar $(HOST_OUT_JAVA_LIBRARIES)/cfassembler.jar | $(ACP) - @echo "Copy: $(PRIVATE_MODULE) ($@)" - $(copy-file-to-new-target) - $(hide) chmod 755 $@ - $(hide) PATH=$(HOST_OUT_EXECUTABLES):$$PATH $(PRIVATE_CURRENT_MODULE_SCRIPT) "$(PRIVATE_BASE)" "$(HOST_JAVAC)" "$(PRIVATE_INTERMEDIATES)" "$(HOST_OUT_JAVA_LIBRARIES)/dx.jar:$(HOST_OUT_JAVA_LIBRARIES)/cfassembler.jar" "$(HOST_OUT)" - -# cfassembler host module -#============================================================ - -include $(CLEAR_VARS) - -LOCAL_IS_HOST_MODULE := true -LOCAL_MODULE_CLASS := EXECUTABLES -LOCAL_MODULE := cfassembler - -include $(BUILD_SYSTEM)/base_rules.mk - -$(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/cfassembler$(COMMON_JAVA_PACKAGE_SUFFIX) -$(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/etc/cfassembler | $(ACP) - @echo "Copy: $(PRIVATE_MODULE) ($@)" - $(copy-file-to-new-target) - $(hide) chmod 755 $@ - -INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) - -# cfassembler java library -# ============================================================ -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := src/dxconvext/ClassFileAssembler.java src/dxconvext/util/FileUtils.java -LOCAL_JAR_MANIFEST := etc/cfassembler_manifest.txt - -LOCAL_MODULE:= cfassembler - -include $(BUILD_HOST_JAVA_LIBRARY) - -INTERNAL_DALVIK_MODULES += $(LOCAL_INSTALLED_MODULE) diff --git a/tools/dx-tests/dx-tests.css b/tools/dx-tests/dx-tests.css deleted file mode 100644 index a315a736b17cc45fb1e9f37e9232a080faf6ffe1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/dx-tests.css +++ /dev/null @@ -1,59 +0,0 @@ -h1 { - font-family: serif; - color: #222266; -} - -h2 { - font-family: serif; - border-top-style: solid; - border-top-width: 2px; - border-color: #ccccdd; - padding-top: 12px; - margin-top: 48px; - margin-bottom: 2px; - color: #222266; -} - -@media print { - table { - font-size: 8pt; - } -} - -@media screen { - table { - font-size: 10pt; - } -} - - -/* general for all tables */ - -table { - border-collapse: collapse; - margin-top: 24px; - margin-bottom: 24px; - margin-left: 48px; - margin-right: 48px; -} - -table th { - font-family: sans-serif; - background: #aabbff; - text-align: left; -} - -table td { - font-family: sans-serif; - border-top-style: solid; - border-bottom-style: solid; - border-width: 1px; - border-color: #aaaaff; - padding-top: 4px; - padding-bottom: 4px; - padding-left: 4px; - padding-right: 6px; - background: #eeeeff; - margin-top: 4pt; - margin-bottom: 0pt; -} diff --git a/tools/dx-tests/dx-tests.html b/tools/dx-tests/dx-tests.html deleted file mode 100644 index 832f701f5c5cc91329bf25decb5e82febb2d348d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/dx-tests.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - - DX Converter Test Suite - - - - -

DX Converter Test Suite

-

Version 1.0

-

Copyright © 2008 The Android Open Source Project - -

Overview

- -

- This directory contains a test suite for the DX converter. It tests the - capabilities of the DX converter in a black-box manner, based on the - usual specifications for .class files. The suite does both - functional and verifier tests. Regarding the latter, the DX converter has - only limited bytecode verification capabilities, but the combination of DX - and the Dalvik VM is supposed to perform bytecode verification equivalent - to that done in other virtual machines. Please see - -

-        docs/dalvik/java-constraints.html
-        docs/dalvik/verifier.html
-      
- - for further details. -

- -

How to build

- -

- The test suite is normally included in a full build of the Android - project. If it needs to be built individually, a simple - -

-        make dx-tests
-      
- - or an - -
-        mm
-      
- - in this directory will do. -

- -

How to run

- -

- The suite can be invoked by executing - -

-        dx-tests
-      
- - from any location, assuming the suite has been built. This will run - all tests. If you want to limit the suite to the test cases - corresponding to a single instruction, you can specifiy the mnemonic - as a parameter. For example - -
-        dx-tests anewarray
-      
- - executes the tests for the anewarray instruction. - Please see the corresponding specification for all the mnemonics. Two - additional parameters are possible that don't represent instructions. - These run sanity checks for the suite itself and general verifier tests, - respectively: - -
-        dx-tests sanity
-        dx-tests verifier
-      
- - The suite is normally run for the fast version of the interpreter. To run - it for the portable interpreter, pass --portable as the first - parameter. Passing --help results in a brief overview of the - options. -

- -

- The suite is compatible with both emulator and simulator - builds. For an emulator build, please make sure you have - either an emulator running or a device attached via USB before - invoking the test suite. -

- -

- The suite might easily take 30 minutes or more for execution, - depending on the environment. It will generate a full HTML - report with details on all test cases. While running, console output - is produced to give a quick impression of the progress and results. - For both types of output, each individual test results falls into one of - the following categories: -

- - - - - - - - - - - - - - - - - - - - - - - - - -
Type in reportType on consoleDescription
Success. - The test case passed successfully. -
Functional failureF - A functional (normal or boundary) or an exception test case - failed. -
Verifier failureV - A verifier test case failed. Either the verifier accepted - some invalid piece of code or it rejected a valid one. -
WarningW - A verifier test case threw VerifyError, where a - different VM would have thrown a different exception. This is - specified Dalvik behavior, though, hence just the warning. -
- - diff --git a/tools/dx-tests/etc/cfassembler b/tools/dx-tests/etc/cfassembler deleted file mode 100644 index e05f4ae925ee3b5b4d3b4aab6b23287dfe2a1a47..0000000000000000000000000000000000000000 --- a/tools/dx-tests/etc/cfassembler +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Set up prog to be the path of this script, including following symlinks, -# and set up progdir to be the fully-qualified pathname of its directory. -prog="$0" -while [ -h "${prog}" ]; do - newProg=`/bin/ls -ld "${prog}"` - newProg=`expr "${newProg}" : ".* -> \(.*\)$"` - if expr "x${newProg}" : 'x/' >/dev/null; then - prog="${newProg}" - else - progdir=`dirname "${prog}"` - prog="${progdir}/${newProg}" - fi -done -oldwd=`pwd` -progdir=`dirname "${prog}"` -cd "${progdir}" -progdir=`pwd` -prog="${progdir}"/`basename "${prog}"` -cd "${oldwd}" - -jarfile=cfassembler.jar -libdir="$progdir" -if [ ! -r "$libdir/$jarfile" ] -then - libdir=`dirname "$progdir"`/tools/lib -fi -if [ ! -r "$libdir/$jarfile" ] -then - libdir=`dirname "$progdir"`/framework -fi -if [ ! -r "$libdir/$jarfile" ] -then - echo `basename "$prog"`": can't find $jarfile" - exit 1 -fi - -javaOpts="" -while expr "x$1" : 'x-J' >/dev/null; do - opt=`expr "$1" : '-J\(.*\)'` - javaOpts="${javaOpts} -${opt}" - shift -done - -if [ "$OSTYPE" = "cygwin" ] ; then - jarpath=`cygpath -w "$libdir/$jarfile"` -else - jarpath="$libdir/$jarfile" -fi - -exec java $javaOpts -jar "$jarpath" "$@" diff --git a/tools/dx-tests/etc/cfassembler_manifest.txt b/tools/dx-tests/etc/cfassembler_manifest.txt deleted file mode 100644 index 382adc694fe8c979a4dfef32a239612af5ec47c0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/etc/cfassembler_manifest.txt +++ /dev/null @@ -1 +0,0 @@ -Main-Class: dxconvext.ClassFileAssembler diff --git a/tools/dx-tests/etc/compileall b/tools/dx-tests/etc/compileall deleted file mode 100755 index 57bcec65b230abce8243b0f7f6b94245751898ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/etc/compileall +++ /dev/null @@ -1,114 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -echo "building dx-test-suite" -# -# generates .class files from the .j (jasmin) and .cfh (hex format) files for the dxconverter test project. -# the dx executable must be on the PATH. -# only for lunch 2 at the moment - TODO check which commands are available in busybox/toolbox on the device -# - -prog="$0" -while [ -h "${prog}" ]; do - newProg=`/bin/ls -ld "${prog}"` - newProg=`expr "${newProg}" : ".* -> \(.*\)$"` - if expr "x${newProg}" : 'x/' >/dev/null; then - prog="${newProg}" - else - progdir=`dirname "${prog}"` - prog="${progdir}/${newProg}" - fi -done -oldwd=`pwd` -progdir=`dirname "${prog}"` -cd "${progdir}" -progdir=`pwd` -prog="${progdir}"/`basename "${prog}"` -cd "${oldwd}" - -libdir=`dirname $progdir`/framework - -javaOpts="" -while expr "x$1" : 'x-J' >/dev/null; do - opt=`expr "$1" : '-J\(.*\)'` - javaOpts="${javaOpts} -${opt}" - shift -done - -#echo "progdir: $progdir" -#echo "android build top: $ANDROID_BUILD_TOP" -project_home=$1 -javac=$2 -tmpdir=$3 # ANDROID_BUILD_TOP/$3 -dxjarpath=$4 -outdir=$5 -project_src=$project_home/src -project_lib=$project_home/lib -project_data=$project_home/data -javac_out=$tmpdir/classout -javafiles=$tmpdir/_javafiles -mainfilesdir=$tmpdir/mainfiles -mainfileslist=$tmpdir/_mainfileslist - -#echo "home: $project_home" - -if [ "$tmpdir" = "" ]; then - echo "error: intermediates dir not set/found!!"; - exit 1; -else - echo "tmp/intermediates dir (rel): $tmpdir" -fi -rm -rf $javac_out -rm -rf $javafiles - -# compile all files from javafiles -echo "compiling all java files (with package dxc.junit.**)" -find $project_src/dxc/junit -name '*.java' > $javafiles -echo "$project_src/util/CollectAllTests.java" >> $javafiles -mkdir -p $javac_out -jfiles=\@$javafiles -javac -d $javac_out -classpath ${dxjarpath} -sourcepath $project_src $jfiles - -echo "compiling all jasmin (*.j)" - -find $project_src/dxc/junit -name '*.j' | sort > $tmpdir/alljasminfiles -java -classpath $project_home/utilclasses:$project_lib/jasmin.jar util.CompileAllJasmin $tmpdir/alljasminfiles $javac_out &> /dev/null - -echo "compiling all .cfh files into .class files" -for acfhfile in `find $project_src/dxc/junit -name '*.cfh'` -do - #echo "cfh file:$acfhfile" - java -classpath ${dxjarpath} dxconvext.ClassFileAssembler $acfhfile $javac_out &> /dev/null -done - -echo "generating Main_*.java files reading from $project_home writing to $mainfilesdir" -mkdir -p $mainfilesdir -# generate the Main_*.java files -java -cp $project_lib/junit.jar:$javac_out util.CollectAllTests $project_home $mainfilesdir -# compile the Main_*.java files -find $mainfilesdir/dxc/junit -name '*.java' > $mainfileslist -echo "compile the Main_*.java files" -javac -d $javac_out -classpath $project_lib/junit.jar:$javac_out -sourcepath $mainfilesdir \@$mainfileslist - -# now copy relevant data from intermediates dir to its final destination -fdest=$outdir/cts/dxconverter -mkdir -p $fdest/data -acp -r $javac_out $fdest/ -acp $mainfilesdir/data/scriptdata $fdest/data/scriptdata - -echo "dxconverter test suite sucessfully built!" -echo "intermediate Main_*.java files (for stacktrace analysis) can be found under $mainfilesdir" - diff --git a/tools/dx-tests/etc/morescripts/countTests.sh b/tools/dx-tests/etc/morescripts/countTests.sh deleted file mode 100755 index ff0b3233bc5922bec42d63e4d8919d51da895d5b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/etc/morescripts/countTests.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -cd ../../src - -echo "normal tests (testN...): " -egrep -R 'public void testN[0-9][0-9]?' * | grep ".java" | sed -e '/.svn/d' | sort | wc -l - -echo "border egde tests (testB...): " -egrep -R 'public void testB[0-9][0-9]?' * | grep ".java" | sed -e '/.svn/d' | sort | wc -l - -echo "exception tests (testE...): " -egrep -R 'public void testE[0-9][0-9]?' * | grep ".java" | sed -e '/.svn/d' | sort | wc -l - -echo "verify error tests (testVFE...): " -egrep -R 'public void testVFE[0-9][0-9]?' * | grep ".java" | sed -e '/.svn/d' | sort | wc -l diff --git a/tools/dx-tests/etc/morescripts/detailCount.sh b/tools/dx-tests/etc/morescripts/detailCount.sh deleted file mode 100755 index c7aae4234395f46261abdc6eb022ea5a04a6d531..0000000000000000000000000000000000000000 --- a/tools/dx-tests/etc/morescripts/detailCount.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# sed -e '/.svn/d' | -# --------------------------------------------------------- - -echo ">>> statistics about kind of tests (normal, border edge, exception, verify)" -cd ../../src -for mypack in `find dxc -maxdepth 4 -mindepth 4 -name "Test_*.java" | sort` -do - resN=`egrep -c 'public void testN[0-9][0-9]?' $mypack` - resB=`egrep -c 'public void testB[0-9][0-9]?' $mypack` - resE=`egrep -c 'public void testE[0-9][0-9]?' $mypack` - resVFE=`egrep -c 'public void testVFE[0-9][0-9]?' $mypack` - echo "file:$mypack, N:$resN, B:$resB, E:$resE, VFE:$resVFE" -done diff --git a/tools/dx-tests/etc/starttests b/tools/dx-tests/etc/starttests deleted file mode 100755 index b062fe7a17f809a3d544ed763792e37e6b19e7ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/etc/starttests +++ /dev/null @@ -1,341 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Set up prog to be the path of this script, including following symlinks, -# and set up progdir to be the fully-qualified pathname of its directory. - -prog="$0" -while [ -h "${prog}" ]; do - newProg=`/bin/ls -ld "${prog}"` - newProg=`expr "${newProg}" : ".* -> \(.*\)$"` - if expr "x${newProg}" : 'x/' >/dev/null; then - prog="${newProg}" - else - progdir=`dirname "${prog}"` - prog="${progdir}/${newProg}" - fi -done -oldwd=`pwd` -progdir=`dirname "${prog}"` -cd "${progdir}" -progdir=`pwd` -prog="${progdir}"/`basename "${prog}"` -cd "${oldwd}" - -libdir=`dirname $progdir`/framework - -javaOpts="" -while expr "x$1" : 'x-J' >/dev/null; do - opt=`expr "$1" : '-J\(.*\)'` - javaOpts="${javaOpts} -${opt}" - shift -done - -#exec java $javaOpts -jar $libdir/hat.jar "$@" - -####################################################################### -# Original content of invocation script follows. Uses values cleverly -# deduced by the above code. -####################################################################### - -selection=$1 -interpreter="fast" -if [ "$selection" = "--portable" ]; then - selection=$2; - interpreter="portable" -fi - -datadir=/tmp/${USER} -rm -rf $datadir/dalvik-cache -mkdir -p $datadir -mkdir -p $datadir/dalvik-cache - -base=$OUT -framework=$base/system/framework -export ANDROID_PRINTF_LOG=tag -export ANDROID_LOG_TAGS='*:s' # was: jdwp:i dalvikvm:i dalvikvmi:i' -export ANDROID_DATA=$datadir -export ANDROID_ROOT=$base/system -export LD_LIBRARY_PATH=$base/system/lib -export DYLD_LIBRARY_PATH=$base/system/lib -debug_opts="-Xcheck:jni" -exe=$base/system/bin/dalvikvm -bpath=$framework/core.jar -BASEDIR=$progdir/../cts/dxconverter - -echo "--------------------------------------------------" -echo "DX Converter Test Suite" -echo "Version 1.0" -echo "Copyright (c) 2008 The Android Open Source Project" -echo "" - -if [ "$selection" = "--help" ]; then - echo "Usage: dx-tests [--help|--portable] []" - echo "" - echo " --help prints this help message" - echo " --portable uses the portable interpreter;" - echo " default is the fast one" - echo "" - echo " specifies the instruction to test;" - echo " default is to run all tests" - echo "" - exit 1; -fi - -# we need for launching: the dx tool, the dalvikvm executable, and the directory with all .class files -# - prep dxcore.jar -# - init reportfile -# for each package as stated in data/scriptdata (like dxc/junit/opcode/aaload) do -# - clear tmpoutput -# - try to dx Test_opcode.class and all .class files in the ./jm directory into a classes.jar file -# - launch dalvikvm, let it write output &> to tmpoutput (surrounded by magic key for start/stop) -# - look at tmpoutput -> green or red test result -# - append the result to the report.html file (table form) -# - clear the tmpoutput, the classes.jar etc. -# end for -# - close the report file and cat its path to stdout - -# sanity checks: -# dx around? -curmode="" -dx --version &> /dev/null -if [ ! $? -eq 0 ] -then - echo "error:could not start dx tool" - exit 1; -fi - -if [ "$TARGET_SIMULATOR" = "true" ]; then - echo "Simulator mode, $interpreter interpreter"; - curmode="simulator" - if [ -f $exe ]; then - version=`${exe} -version 2> /dev/null | grep -o "version.*$"` - echo "Using Dalvik VM ${version}" - else - echo "No Dalvik VM found at $exe"; - exit 1; - fi -else - echo "Emulator mode, $interpreter interpreter"; - curmode="emulator" - version=`adb shell dalvikvm -version 2> /dev/null | grep -o "version.*$"` - if [ "${version}" != "" ]; then - echo "Using Dalvik VM ${version}" - else - echo "No emulator or device found"; - exit 1; - fi -fi - -echo "" - -latestpath="" -curdate=`date` -dxtmpdir=$BASEDIR/dxtmp -dxruntmpdir=$BASEDIR/dxruntmp -javac_out=$BASEDIR/classout -report=$BASEDIR/report.html -mkdir -p $dxtmpdir -rm -f $report -pre_report=" - -

DX test suite results

-Generated $curdate (using the $curmode) -

- -" -post_report="" -echo $pre_report > $report - -# ----------- generating dxcore.jar -cd $javac_out -# consists of dxc.junit.DxAbstractMain and dxc.junit.DxUtil -dx --dex --positions=lines --output="$BASEDIR/dxcore.jar" dxc/junit/DxAbstractMain.class dxc/junit/DxUtil.class - -# ----------- generating jars for each opcode test ------------ - -export jpassedcnt=0 -export jwarningcnt=0 -export jvfefailedcnt=0 -export jfailedcnt=0 -export jallcnt=0 -export jcolumns=0 - -function classnameToPath() -{ - echo $1 | sed -e 's#\.#/#g;s#$#.class#' -} - -function lecho() -{ - if [ ! -z $CTS_DX_DEBUG ]; then echo $@; fi -} - -while read -u 3 myline; -do - mainclass=`echo $myline | cut -d";" -f1` # e.g dxc.junit.verify.t482_9.Main_testVFE2 - classfiles=`classnameToPath $mainclass` - - testclasses=`echo $myline | cut -d";" -f2` # e.g dxc.junit.verity.t482_9.jm.T_t482_9_1 - - for testclass in $testclasses; do - classfiles="$classfiles "`classnameToPath $testclass`; - done - - jtitle=`echo $myline | cut -d";" -f3` - jcomment=`echo $myline | cut -d";" -f4` - details=`echo $myline | cut -d";" -f5` - - if [ "$selection" == "" ] || [ "$jtitle" == "$selection" ]; then - - (( jallcnt += 1 )) - - - rm -rf $dxtmpdir/* - mkdir -p $dxtmpdir - cd $dxtmpdir - - for testclass in $classfiles; do - lecho -n "dexing $testclass : " - mkdir -p `dirname ${dxtmpdir}/${testclass}` - cp ${javac_out}/${testclass} ${dxtmpdir}/${testclass} - - dx --dex --positions=lines $testclass &>/dev/null - - if [ $? -eq 0 ]; then - lecho " dexable"; - else - lecho " not dexable->remove"; - rm $testclass - fi - done - - dx --dex --positions=lines --output="$BASEDIR/dxclasses.jar" . - - # run the previously prepared jar files in the dalvik vm. - # the dalvik vm executable (dalvikvm) must be on the PATH. - # - ### echo -n ">>> launch dalvikvm for class: $mainclass" - cd $BASEDIR - rm -f $BASEDIR/dalvikout - # write dalvik output to file - echo -n "mk_b:" > $BASEDIR/dalvikout - #echo ">>> launch dex package -classpath $BASEDIR/dxcore.jar:$BASEDIR/dxclasses.jar $mainclass" - - if [ "$TARGET_SIMULATOR" = "true" ]; then - ### echo " on simulator"; - $valgrind $exe -Xint:$interpreter -Xmx512M -Xss32K -Xbootclasspath:$bpath -DacceptCNF=true -classpath $BASEDIR/dxcore.jar:$BASEDIR/dxclasses.jar $debug_opts $mainclass "$@" >> $BASEDIR/dalvikout 2>&1 - RESULTCODE=$? - if [ ${RESULTCODE} -ne 0 ]; then - echo "execute dalvikvm failed with resultcode: ${RESULTCODE}" >> $BASEDIR/dalvikout 2>&1 - fi - else - # adb shell dalvikvm -Xint:$interpreter -Djava.io.tmpdir=/data/local/tmp -classpath /data/dxcore.jar:/data/dxclasses.jar dxc.junit.opcodes.aload.Main_testN2 - # either no output (ok) or - # java.lang.RuntimeException: test did not cause the expected verify error, but:java.lang.RuntimeException, msg:AssertionFailedError msg:expected a verification exception - # at dxc.junit.DxUtil.checkVerifyException(DxUtil.java:65) - # at dxc.junit.opcodes.aload.Test_aload.testVFE10(Test_aload.java:181) - # at dxc.junit.opcodes.aload.Main_testVFE10.main(Main_testVFE10.java:5) - # at dalvik.system.NativeStart.main(Native Method) - - ### echo " on emulator/device with adb push" - adb push $BASEDIR/dxcore.jar /data/dxcore.jar &> /dev/null - adb push $BASEDIR/dxclasses.jar /data/dxclasses.jar &> /dev/null - adb shell "dalvikvm -Djava.io.tmpdir=/data/local/tmp -classpath /data/dxcore.jar:/data/dxclasses.jar $mainclass && echo -n dvmpassed:" >> $BASEDIR/dalvikout 2>&1 - fi - - echo -n "mk_s:" >> $BASEDIR/dalvikout - # verify tmpout only contains mkdxc_start;mkdxc_stop -> no system.out/err because of exception. - # if ok -> green report line else red report with info between mkdxc_start and stop - ### echo "vmresult: $vmresult" - vmresult=`cat $BASEDIR/dalvikout` - if [[ ("$vmresult" == "mk_b:mk_s:") || ("$vmresult" == "mk_b:dvmpassed:mk_s:") ]]; then - (( jpassedcnt += 1 )) - echo "" >> $report - ### echo " -> PASSED (passed:$jpassedcnt, failed:$jfailedcnt, vfe failed:$jvfefailedcnt, warnings:$jwarningcnt)" - echo -n "." - elif [[ ("$vmresult" == "mk_b:dvmvfe:mk_s:") || ("$vmresult" == "mk_b:dvmvfe:dvmpassed:mk_s:") ]]; then - (( jwarningcnt += 1 )) - echo "" >> $report - ### echo " -> WARNING (passed:$jpassedcnt, failed:$jfailedcnt, vfe failed:$jvfefailedcnt, warnings:$jwarningcnt)" - echo -n "W" - else - vmres=`cat $BASEDIR/dalvikout | sed -e 's/mk_b://;s/mk_s://'` - vmres="$details
$vmres
" - # red with additional info if a VFE failed, red if either a N,B, or E failed - jtype=`echo "$mainclass" | sed -e 's/.*_test\([^0-9]*\)[0-9].*/\1/' ` - if [ "$jtype" == "VFE" ]; then - (( jvfefailedcnt += 1 )) - echo -n "" >> $report - ### echo " -> VFE FAILED (passed:$jpassedcnt, failed:$jfailedcnt, vfe failed:$jvfefailedcnt, warnings:$jwarningcnt)" - echo -n "V" - else - (( jfailedcnt += 1 )) - echo -n "" >> $report - ### echo " -> FAILED (passed:$jpassedcnt, failed:$jfailedcnt, vfe failed:$jvfefailedcnt, warnings:$jwarningcnt)" - echo -n "F" - fi - fi - - (( jcolumns += 1 )) - if [ ${jcolumns} -eq 40 ]; then - echo "" - (( jcolumns = 0 )) - fi - - fi - -done 3<$BASEDIR/data/scriptdata #we use fd nr 3 to avoid subshelling via cat since this looses all variables (and thus also the counters we are interested in). - -echo "
StatusTargetCategoryDetails
Success$jtitle$jcomment$details
Warning$jtitle$jcommentSpecial behavior regarding VerifyError
Verifier failure$jtitle$jcomment$vmres
Functional failure$jtitle$jcomment$vmres
" >> $report -let jallcalccnt=$jpassedcnt+$jfailedcnt+$jvfefailedcnt+$jwarningcnt -if [ $jallcalccnt -ne $jallcnt ]; then - echo "
error: green & red != total , $jallcalccnt -ne $jallcnt" >> $report - exit 1; -fi - -echo "
Tests run: ${jallcnt}" >> $report -echo "
Functional failures: ${jfailedcnt}" >> $report -echo "
Verifier failures: ${jvfefailedcnt}" >> $report -echo "
Warnings: ${jwarningcnt}" >> $report - -echo $post_report >> $report - -if [[ jcolumns -ne 0 ]]; then - echo "" -fi - -echo "" - -if [[ jallcnt -eq jpassedcnt ]]; then - echo "OK (${jpassedcnt} tests)" -else - echo "FAILURES!!!" - echo "" - echo "Tests run : ${jallcnt}" - echo "Functional failures: ${jfailedcnt}" - echo "Verifier failures : ${jvfefailedcnt}" - echo "Warnings : ${jwarningcnt}" -fi - -echo "" -echo "Please see complete report in ${report}" -echo "--------------------------------------------------" diff --git a/tools/dx-tests/lib/jasmin.jar b/tools/dx-tests/lib/jasmin.jar deleted file mode 100644 index 87db0d0346a3569db3b7ed385a0664a5dd58e055..0000000000000000000000000000000000000000 Binary files a/tools/dx-tests/lib/jasmin.jar and /dev/null differ diff --git a/tools/dx-tests/lib/junit.jar b/tools/dx-tests/lib/junit.jar deleted file mode 100644 index 674d71e89ea154dbe2e3cd032821c22b39e8fd68..0000000000000000000000000000000000000000 Binary files a/tools/dx-tests/lib/junit.jar and /dev/null differ diff --git a/tools/dx-tests/scripts/assemble_cfh.sh b/tools/dx-tests/scripts/assemble_cfh.sh deleted file mode 100755 index 0c8e9c743245e7106e50c1f94dd87ed5aa8492b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/scripts/assemble_cfh.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# compiles all .cfh files into .class files -abase=`pwd` -srcd="$abase/src" -cout=$abase/out/classes_cfh -cp=$abase/out/classes_jasmin -cp2=$abase/out/classes_javac - -echo "del old files" -rm -rf $cout/* -echo "done del" - -echo "src folder:$srcd" -for myfile in `find $srcd -name "*.cfh"` -do - echo "file:$myfile" - java -cp $cout:$cp:$cp2 dxconvext.ClassFileAssembler $myfile $cout -done - -echo "Done!" diff --git a/tools/dx-tests/scripts/collect_dasm_files.sh b/tools/dx-tests/scripts/collect_dasm_files.sh deleted file mode 100644 index d4275c08a8ed189ed54874771511933df85dd423..0000000000000000000000000000000000000000 --- a/tools/dx-tests/scripts/collect_dasm_files.sh +++ /dev/null @@ -1,154 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -BASEDIR=`pwd` -CLASSFOLDERS='out/classes_cfh out/classes_jasmin out/classes_javac' - -function findClassFile() -{ - i=0; - for path in $1; - do - if [ -f ${path}/$2 ]; then - CLASSFOLDER=$path - return - fi - done -} - -function mapOpcode() -{ - MAPPED_OPCODE="" - if [ -z $1 ]; then - MAPPED_OPCODE="" - return; - fi - - line=`grep -e "^$1 " ${BASEDIR}/data/opcode_mapping` - if [ $? -ne 0 ]; then - MAPPED_OPCODE="" - else - echo $line - MAPPED_OPCODE=`echo -n $line | cut -d" " -f2` - fi -} - -while read -u 3 myline; -do - jpackageclass=`echo $myline | cut -d";" -f1` # e.g dxc.junit.verify.t482_9.Main_testVFE2 - jpackageclassfile=`echo $jpackageclass | sed -e 's/\./\//g;s/$/.java/'` - echo $jpackageclassfile - jtestclass=`echo $myline | cut -d";" -f2` # e.g dxc.junit.verity.t482_9.jm.T_t482_9_1 - jtestclassfile=`echo $jtestclass | sed -e 's/\./\//g;s/$/.class/'` - jtestsourcefile=`echo $jtestclass | sed -e 's/\./\//g;s/$/.java/'` -# echo $jtestclassfile - -rm -rf out/tmp -mkdir -p out/tmp - -findClassFile "${CLASSFOLDERS}" $jtestclassfile -cd ${CLASSFOLDER} -cp -P --parent $jtestclassfile ${BASEDIR}/out/tmp/ -cd ${BASEDIR} - -#findClassFile "${CLASSFOLDERS}" $jpackageclassfile -#cd ${CLASSFOLDER} -#cp -P --parents $jpackageclassfile ${BASEDIR}/out/tmp/ -#cd ${BASEDIR} - -# echo ${CLASSFOLDER}/${jtestclassfile} - -OPCODE=`echo $jtestclass | sed -e 's/.*T_\(.*\)_[0-9]\+[_]*[a-z]*/\1/'` -mapOpcode ${OPCODE} -# echo ${OPCODE} " - " ${MAPPED_OPCODE} -if [ -z ${MAPPED_OPCODE} ]; then - continue -fi - -for subcode in `echo $MAPPED_OPCODE | cut -d";" -f1,2 --output-delimiter=" "`; do - - SCRIPT="s#out/classes_[^/]*/dxc/\(.*\)/${OPCODE}/jm/T_${OPCODE}\(.*\)\.class#src/dot/\1/${subcode}/d/T_${subcode}\2.d#" - FILEDEST=`echo ${CLASSFOLDER}/${jtestclassfile} | sed -e $SCRIPT` - echo ${FILEDEST} -# SCRIPT="s#out/classes_[^/]*/dxc/\(.*\)${OPCODE}/Main_\(.*\)\.class#src/dot/\1/${subcode}/Main_\2.d#" -# FILEDEST=`echo ${CLASSFOLDER}/${jpackageclassfile} | sed -e $SCRIPT` -# echo ${FILEDEST} - - cd out/tmp - OUT=`dx --dex --no-optimize --positions=lines --output="/tmp/dxclasses.jar" ${jtestclassfile} 2>&1` - - if [ $? -eq 0 ]; then - cd ${BASEDIR} - mkdir -p `dirname ${FILEDEST}` - dexdump -g /tmp/dxclasses.jar > ${FILEDEST} - sed -i -e 's/dxc\([\.|\/]\)junit/dot\1junit/' ${FILEDEST} - SCRIPT="s/${OPCODE}\([\.|\/]\)jm\([\.|\/]\)/${subcode}\1d\2/g" - sed -i -e ${SCRIPT} ${FILEDEST} - SCRIPT="s/T_${OPCODE}/T_${subcode}/g" - sed -i -e ${SCRIPT} ${FILEDEST} - - SCRIPT="s#dxc/\(.*\)/${OPCODE}/\(.*\)#src/dot/\1/${subcode}/\2#" - jpackagedestfile=`echo ${jpackageclassfile} | sed -e $SCRIPT` - cp src/${jpackageclassfile} ${jpackagedestfile} - sed -i -e 's/dxc\([\.|\/]\)junit/dot\1junit/' ${jpackagedestfile} - SCRIPT="s/${OPCODE}\([\.|\/]\)jm\([\.|\/]\)/${subcode}\1d\2/g" - sed -i -e ${SCRIPT} ${jpackagedestfile} - SCRIPT="s/T_${OPCODE}/T_${subcode}/g" - sed -i -e ${SCRIPT} ${jpackagedestfile} - sed -i -e "s/\(package .*\)${OPCODE}/\1${subcode}/" ${jpackagedestfile} - - - SCRIPT="s#dxc/\(.*\)/${OPCODE}/jm/\(.*\)${OPCODE}\(.*\).class#src/dot/\1/${subcode}/d/\2${subcode}\3.java#" - jpackagedestfile=`echo ${jtestclassfile} | sed -e $SCRIPT` - cp src/${jtestsourcefile} ${jpackagedestfile} - sed -i -e 's/dxc\([\.|\/]\)junit/dot\1junit/' ${jpackagedestfile} - SCRIPT="s/${OPCODE}\([\.|\/]\)jm\([\.|\/|;]\)/${subcode}\1d\2/g" - sed -i -e ${SCRIPT} ${jpackagedestfile} - SCRIPT="s/T_${OPCODE}/T_${subcode}/g" - sed -i -e ${SCRIPT} ${jpackagedestfile} - sed -i -e "s/\(package .*\)${OPCODE}/\1${subcode}/" ${jpackagedestfile} - - srcdir=`dirname ${jtestsourcefile}` - for srcfile in `find src/${srcdir} -maxdepth 1 -type f ! -name "T_*.java" -a -name "*.java"`; do - echo $srcfile - SCRIPT="s#dxc/\(.*\)/${OPCODE}/jm/\(.*\).java#dot/\1/${subcode}/d/\2.java#" - jpackagedestfile=`echo ${srcfile} | sed -e $SCRIPT` - cp ${srcfile} ${jpackagedestfile} - sed -i -e 's/dxc\([\.|\/]\)junit/dot\1junit/' ${jpackagedestfile} - SCRIPT="s/${OPCODE}\([\.|\/]\)jm\([\.|\/|;]\)/${subcode}\1d\2/g" - sed -i -e ${SCRIPT} ${jpackagedestfile} - SCRIPT="s/T_${OPCODE}/T_${subcode}/g" - sed -i -e ${SCRIPT} ${jpackagedestfile} - sed -i -e "s/\(package .*\)${OPCODE}/\1${subcode}/" ${jpackagedestfile} - done - - srcdir=`dirname ${jpackageclassfile}` - for srcfile in `find src/${srcdir} -maxdepth 1 -type f ! -name "Main_*.java" -a ! -name "Test_*.java" -a -name "*.java"`; do - echo $srcfile - SCRIPT="s#dxc/\(.*\)/${OPCODE}/\(.*\)#dot/\1/${subcode}/\2#" - jpackagedestfile=`echo ${srcfile} | sed -e $SCRIPT` - cp -v ${srcfile} ${jpackagedestfile} - done - - else - echo "--- not dexable" - fi - cd ${BASEDIR} -done - - -done 3<$BASEDIR/data/scriptdata - diff --git a/tools/dx-tests/scripts/jm.sh b/tools/dx-tests/scripts/jm.sh deleted file mode 100755 index c9c18484975c4d10568a73c4f7080865f725583d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/scripts/jm.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -echo "compile jasmin files" -rm -rf out/classes_jasmin/* -java -jar lib/jasmin.jar -d out/classes_jasmin src/dxc/junit/**/**/**/*.j -echo "Done!" \ No newline at end of file diff --git a/tools/dx-tests/scripts/validate-tests.sh b/tools/dx-tests/scripts/validate-tests.sh deleted file mode 100755 index df73cf1b2646f85b66c57610795bd40f4e70b85e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/scripts/validate-tests.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Quick and dirty way to validate the DX tests against a JVM. Note that -# even the JVM has different bugs and verification behavior depending -# on the version. The tests pass 100% for the following setup: -# -# java version "1.6.0" -# Java(TM) SE Runtime Environment (build 1.6.0-b105) -# Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode) -# -# Linux ... 2.6.18.5-gg42workstation-mixed64-32 #1 SMP -# Tue Nov 25 21:45:59 PST 2008 x86_64 GNU/Linux -# -# You can only run the tests if the "dx-tests" target has been built before. -# -java -cp ./lib/junit.jar:$ANDROID_BUILD_TOP/out/target/common/cts/dxconverter/classout/ junit.textui.TestRunner dxc.junit.AllTests - - diff --git a/tools/dx-tests/src/dxc/Main.java b/tools/dx-tests/src/dxc/Main.java deleted file mode 100644 index 04031da65283cc26f0eac6d087465771f9febcce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/Main.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc; - -import dxc.junit.AllTests; -import junit.textui.TestRunner; - -/** - * Main class to run the jasmin tests. - */ -public class Main { - public static void main(String[] args) { - if (args.length == 0) { - System.out.println("Running all tests..."); - TestRunner.run(AllTests.suite()); - } else { - System.out.println("Running selected tests..."); - TestRunner.main(args); - } - - Runtime.getRuntime().halt(0); - } -} diff --git a/tools/dx-tests/src/dxc/junit/AllTests.java b/tools/dx-tests/src/dxc/junit/AllTests.java deleted file mode 100644 index d5867bf42c3284e704129f578876cf9b6e0f1c30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/AllTests.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit; - -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.textui.TestRunner; - -/** - * Listing of all the tests that are to be run. - */ -public class AllTests { - public static void run() { - TestRunner.main(new String[] {AllTests.class.getName()}); - } - - public static final Test suite() { - TestSuite suite = new TestSuite(); - // tests basic functionality - suite.addTest(dxc.junit.argsreturns.AllTests.suite()); - // tests all opcodes - suite.addTest(dxc.junit.opcodes.AllTests.suite()); - // tests all constraints that should be enforced by the verifier, - // but which do apply to more than one bytecode - suite.addTest(dxc.junit.verify.AllTests.suite()); - return suite; - } -} diff --git a/tools/dx-tests/src/dxc/junit/DxAbstractMain.java b/tools/dx-tests/src/dxc/junit/DxAbstractMain.java deleted file mode 100644 index 157e489be0a63a4347500571b54c2fade6f80d0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/DxAbstractMain.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package dxc.junit; - -public class DxAbstractMain { - - static public void assertEquals(int expected, int actual) { - if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals"); - } - - static public void assertEquals(long expected, long actual) { - if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals"); - } - - static public void assertEquals(double expected, double actual, double delta) { - if(!(Math.abs(expected-actual) <= delta)) throw new RuntimeException("AssertionFailedError: not within delta"); - } - - static public void assertEquals(Object expected, Object actual) { - if (expected == null && actual == null) - return; - if (expected != null && expected.equals(actual)) - return; - throw new RuntimeException("AssertionFailedError: not the same"); - } - - static public void assertTrue(boolean condition) { - if (!condition) throw new RuntimeException("AssertionFailedError: condition was false"); - } - - static public void assertFalse(boolean condition) { - if (condition) throw new RuntimeException("AssertionFailedError: condition was true"); - } - - static public void assertNotNull(Object object) { - if (object == null) throw new RuntimeException("AssertionFailedError: object was null"); - } - - static public void assertNull(Object object) { - if (object != null) throw new RuntimeException("AssertionFailedError: object was not null"); - } - - static public void fail(String message) { - throw new RuntimeException("AssertionFailedError msg:"+message); - } - - -} diff --git a/tools/dx-tests/src/dxc/junit/DxTestCase.java b/tools/dx-tests/src/dxc/junit/DxTestCase.java deleted file mode 100644 index 00b57e80649db805dc049f7d66dd68414a86eec3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/DxTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package dxc.junit; - -import junit.framework.TestCase; - -public class DxTestCase extends TestCase { - - // omit the "extends TestCase" and uncomment the following methods if you would like to run the tests as rolled-out, separate tests. - - /* - static public void assertEquals(int expected, int actual) { - if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals"); - } - - static public void assertEquals(long expected, long actual) { - if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals"); - } - - static public void assertEquals(double expected, double actual, double delta) { - if(!(Math.abs(expected-actual) <= delta)) throw new RuntimeException("AssertionFailedError: not within delta"); - } - - static public void assertEquals(Object expected, Object actual) { - if (expected == null && actual == null) - return; - if (expected != null && expected.equals(actual)) - return; - throw new RuntimeException("AssertionFailedError: not the same"); - } - - static public void assertTrue(boolean condition) { - if (!condition) throw new RuntimeException("AssertionFailedError: condition was false"); - } - - static public void assertFalse(boolean condition) { - if (condition) throw new RuntimeException("AssertionFailedError: condition was true"); - } - - static public void assertNotNull(Object object) { - if (object == null) throw new RuntimeException("AssertionFailedError: object was null"); - } - - static public void assertNull(Object object) { - if (object != null) throw new RuntimeException("AssertionFailedError: object was not null"); - } - - static public void fail(String message) { - throw new RuntimeException("AssertionFailedError msg:"+message); - } - */ - - -} diff --git a/tools/dx-tests/src/dxc/junit/DxUtil.java b/tools/dx-tests/src/dxc/junit/DxUtil.java deleted file mode 100644 index f1c90b3bee625baa74ab80a88b9da1402298500b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/DxUtil.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package dxc.junit; - -public class DxUtil { - private static boolean isDalvik = false; - - static { - /** - * whether in case of a failure, also ClassNotFoundException is accepted. - * this makes sense for invalid classes that got rejected by the dx tools - * and thus do not exist in .dex format, so that this class missing means a - * the expected verify error (though at the dx tool level) - */ -// String acnfS = System.getProperty("acceptCNF"); -// isDalvik = (acnfS != null && acnfS.equals("true")); - //System.out.println("@DX:DxUtil:isDalik="+isDalvik); - } - - public static void checkVerifyException(Throwable t) { - // the dalvik vm and other vm handle verify errors differently (see the dalvik verifier) - // the dalvik vm only throws a VerifyError, whereas other vm can throw all subclasses of - // LinkageError: - // - ClassCircularityError - // - ClassFormatError - // - ExceptionInInitializerError - // - IncompatibleClassChangeError - // - NoClassDefFoundError - // - UnsatisfiedLinkError - // - VerifyError - - // in case we are testing the dalvik, we also accept a ClassNotFoundException, - // since that may happen when a verify error was thrown by the dx tool and thus no - // classes.dex was written at all. - //System.out.println("@dx:debug:isDalvik:"+isDalvik); - /* - if ((t instanceof VerifyError || - (isDalvik && t instanceof ClassNotFoundException) || - (!isDalvik && !(t instanceof NoClassDefFoundError) - && t instanceof LinkageError))) { - // ok, this is what we expected - System.out.println("@dx:debug:vfe-ok: vfe was:"+t.getClass().getName()+", msg:"+t.getMessage()); - return; - } else { - throw new RuntimeException("test did not cause the expected verify error, but:"+t.getClass().getName()+", msg:"+t.getMessage()); - } -*/ - if (t instanceof VerifyError || t instanceof ClassNotFoundException || t instanceof LinkageError) { - if (t instanceof VerifyError) { - if (((VerifyError)t).getMessage().contains("Main_")) { - System.out.print("verify failed on Main_"); - } - } - // ok, this is what we expected - } else { - throw new RuntimeException("Verify error expected", t); - } - - } -} diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/AllTests.java b/tools/dx-tests/src/dxc/junit/argsreturns/AllTests.java deleted file mode 100644 index fc3286827dd85e0d88326587d5e5e3959d03d2c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/AllTests.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.argsreturns; - -import dxc.junit.argsreturns.pargsreturn.Test_pargsreturn; - -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.textui.TestRunner; - -/** - * Listing of all the tests that are to be run. - */ -public class AllTests { - - public static void run() { - TestRunner.main(new String[] {AllTests.class.getName()}); - } - - public static final Test suite() { - TestSuite suite = new TestSuite("Tests for basic java vm opcodes: " - + "calling method with parameters and return"); - suite.addTestSuite(Test_pargsreturn.class); - return suite; - } -} diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/Test_pargsreturn.java b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/Test_pargsreturn.java deleted file mode 100644 index e6f0f0403bed80dc2bf937584166dde639f6cb01..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/Test_pargsreturn.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.argsreturns.pargsreturn; - -import dxc.junit.DxTestCase; -import dxc.junit.argsreturns.pargsreturn.jm.T1; -import dxc.junit.argsreturns.pargsreturn.jm.T2; -import dxc.junit.argsreturns.pargsreturn.jm.T3; -import dxc.junit.argsreturns.pargsreturn.jm.T4; - -public class Test_pargsreturn extends DxTestCase { - - /** - * @title checks return value of a constant - */ - public void testN1() { - assertEquals(1234, new T1().run()); - } - - /** - * @title checks whether the correct int value is returned. - */ - public void testN2() { - assertEquals(1234, new T2().run(1234)); - } - - /** - * @title tests whether the correct int value is set. - */ - public void testN3() { - T3 t = new T3(); - t.run(1234); - assertEquals(1234, t.i1); - } - - /** - * @title tests correct setting of field values - */ - public void testN4() { - T4 t = new T4(); - t.run(1234); - assertEquals(50000000000l, t.j1); - assertEquals(1234, t.i1); - } - - - - -} diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T1.j b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T1.j deleted file mode 100644 index 46eb6b8652eb9be13c41906204fe9e8d26b96662..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T1.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T1.java -.class public dxc/junit/argsreturns/pargsreturn/jm/T1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - sipush 1234 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T1.java b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T1.java deleted file mode 100644 index 196ae8d56d74b782c0b9dcb98f23168ffdee8b0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.argsreturns.pargsreturn.jm; - -public class T1 { - public int run() { - return 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T2.j b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T2.j deleted file mode 100644 index 141877c1379b0c2594e73472997c54da077264d4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T2.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T2.java -.class public dxc/junit/argsreturns/pargsreturn/jm/T2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T2.java b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T2.java deleted file mode 100644 index b89bfd390df5e67ee9eece9707f6346141e762c2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.argsreturns.pargsreturn.jm; - -public class T2 { - public int run(int i) { - return i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T3.j b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T3.j deleted file mode 100644 index d4ead13626a16b43c8e021fe007a79af09962457..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T3.java -.class public dxc/junit/argsreturns/pargsreturn/jm/T3 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)V - .limit stack 2 - .limit locals 2 - aload_0 - iload_1 - putfield dxc.junit.argsreturns.pargsreturn.jm.T3.i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T3.java b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T3.java deleted file mode 100644 index e50f39e15f26f69e51efff54fdc04cf996828473..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.argsreturns.pargsreturn.jm; - -public class T3 { - public int i1; - - public void run(int i) { - i1 = i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T4.j b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T4.j deleted file mode 100644 index 1b294c65eb62836cc90ff8399e3a70c9061877b7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T4.java -.class public dxc/junit/argsreturns/pargsreturn/jm/T4 -.super java/lang/Object - -.field public i1 I -.field public j1 J - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)V - .limit stack 3 - .limit locals 2 - aload_0 - iload_1 - putfield dxc.junit.argsreturns.pargsreturn.jm.T4.i1 I - - aload_0 - ldc2_w 50000000000 - putfield dxc.junit.argsreturns.pargsreturn.jm.T4.j1 J - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T4.java b/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T4.java deleted file mode 100644 index bb8da487e07e66f437a4c6f719f6ff2752424a4b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/argsreturns/pargsreturn/jm/T4.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.argsreturns.pargsreturn.jm; - -public class T4 { - public int i1; - public long j1; - - public void run(int i) { - throw new UnsupportedOperationException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/AllTests.java b/tools/dx-tests/src/dxc/junit/opcodes/AllTests.java deleted file mode 100644 index 2c49ccc4b48a2158d2df6edc149195ac311463ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/AllTests.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes; - -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.textui.TestRunner; - -/** - * Listing of all the tests that are to be run. - */ -public class AllTests { - - public static void run() { - TestRunner.main(new String[] {AllTests.class.getName()}); - } - - public static final Test suite() { - TestSuite suite = new TestSuite("Tests for all java vm opcodes"); - suite.addTestSuite(dxc.junit.opcodes.aaload.Test_aaload.class); - suite.addTestSuite(dxc.junit.opcodes.aastore.Test_aastore.class); - suite - .addTestSuite(dxc.junit.opcodes.aconst_null.Test_aconst_null.class); - suite.addTestSuite(dxc.junit.opcodes.aload.Test_aload.class); - suite.addTestSuite(dxc.junit.opcodes.aload_0.Test_aload_0.class); - suite.addTestSuite(dxc.junit.opcodes.aload_1.Test_aload_1.class); - suite.addTestSuite(dxc.junit.opcodes.aload_2.Test_aload_2.class); - suite.addTestSuite(dxc.junit.opcodes.aload_3.Test_aload_3.class); - suite.addTestSuite(dxc.junit.opcodes.anewarray.Test_anewarray.class); - suite.addTestSuite(dxc.junit.opcodes.areturn.Test_areturn.class); - suite - .addTestSuite(dxc.junit.opcodes.arraylength.Test_arraylength.class); - suite.addTestSuite(dxc.junit.opcodes.astore.Test_astore.class); - suite.addTestSuite(dxc.junit.opcodes.astore_0.Test_astore_0.class); - suite.addTestSuite(dxc.junit.opcodes.astore_1.Test_astore_1.class); - suite.addTestSuite(dxc.junit.opcodes.astore_2.Test_astore_2.class); - suite.addTestSuite(dxc.junit.opcodes.astore_3.Test_astore_3.class); - suite.addTestSuite(dxc.junit.opcodes.athrow.Test_athrow.class); - suite.addTestSuite(dxc.junit.opcodes.baload.Test_baload.class); - suite.addTestSuite(dxc.junit.opcodes.bastore.Test_bastore.class); - suite.addTestSuite(dxc.junit.opcodes.bipush.Test_bipush.class); - suite.addTestSuite(dxc.junit.opcodes.caload.Test_caload.class); - suite.addTestSuite(dxc.junit.opcodes.castore.Test_castore.class); - suite.addTestSuite(dxc.junit.opcodes.checkcast.Test_checkcast.class); - suite.addTestSuite(dxc.junit.opcodes.d2f.Test_d2f.class); - suite.addTestSuite(dxc.junit.opcodes.d2i.Test_d2i.class); - suite.addTestSuite(dxc.junit.opcodes.d2l.Test_d2l.class); - suite.addTestSuite(dxc.junit.opcodes.dadd.Test_dadd.class); - suite.addTestSuite(dxc.junit.opcodes.daload.Test_daload.class); - suite.addTestSuite(dxc.junit.opcodes.dastore.Test_dastore.class); - suite.addTestSuite(dxc.junit.opcodes.dcmpg.Test_dcmpg.class); - suite.addTestSuite(dxc.junit.opcodes.dcmpl.Test_dcmpl.class); - suite.addTestSuite(dxc.junit.opcodes.dconst_0.Test_dconst_0.class); - suite.addTestSuite(dxc.junit.opcodes.dconst_1.Test_dconst_1.class); - suite.addTestSuite(dxc.junit.opcodes.ddiv.Test_ddiv.class); - suite.addTestSuite(dxc.junit.opcodes.dload.Test_dload.class); - suite.addTestSuite(dxc.junit.opcodes.dload_0.Test_dload_0.class); - suite.addTestSuite(dxc.junit.opcodes.dload_1.Test_dload_1.class); - suite.addTestSuite(dxc.junit.opcodes.dload_2.Test_dload_2.class); - suite.addTestSuite(dxc.junit.opcodes.dload_3.Test_dload_3.class); - suite.addTestSuite(dxc.junit.opcodes.dmul.Test_dmul.class); - suite.addTestSuite(dxc.junit.opcodes.dneg.Test_dneg.class); - suite.addTestSuite(dxc.junit.opcodes.drem.Test_drem.class); - suite.addTestSuite(dxc.junit.opcodes.dreturn.Test_dreturn.class); - suite.addTestSuite(dxc.junit.opcodes.dstore.Test_dstore.class); - suite.addTestSuite(dxc.junit.opcodes.dstore_0.Test_dstore_0.class); - suite.addTestSuite(dxc.junit.opcodes.dstore_1.Test_dstore_1.class); - suite.addTestSuite(dxc.junit.opcodes.dstore_2.Test_dstore_2.class); - suite.addTestSuite(dxc.junit.opcodes.dstore_3.Test_dstore_3.class); - suite.addTestSuite(dxc.junit.opcodes.dsub.Test_dsub.class); - suite.addTestSuite(dxc.junit.opcodes.dup.Test_dup.class); - suite.addTestSuite(dxc.junit.opcodes.dup_x1.Test_dup_x1.class); - suite.addTestSuite(dxc.junit.opcodes.dup_x2.Test_dup_x2.class); - suite.addTestSuite(dxc.junit.opcodes.dup2.Test_dup2.class); - suite.addTestSuite(dxc.junit.opcodes.dup2_x1.Test_dup2_x1.class); - suite.addTestSuite(dxc.junit.opcodes.dup2_x2.Test_dup2_x2.class); - suite.addTestSuite(dxc.junit.opcodes.f2d.Test_f2d.class); - suite.addTestSuite(dxc.junit.opcodes.f2i.Test_f2i.class); - suite.addTestSuite(dxc.junit.opcodes.f2l.Test_f2l.class); - suite.addTestSuite(dxc.junit.opcodes.fadd.Test_fadd.class); - suite.addTestSuite(dxc.junit.opcodes.faload.Test_faload.class); - suite.addTestSuite(dxc.junit.opcodes.fastore.Test_fastore.class); - suite.addTestSuite(dxc.junit.opcodes.fcmpg.Test_fcmpg.class); - suite.addTestSuite(dxc.junit.opcodes.fcmpl.Test_fcmpl.class); - suite.addTestSuite(dxc.junit.opcodes.fconst_0.Test_fconst_0.class); - suite.addTestSuite(dxc.junit.opcodes.fconst_1.Test_fconst_1.class); - suite.addTestSuite(dxc.junit.opcodes.fconst_2.Test_fconst_2.class); - suite.addTestSuite(dxc.junit.opcodes.fdiv.Test_fdiv.class); - suite.addTestSuite(dxc.junit.opcodes.fload.Test_fload.class); - suite.addTestSuite(dxc.junit.opcodes.fload_0.Test_fload_0.class); - suite.addTestSuite(dxc.junit.opcodes.fload_1.Test_fload_1.class); - suite.addTestSuite(dxc.junit.opcodes.fload_2.Test_fload_2.class); - suite.addTestSuite(dxc.junit.opcodes.fload_3.Test_fload_3.class); - suite.addTestSuite(dxc.junit.opcodes.fmul.Test_fmul.class); - suite.addTestSuite(dxc.junit.opcodes.fneg.Test_fneg.class); - suite.addTestSuite(dxc.junit.opcodes.frem.Test_frem.class); - suite.addTestSuite(dxc.junit.opcodes.freturn.Test_freturn.class); - suite.addTestSuite(dxc.junit.opcodes.fstore.Test_fstore.class); - suite.addTestSuite(dxc.junit.opcodes.fstore_0.Test_fstore_0.class); - suite.addTestSuite(dxc.junit.opcodes.fstore_1.Test_fstore_1.class); - suite.addTestSuite(dxc.junit.opcodes.fstore_2.Test_fstore_2.class); - suite.addTestSuite(dxc.junit.opcodes.fstore_3.Test_fstore_3.class); - suite.addTestSuite(dxc.junit.opcodes.fsub.Test_fsub.class); - suite.addTestSuite(dxc.junit.opcodes.getfield.Test_getfield.class); - suite.addTestSuite(dxc.junit.opcodes.getstatic.Test_getstatic.class); - suite.addTestSuite(dxc.junit.opcodes.opc_goto.Test_opc_goto.class); - suite.addTestSuite(dxc.junit.opcodes.goto_w.Test_goto_w.class); - suite.addTestSuite(dxc.junit.opcodes.i2b.Test_i2b.class); - suite.addTestSuite(dxc.junit.opcodes.i2c.Test_i2c.class); - suite.addTestSuite(dxc.junit.opcodes.i2d.Test_i2d.class); - suite.addTestSuite(dxc.junit.opcodes.i2f.Test_i2f.class); - suite.addTestSuite(dxc.junit.opcodes.i2l.Test_i2l.class); - suite.addTestSuite(dxc.junit.opcodes.i2s.Test_i2s.class); - suite.addTestSuite(dxc.junit.opcodes.iaload.Test_iaload.class); - suite.addTestSuite(dxc.junit.opcodes.iadd.Test_iadd.class); - suite.addTestSuite(dxc.junit.opcodes.iand.Test_iand.class); - suite.addTestSuite(dxc.junit.opcodes.iastore.Test_iastore.class); - suite.addTestSuite(dxc.junit.opcodes.iconst_m1.Test_iconst_m1.class); - suite.addTestSuite(dxc.junit.opcodes.iconst_0.Test_iconst_0.class); - suite.addTestSuite(dxc.junit.opcodes.iconst_1.Test_iconst_1.class); - suite.addTestSuite(dxc.junit.opcodes.iconst_2.Test_iconst_2.class); - suite.addTestSuite(dxc.junit.opcodes.iconst_3.Test_iconst_3.class); - suite.addTestSuite(dxc.junit.opcodes.iconst_4.Test_iconst_4.class); - suite.addTestSuite(dxc.junit.opcodes.iconst_5.Test_iconst_5.class); - suite.addTestSuite(dxc.junit.opcodes.idiv.Test_idiv.class); - suite.addTestSuite(dxc.junit.opcodes.if_acmpeq.Test_if_acmpeq.class); - suite.addTestSuite(dxc.junit.opcodes.if_acmpne.Test_if_acmpne.class); - suite.addTestSuite(dxc.junit.opcodes.if_icmpeq.Test_if_icmpeq.class); - suite.addTestSuite(dxc.junit.opcodes.if_icmpge.Test_if_icmpge.class); - suite.addTestSuite(dxc.junit.opcodes.if_icmpgt.Test_if_icmpgt.class); - suite.addTestSuite(dxc.junit.opcodes.if_icmple.Test_if_icmple.class); - suite.addTestSuite(dxc.junit.opcodes.if_icmplt.Test_if_icmplt.class); - suite.addTestSuite(dxc.junit.opcodes.if_icmpne.Test_if_icmpne.class); - suite.addTestSuite(dxc.junit.opcodes.ifeq.Test_ifeq.class); - suite.addTestSuite(dxc.junit.opcodes.ifge.Test_ifge.class); - suite.addTestSuite(dxc.junit.opcodes.ifgt.Test_ifgt.class); - suite.addTestSuite(dxc.junit.opcodes.ifle.Test_ifle.class); - suite.addTestSuite(dxc.junit.opcodes.iflt.Test_iflt.class); - suite.addTestSuite(dxc.junit.opcodes.ifne.Test_ifne.class); - suite.addTestSuite(dxc.junit.opcodes.ifnonnull.Test_ifnonnull.class); - suite.addTestSuite(dxc.junit.opcodes.ifnull.Test_ifnull.class); - suite.addTestSuite(dxc.junit.opcodes.iinc.Test_iinc.class); - suite.addTestSuite(dxc.junit.opcodes.iload.Test_iload.class); - suite.addTestSuite(dxc.junit.opcodes.iload_0.Test_iload_0.class); - suite.addTestSuite(dxc.junit.opcodes.iload_1.Test_iload_1.class); - suite.addTestSuite(dxc.junit.opcodes.iload_2.Test_iload_2.class); - suite.addTestSuite(dxc.junit.opcodes.iload_3.Test_iload_3.class); - suite.addTestSuite(dxc.junit.opcodes.imul.Test_imul.class); - suite.addTestSuite(dxc.junit.opcodes.ineg.Test_ineg.class); - suite - .addTestSuite(dxc.junit.opcodes.opc_instanceof.Test_opc_instanceof.class); - suite - .addTestSuite(dxc.junit.opcodes.invokeinterface.Test_invokeinterface.class); - suite - .addTestSuite(dxc.junit.opcodes.invokespecial.Test_invokespecial.class); - suite - .addTestSuite(dxc.junit.opcodes.invokestatic.Test_invokestatic.class); - suite - .addTestSuite(dxc.junit.opcodes.invokevirtual.Test_invokevirtual.class); - suite.addTestSuite(dxc.junit.opcodes.ior.Test_ior.class); - suite.addTestSuite(dxc.junit.opcodes.irem.Test_irem.class); - suite.addTestSuite(dxc.junit.opcodes.ireturn.Test_ireturn.class); - suite.addTestSuite(dxc.junit.opcodes.ishl.Test_ishl.class); - suite.addTestSuite(dxc.junit.opcodes.ishr.Test_ishr.class); - suite.addTestSuite(dxc.junit.opcodes.istore.Test_istore.class); - suite.addTestSuite(dxc.junit.opcodes.istore_0.Test_istore_0.class); - suite.addTestSuite(dxc.junit.opcodes.istore_1.Test_istore_1.class); - suite.addTestSuite(dxc.junit.opcodes.istore_2.Test_istore_2.class); - suite.addTestSuite(dxc.junit.opcodes.istore_3.Test_istore_3.class); - suite.addTestSuite(dxc.junit.opcodes.isub.Test_isub.class); - suite.addTestSuite(dxc.junit.opcodes.iushr.Test_iushr.class); - suite.addTestSuite(dxc.junit.opcodes.ixor.Test_ixor.class); - suite.addTestSuite(dxc.junit.opcodes.jsr.Test_jsr.class); - suite.addTestSuite(dxc.junit.opcodes.jsr_w.Test_jsr_w.class); - suite.addTestSuite(dxc.junit.opcodes.l2d.Test_l2d.class); - suite.addTestSuite(dxc.junit.opcodes.l2f.Test_l2f.class); - suite.addTestSuite(dxc.junit.opcodes.l2i.Test_l2i.class); - suite.addTestSuite(dxc.junit.opcodes.ladd.Test_ladd.class); - suite.addTestSuite(dxc.junit.opcodes.laload.Test_laload.class); - suite.addTestSuite(dxc.junit.opcodes.land.Test_land.class); - suite.addTestSuite(dxc.junit.opcodes.lastore.Test_lastore.class); - suite.addTestSuite(dxc.junit.opcodes.lcmp.Test_lcmp.class); - suite.addTestSuite(dxc.junit.opcodes.lconst_0.Test_lconst_0.class); - suite.addTestSuite(dxc.junit.opcodes.lconst_1.Test_lconst_1.class); - suite.addTestSuite(dxc.junit.opcodes.ldc.Test_ldc.class); - suite.addTestSuite(dxc.junit.opcodes.ldc_w.Test_ldc_w.class); - suite.addTestSuite(dxc.junit.opcodes.ldc2_w.Test_ldc2_w.class); - suite.addTestSuite(dxc.junit.opcodes.ldiv.Test_ldiv.class); - suite.addTestSuite(dxc.junit.opcodes.lload.Test_lload.class); - suite.addTestSuite(dxc.junit.opcodes.lload_0.Test_lload_0.class); - suite.addTestSuite(dxc.junit.opcodes.lload_1.Test_lload_1.class); - suite.addTestSuite(dxc.junit.opcodes.lload_2.Test_lload_2.class); - suite.addTestSuite(dxc.junit.opcodes.lload_3.Test_lload_3.class); - suite.addTestSuite(dxc.junit.opcodes.lmul.Test_lmul.class); - suite.addTestSuite(dxc.junit.opcodes.lneg.Test_lneg.class); - suite - .addTestSuite(dxc.junit.opcodes.lookupswitch.Test_lookupswitch.class); - suite.addTestSuite(dxc.junit.opcodes.lor.Test_lor.class); - suite.addTestSuite(dxc.junit.opcodes.lrem.Test_lrem.class); - suite.addTestSuite(dxc.junit.opcodes.lreturn.Test_lreturn.class); - suite.addTestSuite(dxc.junit.opcodes.lshl.Test_lshl.class); - suite.addTestSuite(dxc.junit.opcodes.lshr.Test_lshr.class); - suite.addTestSuite(dxc.junit.opcodes.lstore.Test_lstore.class); - suite.addTestSuite(dxc.junit.opcodes.lstore_0.Test_lstore_0.class); - suite.addTestSuite(dxc.junit.opcodes.lstore_1.Test_lstore_1.class); - suite.addTestSuite(dxc.junit.opcodes.lstore_2.Test_lstore_2.class); - suite.addTestSuite(dxc.junit.opcodes.lstore_3.Test_lstore_3.class); - suite.addTestSuite(dxc.junit.opcodes.lsub.Test_lsub.class); - suite.addTestSuite(dxc.junit.opcodes.lushr.Test_lushr.class); - suite.addTestSuite(dxc.junit.opcodes.lxor.Test_lxor.class); - suite - .addTestSuite(dxc.junit.opcodes.monitorenter.Test_monitorenter.class); - suite - .addTestSuite(dxc.junit.opcodes.monitorexit.Test_monitorexit.class); - suite - .addTestSuite(dxc.junit.opcodes.multianewarray.Test_multianewarray.class); - suite.addTestSuite(dxc.junit.opcodes.opc_new.Test_opc_new.class); - suite.addTestSuite(dxc.junit.opcodes.newarray.Test_newarray.class); - suite.addTestSuite(dxc.junit.opcodes.nop.Test_nop.class); - suite.addTestSuite(dxc.junit.opcodes.pop.Test_pop.class); - suite.addTestSuite(dxc.junit.opcodes.pop2.Test_pop2.class); - suite.addTestSuite(dxc.junit.opcodes.putfield.Test_putfield.class); - suite.addTestSuite(dxc.junit.opcodes.putstatic.Test_putstatic.class); - suite.addTestSuite(dxc.junit.opcodes.ret.Test_ret.class); - suite.addTestSuite(dxc.junit.opcodes.opc_return.Test_opc_return.class); - suite.addTestSuite(dxc.junit.opcodes.saload.Test_saload.class); - suite.addTestSuite(dxc.junit.opcodes.sastore.Test_sastore.class); - suite.addTestSuite(dxc.junit.opcodes.sipush.Test_sipush.class); - suite.addTestSuite(dxc.junit.opcodes.swap.Test_swap.class); - suite - .addTestSuite(dxc.junit.opcodes.tableswitch.Test_tableswitch.class); - suite.addTestSuite(dxc.junit.opcodes.wide.Test_wide.class); - - return suite; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/Test_aaload.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/Test_aaload.java deleted file mode 100644 index eebfa9285ebc9811e24bf2c37b39d6016d6bbdbd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/Test_aaload.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aaload.jm.T_aaload_1; - -public class Test_aaload extends DxTestCase { - - /** - * @title Normal test. Trying different indexes - */ - public void testN1() { - T_aaload_1 t = new T_aaload_1(); - String[] arr = new String[] {"a", "b"}; - assertEquals("a", t.run(arr, 0)); - } - - /** - * @title Normal test. Trying different indexes - */ - public void testN2() { - T_aaload_1 t = new T_aaload_1(); - String[] arr = new String[] {"a", "b"}; - assertEquals("b", t.run(arr, 1)); - } - - /** - * @title ArrayIndexOutOfBoundsException expected - */ - public void testE1() { - T_aaload_1 t = new T_aaload_1(); - String[] arr = new String[] {"a", "b"}; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aioobe) { - // expected - } - } - - /** - * @title Negative index. ArrayIndexOutOfBoundsException expected - */ - public void testE2() { - T_aaload_1 t = new T_aaload_1(); - String[] arr = new String[] {"a", "b"}; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aioobe) { - // expected - } - } - - /** - * @title NullPointerException expected - */ - public void testE3() { - T_aaload_1 t = new T_aaload_1(); - String[] arr = null; - try { - t.run(arr, 0); - fail("expected NullPointerException"); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float[], int - */ - public void testVFE6() { - try { // opcodes.aastore.jm - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.aaload.jm.T_aaload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_1.j deleted file mode 100644 index 90ecad724b5a75fe1d8ff7c221842a3feef98327..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_1.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_1.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([Ljava/lang/String;I)Ljava/lang/String; - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - aaload - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_1.java deleted file mode 100644 index 8cdd5275376fdc7f8ee2412d168d510c5c507a77..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_1 { - - public String run(String [] arr, int idx) { - return arr[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_2.j deleted file mode 100644 index 6f906b0d71c7601bcdc67ef415d5e1c701c9e941..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_2.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/String;I)Ljava/lang/String; - .limit stack 2 - .limit locals 3 - -; aload_1 - iload_2 - aaload - - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_2.java deleted file mode 100644 index 55c823817f1063b30fff243c592ec60a6d3f7ff1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_2 { - - public String run(String [] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_3.j deleted file mode 100644 index 370de7099d17b5178b035705a7552d8937bdf77d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_3.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/String;I)Ljava/lang/String; - .limit stack 2 - .limit locals 3 - - aload_1 -; iload_2 - aaload - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_3.java deleted file mode 100644 index 0afdc213c41f627c728c74ab2ebf95e8a704607d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_3 { - - public String run(String [] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_4.j deleted file mode 100644 index 94d7275e502cb4e60ac1b0dc131ec75a89d3d7c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_4.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/String;D)Ljava/lang/String; - .limit stack 3 - .limit locals 4 - - aload_1 - dload_2 - aaload - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_4.java deleted file mode 100644 index 4505b73e6e48a7bef0fbf6b81bb5daae15ec0239..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_4 { - - public String run(String [] arr, double idx) { - return arr[(int)idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_5.j deleted file mode 100644 index a34bcdc23e02ce89632a86ab84a150e63aff53fb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_5.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/String;J)Ljava/lang/String; - .limit stack 3 - .limit locals 4 - - aload_1 - lload_2 - aaload - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_5.java deleted file mode 100644 index 33b389677c6311bff3b487df1c8722f5981e8aff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_5 { - - public String run(String [] arr, long idx) { - return arr[(int)idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_6.j deleted file mode 100644 index e4dbc175ba55a863815ba0a0b46e7164ae547360..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_6.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;[Ljava/lang/String;I)Ljava/lang/String; - .limit stack 2 - .limit locals 4 - - aload_1 - iload_3 - aaload - - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_6.java deleted file mode 100644 index 35c428f57641c49734fca47e11d8e91610e4f98b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_6 { - - public String run(Object a, String[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_7.j deleted file mode 100644 index 86a256d1ea56bc2ef45a4c51eefd976e9bc69b45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_7.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([F[Ljava/lang/String;I)Ljava/lang/String; - .limit stack 2 - .limit locals 4 - - aload_1 - iload_3 - aaload - - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_7.java deleted file mode 100644 index 445620533b7cce2dc8d7b6170ae8367abb66bf0a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_7 { - - public String run(float[] a, String[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_8.j deleted file mode 100644 index 5cd99efd24f228d4f3871222a7d688b2e3a2e3d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_8.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_8.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([J[Ljava/lang/String;I)Ljava/lang/String; - .limit stack 2 - .limit locals 4 - - aload_1 - iload_3 - aaload - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_8.java deleted file mode 100644 index 18882331f2dc6e87537766b90c51e20fa4cbfc45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_8 { - - public String run(long[] a, String[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_9.j deleted file mode 100644 index 27de7bc3f91f6bdb4ed8bec481a57db8f249016a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aaload_9.java -.class public dxc/junit/opcodes/aaload/jm/T_aaload_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/String;I)Ljava/lang/String; - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - aaload - - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_9.java deleted file mode 100644 index 33c3824523566598af7054730554c4a051dfd452..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aaload/jm/T_aaload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aaload.jm; - -public class T_aaload_9 { - - public String run(String [] arr, int idx) { - return arr[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/Test_aastore.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/Test_aastore.java deleted file mode 100644 index 419c7b0a3e5e6287e4c8f48ccb6971c904855f97..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/Test_aastore.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aastore.jm.T_aastore_1; -import dxc.junit.opcodes.aastore.jm.T_aastore_10; -import dxc.junit.opcodes.aastore.jm.T_aastore_11; -import dxc.junit.opcodes.aastore.jm.T_aastore_4; - -public class Test_aastore extends DxTestCase { - - /** - * @title Normal test. Trying different indexes - */ - public void testN1() { - T_aastore_1 t = new T_aastore_1(); - String[] arr = new String[2]; - t.run(arr, 0, "hello"); - assertEquals("hello", arr[0]); - } - - /** - * @title Normal test. Trying different indexes - */ - public void testN2() { - T_aastore_1 t = new T_aastore_1(); - String[] value = {"world", null, ""}; - String[] arr = new String[2]; - for (int i = 0; i < value.length; i++) { - t.run(arr, 1, value[i]); - assertEquals(value[i], arr[1]); - } - } - - /** - * @title Normal test. Trying different indexes - */ - public void testN3() { - T_aastore_10 t = new T_aastore_10(); - Integer[] arr = new Integer[2]; - Integer value = new Integer(12345); - t.run(arr, 0, value); - assertEquals(value, arr[0]); - } - - /** - * @title Check assignement compatibility rules - */ - public void testN4() { - // @uses dxc.junit.opcodes.aastore.jm.SubClass - // @uses dxc.junit.opcodes.aastore.jm.SuperClass - // @uses dxc.junit.opcodes.aastore.jm.SuperInterface - // @uses dxc.junit.opcodes.aastore.jm.SuperInterface2 - T_aastore_11 t = new T_aastore_11(); - assertEquals(3, t.run()); - - } - - /** - * @title ArrayIndexOutOfBoundsException expected - */ - public void testE1() { - T_aastore_1 t = new T_aastore_1(); - String[] arr = new String[2]; - try { - t.run(arr, arr.length, "abc"); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE2() { - T_aastore_1 t = new T_aastore_1(); - String[] arr = new String[2]; - try { - t.run(arr, -1, "abc"); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE3() { - T_aastore_1 t = new T_aastore_1(); - String[] arr = null; - try { - t.run(arr, 0, "abc"); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayStoreException - */ - public void testE4() { - T_aastore_4 t = new T_aastore_4(); - String[] arr = new String[2]; - try { - t.run(arr, 0, this); - fail("expected ArrayStoreException"); - } catch (ArrayStoreException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, String - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, String - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float[], int, String - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int, String - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, String - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.aastore.jm.T_aastore_12"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_1.j deleted file mode 100644 index abbd91c855d4448f76ee4b5c97ad05688b71361f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_1.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/String;ILjava/lang/String;)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - aload_3 - aastore - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_1.java deleted file mode 100644 index bea5c1941eb3327c6885d1224995f9dbe763d625..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_1 { - - public void run(String[] arr, int idx, String value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_10.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_10.j deleted file mode 100644 index 1dbfb4b1738f7c526a82e14124ee6d0c33521d6d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_10.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_10.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/Integer;ILjava/lang/Integer;)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - aload_3 - aastore - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_10.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_10.java deleted file mode 100644 index f94c16604af9e077e0d11b089e444e6d26af1727..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_10 { - - public void run(Integer[] arr, int idx, Integer value) { - arr[idx] = value; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_11.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_11.j deleted file mode 100644 index 278f7f0bee2df15f6b138da1feb1de246f6439ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_11.j +++ /dev/null @@ -1,132 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_11.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 20 - .limit locals 10 - - iconst_0 - istore_1 - - iconst_1 - anewarray dxc/junit/opcodes/aastore/jm/SubClass - astore_2 ; SubClass[] - - iconst_1 - anewarray dxc/junit/opcodes/aastore/jm/SuperClass - astore_3 ; SuperClass[] - - new dxc/junit/opcodes/aastore/jm/SubClass - dup - invokespecial dxc/junit/opcodes/aastore/jm/SubClass.()V - astore 4 ; SubClass - - new dxc/junit/opcodes/aastore/jm/SuperClass - dup - invokespecial dxc/junit/opcodes/aastore/jm/SuperClass.()V - astore 5 ; SuperClass - - iconst_1 - anewarray dxc/junit/opcodes/aastore/jm/SuperInterface - astore 6 ; SuperInterface[] - - iconst_1 - anewarray java/lang/Object - astore 7 ; Object[] - - iconst_1 - anewarray dxc/junit/opcodes/aastore/jm/SuperInterface2 - astore 8 ; SuperInterface2[] - -; (SubClass -> SuperClass[]) - aload 3 - iconst_0 - aload 4 - aastore - -; (SubClass -> SuperInterface[]) - aload 6 - iconst_0 - aload 4 - aastore - -; (SubClass -> Object[]) - aload 7 - iconst_0 - aload 4 - aastore - -; !(SuperClass -> SubClass[]) -Label1: - aload 2 - iconst_0 - aload 5 -Label10: - nop - aastore -Label11: - goto Label2 -Label12: - pop - iinc 1 1 - goto Label2 - -; !(SuperClass -> SuperInterface2[]) -Label2: - aload 8 - iconst_0 - aload 5 -Label20: - aastore -Label21: - goto Label3 -Label22: - pop - iinc 1 1 - goto Label3 - -; !(SubClass[] -> SuperInterface[]) -Label3: - aload 6 - iconst_0 - aload 2 -Label30: - aastore -Label31: - goto Label4 -Label32: - pop - iinc 1 1 - goto Label4 - -Label4: -Label6: - iload_1 - ireturn - -.catch java/lang/ArrayStoreException from Label10 to Label11 using Label12 -.catch java/lang/ArrayStoreException from Label20 to Label21 using Label22 -.catch java/lang/ArrayStoreException from Label30 to Label31 using Label32 - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_11.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_11.java deleted file mode 100644 index ad0c2224c91ab3ebafa968a6bba43d3295dec8cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_11 { - - public int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_12.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_12.j deleted file mode 100644 index ee00a4a9dd4a77e3f635dfdc7a878a410a06e0f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_12.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_12.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_12 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/String;ILjava/lang/String;)V - .limit stack 3 - .limit locals 4 - - aload_1 - aload_0 - aload_3 - aastore - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_12.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_12.java deleted file mode 100644 index c2b1c7578018fe6267dfb4585a86085c87af9045..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_12.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_12 { - - public void run(String[] arr, int idx, String value) { - arr[idx] = value; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_2.j deleted file mode 100644 index 2c9d227ab08a2fe2589d5faf1a2e7856921ac22d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_2.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([Ljava/lang/String;ILjava/lang/String;)V - .limit stack 3 - .limit locals 4 - -; aload_1 - iload_2 - aload_3 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_2.java deleted file mode 100644 index 39b0b09f0aa481bc164f13cec22bd3109ae35c5f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_2 { - - public void run(String[] arr, int idx, String value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_3.j deleted file mode 100644 index 531ab76497627499102961edf7fc068856107f53..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_3.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([Ljava/lang/String;ILjava/lang/String;)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 -; aload_3 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_3.java deleted file mode 100644 index 2f77f611283826d8f15a680dc6b21e3ec1275703..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_3 { - - public void run(String[] arr, int idx, String value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_4.j deleted file mode 100644 index 38b89e8c9469490350dfc79840e3723fa0557d8f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_4.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([Ljava/lang/String;ILjava/lang/Object;)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - aload_3 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_4.java deleted file mode 100644 index 3c6f5583bde3e1679c2b392e6b2d428f4ab69b59..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_4.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_4 { - -// public void run(Integer[] arr, int idx) { - /* similar to - * Object x[] = new String[3]; - * x[0] = new Integer(0); - */ -// } - - public void run(String[] arr, int idx, Object a) { - //arr[idx] = a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_5.j deleted file mode 100644 index 89e70cc7721bef02a940e9775912ae02d4845ed6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_5.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([Ljava/lang/String;DLjava/lang/String;)V - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 - aload 4 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_5.java deleted file mode 100644 index d0636232d047dfbacff8c9613779fce1468d0be1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_5 { - - public void run(String[] arr, double idx, String value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_6.j deleted file mode 100644 index 1e5e7cead4a0b11dc3d8f682cd0a7b515ef02307..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_6.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_6.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([Ljava/lang/String;IJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload_3 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_6.java deleted file mode 100644 index 449f21c7d7781af4008053d0d93032ea979d3431..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_6 { - - public void run(String[] arr, int idx, String value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_7.j deleted file mode 100644 index b89c42f8ed134d7ddc0d2867925d1880568da340..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_7.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_7.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ljava/lang/Object;ILjava/lang/String;)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_2 - aload 3 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_7.java deleted file mode 100644 index 082f5c27520781def4d695c9198ebafffffc45b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_7 { - - public void run(Object a, String[] arr, int idx, String value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_8.j deleted file mode 100644 index d6fc1471df3c4c3d32c5d7c4bf809b1f922d0b9d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_8.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_8.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([FILjava/lang/String;)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_2 - aload 3 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_8.java deleted file mode 100644 index ef570882739408fc99a044b6f57486f41273be33..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_8 { - - public void run(String a[], float[] arr, int idx, String value) { - a[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_9.j deleted file mode 100644 index 83d163f4747bc591798cb1adbf098c16353f46f8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_9.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aastore_9.java -.class public dxc/junit/opcodes/aastore/jm/T_aastore_9 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([JILjava/lang/String;)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_2 - aload 3 - aastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_9.java deleted file mode 100644 index f5713a01cd0d7dbd74cc63f4d0e9df283c6ed300..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/T_aastore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - -public class T_aastore_9 { - - public void run(String a[], long[] arr, int idx, String value) { - a[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/TestStubs.java deleted file mode 100644 index 190220fca3261673352e5af6c69699fb1ea86b80..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aastore/jm/TestStubs.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aastore.jm; - - -interface SuperInterface{ - -} - -interface SuperInterface2{ - -} - -class SuperClass implements SuperInterface{ - -} - -class SubClass extends SuperClass{ - -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/Test_aconst_null.java b/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/Test_aconst_null.java deleted file mode 100644 index 531e559b47da69eeaded1e7907ca7eff8bb3a548..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/Test_aconst_null.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aconst_null; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aconst_null.jm.T_aconst_null_1; - -public class Test_aconst_null extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - assertEquals(null, new T_aconst_null_1().run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aconst_null.jm.T_aconst_null_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_1.j deleted file mode 100644 index fe997d2996bb15707b49e790fbac98c63dc69301..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_1.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.class public dxc/junit/opcodes/aconst_null/jm/T_aconst_null_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ljava/lang/Object; - .limit stack 1 - .limit locals 1 - - aconst_null - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_1.java deleted file mode 100644 index 0cc8d3366b91661d341da913e9065865394fd228..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aconst_null.jm; - -public class T_aconst_null_1 { - public Object run() { - return null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_2.j deleted file mode 100644 index 9993f2b178f5657f450bca7e232247ae59000adf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aconst_null/jm/T_aconst_null_2.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.class public dxc/junit/opcodes/aconst_null/jm/T_aconst_null_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ljava/lang/Object; - .limit stack 0 - .limit locals 1 - - aconst_null - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/Test_aload.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/Test_aload.java deleted file mode 100644 index cff192e680b9c3c22c2a1095716e3af29029f2f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/Test_aload.java +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aload.jm.T_aload_1; -import dxc.junit.opcodes.aload.jm.T_aload_1_w; -import dxc.junit.opcodes.aload.jm.T_aload_2; -import dxc.junit.opcodes.aload.jm.T_aload_2_w; - -/** - * NORMAL aload VERSION - */ -public class Test_aload extends DxTestCase { - - /** - * @title Test aload 1 - */ - public void testN1() { - T_aload_1 t = new T_aload_1(); - assertEquals("hello", t.run()); - } - - /** - * @title Test aload 255 - */ - public void testN2() { - T_aload_2 t = new T_aload_2(); - assertEquals("hello", t.run()); - } - - /** - * @constraint 4.8.1.21 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.21 - * @title returnAddress may not be loaded from - * local variable - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE aload VERSION - */ - - /** - * @title Test aload 257 - */ - public void testN3() { - T_aload_1_w t = new T_aload_1_w(); - assertEquals("hello", t.run()); - } - - /** - * @title Test aload_w 1 - */ - public void testN4() { - T_aload_2_w t = new T_aload_2_w(); - assertEquals("hello", t.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_5_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE9() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_6_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.21 - * @title returnAddress may not be loaded from - * local variable - */ - public void testVFE10() { - try { - Class.forName("dxc.junit.opcodes.aload.jm.T_aload_7_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1.j deleted file mode 100644 index 85632390c3ecc1e9b457b41fa1982a166a235f7a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1.java -.class public dxc/junit/opcodes/aload/jm/T_aload_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 3 - .limit locals 2 - - ldc "hello" - astore_1 - ldc "hi" - aload_1 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1.java deleted file mode 100644 index fb737bebdc2da562e47116dcf19810d54b06e94b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_1 { - - public String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1_w.j deleted file mode 100644 index cb90bcb1ffb34abde0be2af376de5df5cf5d278b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_w.java -.class public dxc/junit/opcodes/aload/jm/T_aload_1_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 3 - .limit locals 300 - - ldc "hello" - astore 257 - ldc "hi" - aload 257 - - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1_w.java deleted file mode 100644 index eee3830114c57ba191f4082ace492f279d54eac9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_1_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_1_w { - - public String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2.j deleted file mode 100644 index 2bd7bf4b0cdbf2bf4b1f51108b7fef7c6e10ff9e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2.java -.class public dxc/junit/opcodes/aload/jm/T_aload_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 4 - .limit locals 300 - - new java/lang/String - dup - ldc "hello" - astore 255 - ldc "hi" - aload 255 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2.java deleted file mode 100644 index 23b55e37271375faf327b4a1c9d3d666c7c6ffac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_2 { - - public String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2_w.j deleted file mode 100644 index fb0bb5f4b51c240394a2ea7f107a19c797268c96..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_w.java -.class public dxc/junit/opcodes/aload/jm/T_aload_2_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 3 - .limit locals 2 - - ldc "hello" - astore_1 - ldc "hi" - aload_w 1 - - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2_w.java deleted file mode 100644 index 34ae0fd28566498e47f05b514b9b4fd9e596cfb1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_2_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_2_w { - - public String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3.j deleted file mode 100644 index 0c5d5f2c6b22962cc6b94b96d9dfad909e7a3cfa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3.java -.class public dxc/junit/opcodes/aload/jm/T_aload_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 1 - - aload 1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3.java deleted file mode 100644 index e09b3f39863538db161d44f26e7cb6ea59ddd960..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_3 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3_w.j deleted file mode 100644 index 41696c1c8ffca7dcd45093f0d7741acd3293fa08..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_w.java -.class public dxc/junit/opcodes/aload/jm/T_aload_3_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 300 - - aload 300 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3_w.java deleted file mode 100644 index 1bda5b3fc09f60a3d53602a70c83585b203b22ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_3_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_3_w { - - public void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4.j deleted file mode 100644 index d14e595e0a202180ffd610108a4ed4367eebc2fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_4.java -.class public dxc/junit/opcodes/aload/jm/T_aload_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_1 - fconst_1 - fstore_2 - - aload 1 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4.java deleted file mode 100644 index a293d137167adaa105151f879c41b63a0172b282..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_4 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4_w.j deleted file mode 100644 index c6112743a608e47094a7e72f65180f85e787d501..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4_w.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_4_w.java -.class public dxc/junit/opcodes/aload/jm/T_aload_4_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 300 - - iconst_1 - istore 260 - iconst_1 - istore 261 - - aload_w 260 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4_w.java deleted file mode 100644 index 17ee8f6c61228599fcbfc63949f85ac147679bf5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_4_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_4_w { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5.j deleted file mode 100644 index c568f542b91e6cfc62ad9dc21bef75eb93e0f6f5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_5.java -.class public dxc/junit/opcodes/aload/jm/T_aload_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_1 - - aload 1 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5.java deleted file mode 100644 index 21b90bd32f9ab3c39ee7623ad86ce51a2d04495d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_5 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5_w.j deleted file mode 100644 index 4c133fc08b72ffc48ece7d11af9b5c296525579c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_5_w.java -.class public dxc/junit/opcodes/aload/jm/T_aload_5_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore 260 - dconst_1 - dstore 261 - - aload_w 260 - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5_w.java deleted file mode 100644 index 8331d511e992860c525a5b86905c57becc78964a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_5_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_5_w { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6.j deleted file mode 100644 index afbff18e7bc6e27ca5e719a0ce93d5975add945a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_6.java -.class public dxc/junit/opcodes/aload/jm/T_aload_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 2 - - ldc "abc" - astore_1 - - aload 1 - aload 1 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6.java deleted file mode 100644 index 2a622c05e2bf31726a2abb1de7d913b6428fbae7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_6 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6_w.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6_w.j deleted file mode 100644 index 0e62855ed4fcc312a603ef072ff0e7a53e454ff4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_6_w.java -.class public dxc/junit/opcodes/aload/jm/T_aload_6_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 300 - - ldc "hello" - astore 260 - - aload_w 260 - aload_w 260 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6_w.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6_w.java deleted file mode 100644 index 38ec788cc2058024217af09513f3e3663aca4f03..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_6_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_6_w { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7.j deleted file mode 100644 index 8aacd2c310f5fe25927d2b7af1c18f018d869241..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_7.java -.class public dxc/junit/opcodes/aload/jm/T_aload_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 2 - - jsr Label1 - return - -Label1: - astore_1 - aload 1 - ret 1 - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7.java deleted file mode 100644 index 2ff26f0f5a430bab2b02aea807891398dfaa1c67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_7 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7_w.j b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7_w.j deleted file mode 100644 index 9b7a8e9a324231e8203345683e7e48c291dcbfc9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7_w.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_7_w.java -.class public dxc/junit/opcodes/aload/jm/T_aload_7_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 2 - - jsr Label1 - return - -Label1: - astore_1 - aload_w 1 - ret 1 - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7_w.java b/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7_w.java deleted file mode 100644 index 110edd8e3612fe190721da1ee986100a2e1a5e0c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload/jm/T_aload_7_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload.jm; - -public class T_aload_7_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/Test_aload_0.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/Test_aload_0.java deleted file mode 100644 index 457d2abdb32bbdf5d711318f4dcd3db35aa30ad2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/Test_aload_0.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aload_0.jm.T_aload_0_1; -import dxc.junit.opcodes.aload_0.jm.T_aload_0_6; - -public class Test_aload_0 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals("hello", T_aload_0_1.run()); - } - - /** - * @title equality of aload_ and aload - */ - public void testN2() { - assertTrue(T_aload_0_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aload_0.jm.T_aload_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.aload_0.jm.T_aload_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.aload_0.jm.T_aload_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.aload_0.jm.T_aload_0_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.aload_0.jm.T_aload_0_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.21 - * @title returnAddress may not be loaded from - * local variable - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.aload_0.jm.T_aload_0_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_1.j deleted file mode 100644 index 99a6407e7ce933d0a3509b37e3e1d8813ce89dfd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_1.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 3 - .limit locals 2 - - ldc "hello" - astore_0 - ldc "hi" - aload_0 - areturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_1.java deleted file mode 100644 index cc72d47abea2ca7396160df0e2b0bfb314081236..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_2.j deleted file mode 100644 index 0e2b13030bc238b34685d5c8367f8859faa5a0ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_2.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - aload_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_2.java deleted file mode 100644 index ede0a706ba9f627f9e909dd05c164c2848abdaec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_3.j deleted file mode 100644 index 681f4007c1a79e7f04647b81d1984fff6008dc7c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_3.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_3.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_0 - fconst_1 - fstore_1 - - aload_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_3.java deleted file mode 100644 index e9ee293d54d11f8b7eb1a76e458d033e66530e1a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_4.j deleted file mode 100644 index ea898b30f0b61229f13e759c43fa8a95f16e6360..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_4.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_0 - - aload_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_4.java deleted file mode 100644 index c6a30adec42a0a59162e9c1330d18cac91d91dff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_5.j deleted file mode 100644 index c30867e82060fd9eea3013814005a537cc0a5a46..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_5.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - iconst_1 - istore_0 - - aload_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_5.java deleted file mode 100644 index c9a12a32c54f6d5684e9aee34c4bf212c8bf7a55..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_6.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_6.j deleted file mode 100644 index 1f823e54fc58820a7bce2c295f7e93e37af91602..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_6.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 2 - - ldc "hello" - astore_0 - - aload_0 - aload 0 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_6.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_6.java deleted file mode 100644 index 350126f0a9842d151e8d24917f24030d8dc4718c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_6 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_7.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_7.j deleted file mode 100644 index 8e0073c01cdeeda4503d96d3b0c681a0adaffacb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_7.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_7.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - ldc "hello" - astore_0 - - aload_0 - aload_0 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_7.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_7.java deleted file mode 100644 index 7d002efc3d0dd6a34861eeafa281f504fa9fa559..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_7.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_7 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_8.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_8.j deleted file mode 100644 index d2922cc4b38c0578237efb06a3969028f060b5bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_8.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_0_8.java -.class public dxc/junit/opcodes/aload_0/jm/T_aload_0_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - jsr Label1 - return - -Label1: - astore_0 - aload_0 - ret 0 -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_8.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_8.java deleted file mode 100644 index 1e268b92cd41341b56727195bdfc672e0e4a7c9b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_0/jm/T_aload_0_8.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_0.jm; - -public class T_aload_0_8 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/Test_aload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/Test_aload_1.java deleted file mode 100644 index 22a129e8345c2fa6e010fbf7ca81f72896ea9ace..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/Test_aload_1.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aload_1.jm.T_aload_1_1; -import dxc.junit.opcodes.aload_1.jm.T_aload_1_6; - -public class Test_aload_1 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals("hello", T_aload_1_1.run()); - } - - /** - * @title equality of aload_ and aload - */ - public void testN2() { - assertTrue(T_aload_1_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aload_1.jm.T_aload_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.aload_1.jm.T_aload_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.aload_1.jm.T_aload_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.aload_1.jm.T_aload_1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.aload_1.jm.T_aload_1_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.21 - * @title returnAddress may not be loaded from - * local variable - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.aload_1.jm.T_aload_1_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_1.j deleted file mode 100644 index e2718f526935f32685994a40f5f98de76b2b31f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_1.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 3 - .limit locals 2 - - ldc "hello" - astore_1 - ldc "hi" - aload_1 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_1.java deleted file mode 100644 index e5e4fc6aff2b545e63f078b9f4a75d249d89dd20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_2.j deleted file mode 100644 index 8089467fb1e4b51c55fe0736a7faaebf598e0f26..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_2.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - aload_1 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_2.java deleted file mode 100644 index d223d2902140c79d00821a8fc049e552f1ce32db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_3.j deleted file mode 100644 index 0d98b4c44df031390f3ec67e28d7ec8c17ad62ff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_3.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_0 - fconst_1 - fstore_1 - - aload_1 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_3.java deleted file mode 100644 index e639b3b77ab5edcf0f3e5772cf30032ab91258a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_4.j deleted file mode 100644 index 037314b2285e1d3aa7b04a9006d84ce1328c3ae2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_4.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_1 - - aload_1 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_4.java deleted file mode 100644 index 42630647bf8d17bca39affe561fe05f50eedf9a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_5.j deleted file mode 100644 index 9e84cc2e4ed2d3879b7849493cc727987e491a39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_5.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - iconst_1 - istore_1 - - aload_1 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_5.java deleted file mode 100644 index 88fb112b8b0f6146141976c6f2626a86072817c1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_5 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_6.j deleted file mode 100644 index 2a476d69ab291e900df180aa1c9612ec89fc2741..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_6.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 2 - - ldc "hello" - astore_1 - - aload_1 - aload 1 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_6.java deleted file mode 100644 index a5b95c39bd6dabed27ec842058ef3a70f04cc4b7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_6 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_7.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_7.j deleted file mode 100644 index dcc158f2d59b2d573c190f1e2c40307d68102eec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_7.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_7.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - ldc "hello" - astore_1 - - aload_1 - aload_1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_7.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_7.java deleted file mode 100644 index 08930a618e98f127720337e56a886f37a92a8fda..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_7.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_7 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_8.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_8.j deleted file mode 100644 index a72e6f138b9dbdcc0e862db46b2dc42dfedc245d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_8.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_1_8.java -.class public dxc/junit/opcodes/aload_1/jm/T_aload_1_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - jsr Label1 - return - -Label1: - astore_1 - aload_1 - ret 1 -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_8.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_8.java deleted file mode 100644 index 9fd86cc072daa9cd90099eb123d6fca8ab0e2655..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_1/jm/T_aload_1_8.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_1.jm; - -public class T_aload_1_8 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/Test_aload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/Test_aload_2.java deleted file mode 100644 index d01c00b8e560f3109b562416a3911813821d9db1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/Test_aload_2.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aload_2.jm.T_aload_2_1; -import dxc.junit.opcodes.aload_2.jm.T_aload_2_6; - -public class Test_aload_2 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals("hello", T_aload_2_1.run()); - } - - /** - * @title equality of aload_ and aload - */ - public void testN2() { - assertTrue(T_aload_2_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aload_2.jm.T_aload_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.aload_2.jm.T_aload_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.aload_2.jm.T_aload_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.aload_2.jm.T_aload_2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.aload_2.jm.T_aload_2_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.21 - * @title returnAddress may not be loaded from - * local variable - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.aload_2.jm.T_aload_2_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_1.j deleted file mode 100644 index cf7efe7681b6e21524478c49db436c5565a04a88..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_1.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 3 - .limit locals 3 - - ldc "hello" - astore_2 - ldc "hi" - aload_2 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_1.java deleted file mode 100644 index a57be08c2a91582be4b65150afd72f0ea1a0bce2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_2.j deleted file mode 100644 index 12a73ffd3cb7e5daa7ac22aa6bdf43d7b3b81093..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_2.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_2 -.super java/lang/Object - - -.method public ()V - .limit stack 1 - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - aload_2 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_2.java deleted file mode 100644 index c2b074d2e1582cc981385c45bff632c193eda094..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_3.j deleted file mode 100644 index 829b23ab1eecaf9dd1221d897ae1e63ef382f6b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_3.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_1 - fconst_2 - fstore_2 - - aload_2 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_3.java deleted file mode 100644 index 5fe9956dac5e694ad8e9a4b92d5cf90bb3ebe169..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_4.j deleted file mode 100644 index 14565e7a1132814fe591a594edc179ee1c413ebe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_4.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_2 - - aload_2 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_4.java deleted file mode 100644 index 604db5ae58daad43b1f8481be22892e0d86da75e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_5.j deleted file mode 100644 index 8d3fd279e0419701f601c3874c388e40c657625b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_5.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 4 - - iconst_2 - istore_2 - - aload_2 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_5.java deleted file mode 100644 index 3a39ef95aea46022b7816ff1f84244d2152f740d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_5 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_6.j deleted file mode 100644 index aa81a91ffc4da0eeec801ddc3b0900f332cdca78..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_6.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 3 - - ldc "hello" - astore_2 - - aload_2 - aload 2 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_6.java deleted file mode 100644 index a4e9ca05121654b07bdfad38f3c0a8f8b682cd55..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_6 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_7.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_7.j deleted file mode 100644 index bf69c979a820a27f071012683c00af9314b79810..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_7.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_7.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 3 - - ldc "hello" - astore_2 - - aload_2 - aload_2 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_7.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_7.java deleted file mode 100644 index e9e8773265a2dbb0daea98569760d283ddab7610..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_7.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_7 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_8.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_8.j deleted file mode 100644 index d03eedf71cb188f5421bfcaa950cd8d568c19d58..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_8.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_2_8.java -.class public dxc/junit/opcodes/aload_2/jm/T_aload_2_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 3 - - jsr Label1 - return - -Label1: - astore_2 - aload_2 - ret 2 -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_8.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_8.java deleted file mode 100644 index 56e6e7aa7ba31002c2aae5b4520bb6ec5b7de031..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_2/jm/T_aload_2_8.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_2.jm; - -public class T_aload_2_8 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/Test_aload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/Test_aload_3.java deleted file mode 100644 index ee67af094afcd29c0645e6a96a3234158b1d2982..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/Test_aload_3.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.aload_3.jm.T_aload_3_1; -import dxc.junit.opcodes.aload_3.jm.T_aload_3_6; - -public class Test_aload_3 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals("hello", T_aload_3_1.run()); - } - - /** - * @title equality of aload_ and aload - */ - public void testN2() { - assertTrue(T_aload_3_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.aload_3.jm.T_aload_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.aload_3.jm.T_aload_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.aload_3.jm.T_aload_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.aload_3.jm.T_aload_3_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.aload_3.jm.T_aload_3_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.21 - * @title returnAddress may not be loaded from - * local variable - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.aload_3.jm.T_aload_3_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_1.j deleted file mode 100644 index 2d79c9091ebf5ab0edbf35aa6bf690afe373dc4a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_1.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 3 - .limit locals 4 - - ldc "hello" - astore_3 - ldc "hi" - aload_3 - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_1.java deleted file mode 100644 index 27b910f4c38527b2a7c940a2f193c04324c0564a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_2.j deleted file mode 100644 index ed1f591a20c35006891b9303087e7b50486b5caa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_2.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - aload_3 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_2.java deleted file mode 100644 index 15743fdc63dcd1569a84f79992ddb91a1137d327..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_3.j deleted file mode 100644 index 164dc3ce9d09271503fca6627cca1d9a6ba91e9f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_3.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_2 - fstore_3 - - aload_3 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_3.java deleted file mode 100644 index 90ff938ea64be70f3b1e36c47fb6e97998b68ab4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_4.j deleted file mode 100644 index d83697a279b275b6b2dc0eef2955cb7a3064884e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_4.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 5 - - lconst_1 - lstore_3 - - aload_3 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_4.java deleted file mode 100644 index 51b8522611f3606f7aca348566e6253430634e52..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_5.j deleted file mode 100644 index 2acfe287911a72a2e020192b1a2503e932f29b62..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_5.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 4 - - iconst_3 - istore_3 - - aload_3 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_5.java deleted file mode 100644 index a2cb2d9bb4bce96ff241ffdb2bdff986f69009d4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_5 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_6.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_6.j deleted file mode 100644 index 905342af9e9dcea7b5d25ad07058091d5f2747cf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_6.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - ldc "hello" - astore_3 - - aload_3 - aload 3 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_6.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_6.java deleted file mode 100644 index ce9727b75d6246ed9fa63875af004a2266cc0172..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_6 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_7.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_7.j deleted file mode 100644 index 1083e931afe98d5e7937e6dc899da1735f5d5180..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_7.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_7.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 4 - - ldc "hello" - astore_3 - - aload_3 - aload_3 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_7.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_7.java deleted file mode 100644 index d8f143f59840268017f9e86ee92f6d97b13c0d1f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_7.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_7 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_8.j b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_8.j deleted file mode 100644 index 66997327a6c8747cc348ade9671088825a41a652..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_8.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_aload_3_8.java -.class public dxc/junit/opcodes/aload_3/jm/T_aload_3_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 4 - - jsr Label1 - return - -Label1: - astore_3 - aload_3 - ret 3 -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_8.java b/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_8.java deleted file mode 100644 index 12628efb12931040c5e080d1443a2c72ad465777..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/aload_3/jm/T_aload_3_8.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.aload_3.jm; - -public class T_aload_3_8 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/TestStubs.java deleted file mode 100644 index 08a00cd17ced8824c6f97be772c89b8f891196b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/TestStubs.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray; - -public class TestStubs { - -private class TestStub{ - // testE4 -} - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/Test_anewarray.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/Test_anewarray.java deleted file mode 100644 index ecc1ce27632492db3afd85bc9b9dd537788e5e05..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/Test_anewarray.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.anewarray.jm.T_anewarray_1; -import dxc.junit.opcodes.anewarray.jm.T_anewarray_6; -import dxc.junit.opcodes.anewarray.jm.T_anewarray_7; - -public class Test_anewarray extends DxTestCase { - - /** - * @title Test for Object - */ - public void testN1() { - T_anewarray_1 t = new T_anewarray_1(); - - Object[] arr = t.run(10); - assertNotNull(arr); - assertEquals(10, arr.length); - for (int i = 0; i < 10; i++) - assertNull(arr[i]); - } - - /** - * @title Test for String - */ - public void testN2() { - T_anewarray_1 t = new T_anewarray_1(); - - String[] arr2 = t.run2(5); - assertNotNull(arr2); - assertEquals(5, arr2.length); - for (int i = 0; i < 5; i++) - assertNull(arr2[i]); - } - - /** - * @title Test for Integer - */ - public void testN3() { - T_anewarray_1 t = new T_anewarray_1(); - - Integer[] arr3 = t.run3(15); - assertNotNull(arr3); - assertEquals(15, arr3.length); - for (int i = 0; i < 15; i++) - assertNull(arr3[i]); - } - - /** - * @title if count is zero, no subsequent dimensions allocated - */ - public void testE1() { - T_anewarray_1 t = new T_anewarray_1(); - Object[] res = t.run(0); - try { - Object s = res[0]; - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException ae) { - // expected - } - } - - /** - * @title expected NegativeArraySizeException - */ - public void testE2() { - T_anewarray_1 t = new T_anewarray_1(); - try { - t.run(-2); - fail("expected NegativeArraySizeException"); - } catch (NegativeArraySizeException nase) { - // expected - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE3() { - try { - T_anewarray_6 t = new T_anewarray_6(); - t.run(); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; eagerly tries to load the array type - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected IllegalAccessError - *

-     * V(15469) +++ dvmAddClassToHash '[Ldxc/junit/opcodes/anewarray/jm/TestStubs$TestStub;' 0x973d7708 (isnew=1) --> 0x973e1f10  (dalvikvm)
-     * V(15469) Created array class '[Ldxc/junit/opcodes/anewarray/jm/TestStubs$TestStub;' 0x973d7708 (access=0x6000.0010)  (dalvikvm)
-     * 
- * TestStub class is private. no IllegalAccessError is thrown, but VerifyError - */ - public void testE4() { - try { - T_anewarray_7 t = new T_anewarray_7(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.19 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.anewarray.jm.T_anewarray_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.anewarray.jm.T_anewarray_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.anewarray.jm.T_anewarray_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.17 - * @title array of more than 255 dimensions - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.anewarray.jm.T_anewarray_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.anewarray.jm.T_anewarray_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.19 - * @title constant pool type - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.anewarray.jm.T_anewarray_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_1.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_1.j deleted file mode 100644 index 3fbf658ce71ca823f840a7c6f23452574e9b67bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_1.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_1.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)[Ljava/lang/Object; - .limit stack 1 - .limit locals 2 - - iload_1 - anewarray java/lang/Object - areturn - -.end method - -.method public run2(I)[Ljava/lang/String; - .limit stack 1 - .limit locals 2 - - iload_1 - anewarray java/lang/String - areturn - -.end method - -.method public run3(I)[Ljava/lang/Integer; - .limit stack 1 - .limit locals 2 - - iload_1 - anewarray java/lang/Integer - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_1.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_1.java deleted file mode 100644 index 43583826908a853d378e14d8a16bf76a1194d054..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_1.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_1 { - - public Object[] run(int idx) { - return new Object[idx]; - } - - public String[] run2(int idx) { - return new String[idx]; - } - - public Integer[] run3(int idx) { - return new Integer[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.cfh b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.cfh deleted file mode 100644 index d2fef44bf4578dff7dfacde2202a80667deb2c04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.cfh +++ /dev/null @@ -1,191 +0,0 @@ -//@class:dxc/junit/opcodes/anewarray/jm/T_anewarray_2 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 3, h: 0003: type{java.lang.String} - // . . . - 07 00 0b - // parsed:, offset 37, len 3, h: 0004: type{dxc.junit.opcodes.anewarray.jm.T_anewarray_2} - // . . . - 07 00 09 - // parsed:, offset 40, len 13, h: 0005: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 53, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 62, len 7, h: 0007: utf8{"run2"} - // . . . r u n 2 - 01 00 04 72 75 6e 32 - // parsed:, offset 69, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0c - // parsed:, offset 74, len 47, h: 0009: utf8{"dxc/junit/opcodes/anewarray/jm/T_anewarray_2"} - // . . , d x c / j u n i t / o p c o d e s / a n e w a r r a y / j m / T _ a n e w a r r a y _ 2 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 61 6e 65 77 61 72 72 61 79 2f 6a 6d 2f 54 5f 61 6e 65 77 61 72 72 61 79 5f 32 - // parsed:, offset 121, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 128, len 19, h: 000b: utf8{"java/lang/String"} - // . . . j a v a / l a n g / S t r i n g - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 - // parsed:, offset 147, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 153, len 21, h: 000d: utf8{"T_anewarray_2.java"} - // . . . T _ a n e w a r r a y _ 2 . j a v a - 01 00 12 54 5f 61 6e 65 77 61 72 72 61 79 5f 32 2e 6a 61 76 61 - // parsed:, offset 174, len 25, h: 000e: utf8{"(I)[Ljava/lang/String;"} - // . . . ( I ) [ L j a v a / l a n g / S t r i n g ; - 01 00 16 28 49 29 5b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 199, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 202, len 0, h: end constant_pool -// parsed:, offset 202, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 204, len 2, h: this_class: type{dxc.junit.opcodes.anewarray.jm.T_anewarray_2} -// . . - 00 04 -// parsed:, offset 206, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 208, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 210, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 212, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 214, len:72,desc: ()V -// parsed:, offset 214, len 0, h: methods[0]: - // parsed:, offset 214, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 216, len 2, h: name: - // . . - 00 06 - // parsed:, offset 218, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 220, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 222, len 0, h: attributes[0]: - // parsed:, offset 222, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 224, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 228, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 230, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 232, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 241, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 243, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 245, len 0, h: end attributes[0] -// parsed:, offset 245, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run2, offset 245, len:41,desc: (I)[Ljava/lang/String; -// parsed:, offset 245, len 0, h: methods[1]: - // parsed:, offset 245, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 247, len 2, h: name: run2 - // . . - 00 07 - // parsed:, offset 249, len 2, h: descriptor: (I)[Ljava/lang/String; - // . . - 00 0e - // parsed:, offset 251, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 253, len 0, h: attributes[0]: - // parsed:, offset 253, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 255, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 259, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 261, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 263, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: anewarray type{java.lang.String} - // . . . -//@mod bd 00 03 - bd 01 03 - // parsed:, offset 4, len 1, h: 0004: areturn - // . - b0 - // parsed:, offset 272, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 274, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 276, len 0, h: end attributes[0] -// parsed:, offset 276, len 0, h: end methods[1] -// ========== end-ParseMember:run2, desc: (I)[Ljava/lang/String; -// parsed:, offset 276, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 278, len 0, h: attributes[0]: - // parsed:, offset 278, len 2, h: name: SourceFile - // . . - 00 05 - // parsed:, offset 280, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 284, len 2, h: source: utf8{"T_anewarray_2.java"} - // . . - 00 0d -// parsed:, offset 286, len 0, h: end attributes[0] -// parsed:, offset 286, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.j deleted file mode 100644 index 41c2fc2407ca5a082843119c738d4b10bd5fc7dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_2.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run2(I)[Ljava/lang/String; - .limit stack 1 - .limit locals 2 - - iload_1 - anewarray java/lang/String - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.java deleted file mode 100644 index d58fa37203e035a563df228544a549185e9b349f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_2 { - - public String[] run2(int idx) { - return new String[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_3.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_3.j deleted file mode 100644 index 6e6f638f1e1d707f4c6bcccfa78009d1ff1f16f1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_3.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run2(I)[Ljava/lang/String; - .limit stack 1 - .limit locals 2 - -; iload_1 - anewarray java/lang/String - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_3.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_3.java deleted file mode 100644 index c5b8e540f8c8610161416246175bcfd43093c0f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_3 { - - public String[] run2(int idx) { - return new String[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_4.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_4.j deleted file mode 100644 index 0ed6b0f82830e5352766751bf8e691022b2ad094..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_4.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run2(F)[Ljava/lang/String; - .limit stack 1 - .limit locals 2 - - fload_1 - anewarray java/lang/String - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_4.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_4.java deleted file mode 100644 index 12563434bcc3db99d3ab78678fe454fe68d75a69..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_4 { - - public String[] run2(int idx) { - return new String[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_5.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_5.j deleted file mode 100644 index d5d1770bce1330006334347e0d6cc9bbbe69713e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_5.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)[Ljava/lang/String; - .limit stack 1 - .limit locals 2 - - iload_1 - anewarray [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[Ljava/lang/String; - - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_5.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_5.java deleted file mode 100644 index c0f876334a74802c42a3b6dd25ab5d2dc9a8c8df..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_5 { - - public String[] run(int idx) { - return new String[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_6.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_6.j deleted file mode 100644 index f2a53693041313cd1d3cd982f72e47c2e3ef3de1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_6.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ljava/lang/Object; - .limit stack 1 - .limit locals 1 - - iconst_1 - anewarray dxc/junit/opcodes/anewarray/jm/T_anewarray_61 - areturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_6.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_6.java deleted file mode 100644 index 23fe874e637e2c4460af1a1d33cf3a5028f6794e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_6 { - - public Object run() { - return new T_anewarray_6[1]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_7.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_7.j deleted file mode 100644 index 8915c0e861f1e7a6536c37a1e5f2a3270415ed6c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_7.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_7.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ljava/lang/Object; - .limit stack 1 - .limit locals 1 - - iconst_1 - anewarray dxc/junit/opcodes/anewarray/TestStubs$TestStub - areturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_7.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_7.java deleted file mode 100644 index b8a99971635090a60466ad86bf056c0172923b05..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_7 { - - public Object run() { - return new T_anewarray_7[1]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_8.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_8.j deleted file mode 100644 index 85e65ca189616e43b6d8be5b6b8dfca62d63e619..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_8.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_8.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run2(I)[Ljava/lang/String; - .limit stack 1 - .limit locals 2 - - aload_0 - anewarray java/lang/String - - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_8.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_8.java deleted file mode 100644 index dc349eed9bccb10ce07d8c6457e0bbcf01607f97..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_8 { - - public String[] run2(int idx) { - return new String[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.cfh b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.cfh deleted file mode 100644 index 7f763fba5236034620cd6bf4caf9231c1d824c38..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/anewarray/jm/T_anewarray_9 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0011 -// . . - 00 11 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 09 - // parsed:, offset 15, len 47, h: 0002: utf8{"dxc/junit/opcodes/anewarray/jm/T_anewarray_9"} - // . . , d x c / j u n i t / o p c o d e s / a n e w a r r a y / j m / T _ a n e w a r r a y _ 9 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 61 6e 65 77 61 72 72 61 79 2f 6a 6d 2f 54 5f 61 6e 65 77 61 72 72 61 79 5f 39 - // parsed:, offset 62, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 81, len 3, h: 0004: type{java.lang.String} - // . . . - 07 00 0b - // parsed:, offset 84, len 13, h: 0005: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 97, len 5, h: 0006: int{0x0000007b / 123} - // . . . . { - 03 00 00 00 7b - // parsed:, offset 102, len 9, h: 0007: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 111, len 7, h: 0008: utf8{"run2"} - // . . . r u n 2 - 01 00 04 72 75 6e 32 - // parsed:, offset 118, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 07 00 0c - // parsed:, offset 123, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 130, len 19, h: 000b: utf8{"java/lang/String"} - // . . . j a v a / l a n g / S t r i n g - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 - // parsed:, offset 149, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 155, len 3, h: 000d: type{dxc.junit.opcodes.anewarray.jm.T_anewarray_9} - // . . . - 07 00 02 - // parsed:, offset 158, len 25, h: 000e: utf8{"(I)[Ljava/lang/String;"} - // . . . ( I ) [ L j a v a / l a n g / S t r i n g ; - 01 00 16 28 49 29 5b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 183, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 03 - // parsed:, offset 186, len 21, h: 0010: utf8{"T_anewarray_9.java"} - // . . . T _ a n e w a r r a y _ 9 . j a v a - 01 00 12 54 5f 61 6e 65 77 61 72 72 61 79 5f 39 2e 6a 61 76 61 -// parsed:, offset 207, len 0, h: end constant_pool -// parsed:, offset 207, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 209, len 2, h: this_class: type{dxc.junit.opcodes.anewarray.jm.T_anewarray_9} -// . . - 00 0d -// parsed:, offset 211, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 213, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 215, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 217, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 219, len:75,desc: ()V -// parsed:, offset 219, len 0, h: methods[0]: - // parsed:, offset 219, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 221, len 2, h: name: - // . . - 00 07 - // parsed:, offset 223, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 225, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 227, len 0, h: attributes[0]: - // parsed:, offset 227, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 229, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 233, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 235, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 237, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 246, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 248, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 250, len 0, h: end attributes[0] -// parsed:, offset 250, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run2, offset 250, len:44,desc: (I)[Ljava/lang/String; -// parsed:, offset 250, len 0, h: methods[1]: - // parsed:, offset 250, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 252, len 2, h: name: run2 - // . . - 00 08 - // parsed:, offset 254, len 2, h: descriptor: (I)[Ljava/lang/String; - // . . - 00 0e - // parsed:, offset 256, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 258, len 0, h: attributes[0]: - // parsed:, offset 258, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 260, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 264, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 266, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 268, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 2, h: 0000: ldc #+0000007b - // . . - 12 06 - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 1, h: 0003: iload_1 // 01 - // . - 1b - // parsed:, offset 4, len 3, h: 0004: anewarray type{java.lang.String} - // . . . -//@mod bd 00 04 - bd 00 06 - // parsed:, offset 7, len 1, h: 0007: areturn - // . - b0 - // parsed:, offset 280, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 282, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 284, len 0, h: end attributes[0] -// parsed:, offset 284, len 0, h: end methods[1] -// ========== end-ParseMember:run2, desc: (I)[Ljava/lang/String; -// parsed:, offset 284, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 286, len 0, h: attributes[0]: - // parsed:, offset 286, len 2, h: name: SourceFile - // . . - 00 05 - // parsed:, offset 288, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 292, len 2, h: source: utf8{"T_anewarray_9.java"} - // . . - 00 10 -// parsed:, offset 294, len 0, h: end attributes[0] -// parsed:, offset 294, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.j b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.j deleted file mode 100644 index d91f6f5b7b8a04932a85399ac7769e05ae9ee702..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_anewarray_9.java -.class public dxc/junit/opcodes/anewarray/jm/T_anewarray_9 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run2(I)[Ljava/lang/String; - .limit stack 1 - .limit locals 2 - - ldc 123 - pop - - iload_1 - anewarray java/lang/String - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.java deleted file mode 100644 index 30ab5f733b11898079cf850ae90af3ff33e2d87d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/T_anewarray_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class T_anewarray_9 { - - public String[] run2(int idx) { - return new String[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/TestStubs.java deleted file mode 100644 index 73452fdf6160efdef8ace0d598268ab6e2f84aae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/anewarray/jm/TestStubs.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.anewarray.jm; - -public class TestStubs { - -private class TestStub{ - // testE4 -} - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/Runner.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/Runner.java deleted file mode 100644 index 580812da50eb299fa746363a23fe5c8f300b6f6a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/Runner.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn; - -public interface Runner { - public void doit(); -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/RunnerGenerator.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/RunnerGenerator.java deleted file mode 100644 index e9f34ec5928511959b957ecc26c298bb7c782ddd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/RunnerGenerator.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn; - -public interface RunnerGenerator { - public Runner run(); -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/Test_areturn.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/Test_areturn.java deleted file mode 100644 index 5485d034d69e984061957169cebf42c231754e82..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/Test_areturn.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.areturn.jm.T_areturn_1; -import dxc.junit.opcodes.areturn.jm.T_areturn_12; -import dxc.junit.opcodes.areturn.jm.T_areturn_13; -import dxc.junit.opcodes.areturn.jm.T_areturn_2; -import dxc.junit.opcodes.areturn.jm.T_areturn_6; -import dxc.junit.opcodes.areturn.jm.T_areturn_7; -import dxc.junit.opcodes.areturn.jm.T_areturn_8; -import dxc.junit.opcodes.areturn.jm.T_areturn_9; - -public class Test_areturn extends DxTestCase { - - /** - * @title simple - */ - public void testN1() { - T_areturn_1 t = new T_areturn_1(); - assertEquals("hello", t.run()); - } - - /** - * @title simple - */ - public void testN2() { - T_areturn_1 t = new T_areturn_1(); - assertEquals(t, t.run2()); - } - - /** - * @title simple - */ - public void testN3() { - T_areturn_1 t = new T_areturn_1(); - Integer a = 12345; - assertEquals(a, t.run3()); - } - - /** - * @title test for null - */ - public void testN4() { - T_areturn_2 t = new T_areturn_2(); - assertNull(t.run()); - } - - /** - * @title check that frames are discarded and reinstananted correctly - */ - public void testN5() { - T_areturn_6 t = new T_areturn_6(); - assertEquals("hello", t.run()); - } - - /** - * @title check that monitor is released by areturn - */ - public void testN6() { - assertTrue(T_areturn_7.execute()); - } - - /** - * @title assignment compatibility (TChild returned as TSuper) - */ - public void testN7() { - // @uses dxc.junit.opcodes.areturn.jm.TSuper - // @uses dxc.junit.opcodes.areturn.jm.TInterface - // @uses dxc.junit.opcodes.areturn.jm.TChild - T_areturn_12 t = new T_areturn_12(); - assertTrue(t.run()); - } - - /** - * @title assignment compatibility (TChild returned as TInterface) - */ - public void testN8() { - // @uses dxc.junit.opcodes.areturn.jm.TInterface - // @uses dxc.junit.opcodes.areturn.jm.TChild - // @uses dxc.junit.opcodes.areturn.jm.TSuper - T_areturn_13 t = new T_areturn_13(); - assertTrue(t.run()); - } - - /** - * @title Method is synchronized but thread is not monitor owner - */ - public void testE1() { - T_areturn_8 t = new T_areturn_8(); - try { - assertTrue(t.run()); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title Lock structural rule 1 is violated - */ - public void testE2() { - T_areturn_9 t = new T_areturn_9(); - try { - assertEquals("abc", t.run()); - // the JVM spec says that it is optional to implement the structural - // lock rules, see JVM spec 8.13 and monitorenter/exit opcodes. - System.out.print("dvmvfe:"); - //fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - void - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.areturn.jm.T_areturn_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.areturn.jm.T_areturn_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.areturn.jm.T_areturn_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.areturn.jm.T_areturn_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.areturn.jm.T_areturn_11"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title assignment incompatible references - */ - public void testVFE6() { - // @uses dxc.junit.opcodes.areturn.jm.TInterface - // @uses dxc.junit.opcodes.areturn.jm.TSuper - // @uses dxc.junit.opcodes.areturn.jm.TChild - try { - Class.forName("dxc.junit.opcodes.areturn.jm.T_areturn_14"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title assignment incompatible references - */ - @SuppressWarnings("cast") - public void testVFE7() { - // @uses dxc.junit.opcodes.areturn.jm.TSuper2 - // @uses dxc.junit.opcodes.areturn.Runner - // @uses dxc.junit.opcodes.areturn.RunnerGenerator - try { - RunnerGenerator rg = (RunnerGenerator) Class.forName( - "dxc.junit.opcodes.areturn.jm.T_areturn_15").newInstance(); - Runner r = rg.run(); - assertFalse(r instanceof Runner); - assertFalse(Runner.class.isAssignableFrom(r.getClass())); - // only upon invocation of a concrete method, - // a java.lang.IncompatibleClassChangeError is thrown - r.doit(); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_1.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_1.j deleted file mode 100644 index 900806dafc1108c39a625becab66db09eff0a290..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_1.j +++ /dev/null @@ -1,59 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_1.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 1 - .limit locals 1 - - ldc "hello" - areturn - -.end method - -.method public run2()Ljava/lang/Object; - .limit stack 1 - .limit locals 1 - - aload_0 - areturn - -.end method - -.method public run3()Ljava/lang/Integer; - .limit stack 3 - .limit locals 2 - - new java/lang/Integer - dup - sipush 12345 - invokespecial java/lang/Integer/(I)V - astore_1 - - aload_1 - - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_1.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_1.java deleted file mode 100644 index a4a7719234a1d38b7110be4501974e2d813b83bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_1.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_1 { - - public String run() { - return "hello"; - } - - public Object run2() { - return this; - } - - public Integer run3() { - Integer value = new Integer(12345); - return value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_10.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_10.j deleted file mode 100644 index db962a6342fca62dfccaf4cabe9b10026520b47f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_10.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_10.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_10 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 1 - .limit locals 1 - -; ldc "abc" - fconst_0 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_10.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_10.java deleted file mode 100644 index efe5c5e60885e22ffb8bfc2aafc410bc185eaefc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_10 { - - public String run() { - return "abc"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_11.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_11.j deleted file mode 100644 index 1a75aee9f0f658656a097e34d7cdb82c2fa842dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_11.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_11.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_11 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private static test()Ljava/lang/String; - .limit stack 1 - .limit locals 0 - - ldc "hello" - areturn - -.end method - -.method public run()Ljava/lang/String; - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/areturn/jm/T_areturn_11/test()Ljava/lang/String; - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_11.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_11.java deleted file mode 100644 index ea112aec33fc9fe992db377ace8d3f69f825fd93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_11.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_11 { - - private static String test() { - return "hello"; - } - - public String run() { - return test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_12.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_12.j deleted file mode 100644 index 76f51a8f31b48cdf79bce9bfc8af6c12829d655d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_12.j +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_12.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_12 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method private test()Ldxc/junit/opcodes/areturn/jm/TSuper; - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/areturn/jm/TChild - dup - invokespecial dxc/junit/opcodes/areturn/jm/TChild/()V - - areturn -.end method - - - -.method public run()Z - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial dxc/junit/opcodes/areturn/jm/T_areturn_12/test()Ldxc/junit/opcodes/areturn/jm/TSuper; - - instanceof dxc/junit/opcodes/areturn/jm/TChild - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_12.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_12.java deleted file mode 100644 index 6aaa5f3cc94180e36e7afb9394e4abc567fd1605..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_12.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_12 { - - private TSuper test() { - return new TChild(); - } - - public boolean run() { - TSuper t = test(); - return (t instanceof TChild); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_13.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_13.j deleted file mode 100644 index c0a8156fd97488a2e5fe5a64d5b8a97d0d60901f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_13.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_13.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_13 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method private test()Ldxc/junit/opcodes/areturn/jm/TInterface; - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/areturn/jm/TChild - dup - invokespecial dxc/junit/opcodes/areturn/jm/TChild/()V - areturn -.end method - - - -.method public run()Z - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial dxc/junit/opcodes/areturn/jm/T_areturn_13/test()Ldxc/junit/opcodes/areturn/jm/TInterface; - - instanceof dxc/junit/opcodes/areturn/jm/TChild - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_13.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_13.java deleted file mode 100644 index e79f765133cd47831b2f6e2c4a398ba031e69c7f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_13.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - - -public class T_areturn_13 { - - private TInterface test() { - return new TChild(); - } - - public boolean run() { - TInterface t = test(); - return (t instanceof TChild); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_14.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_14.j deleted file mode 100644 index 221015e5fcd7a5b1bc325747e647e520e760114b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_14.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_14.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_14 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method private test()Ldxc/junit/opcodes/areturn/jm/TChild; - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/areturn/jm/TSuper - dup - invokespecial dxc/junit/opcodes/areturn/jm/TSuper/()V - - areturn - -.end method - - - -.method public run()Z - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial dxc/junit/opcodes/areturn/jm/T_areturn_14/test()Ldxc/junit/opcodes/areturn/jm/TChild; - - instanceof dxc/junit/opcodes/areturn/jm/TChild - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_14.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_14.java deleted file mode 100644 index baa9963dd38feddb6c11241c8642cbf812257df3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_14.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - - -public class T_areturn_14 { - - private TChild test() { - //return new TSuper(); - return new TChild(); - } - - public boolean run() { - TChild t = test(); - return (t instanceof TChild); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_15.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_15.j deleted file mode 100644 index afa094074edf77b10ae2709210deab344598b95c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_15.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_15.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_15 -.super java/lang/Object -.implements dxc/junit/opcodes/areturn/RunnerGenerator - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ldxc/junit/opcodes/areturn/Runner; - .limit stack 2 - - new dxc/junit/opcodes/areturn/jm/TSuper2 - dup - invokespecial dxc/junit/opcodes/areturn/jm/TSuper2/()V - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_15.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_15.java deleted file mode 100644 index bec356159addf0492a1d84e4b3dcf2967af91fbb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_15.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - - -public class T_areturn_15 { - - private TInterface test() { - //return new TSuper2(); - return new TSuper(); - } - - public boolean run() { - TInterface t = test(); - return (t instanceof TSuper); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_2.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_2.j deleted file mode 100644 index 20064df7a46b7ecc2b7109b65701a5087942c9f1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_2.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_2.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ljava/lang/Object; - .limit stack 2 - aconst_null - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_2.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_2.java deleted file mode 100644 index a8e0b9ca2a8673368a850483dda808d1e8c89673..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_2 { - - public Object run() { - return null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_3.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_3.j deleted file mode 100644 index d6e60f952e6c60a39be17afc70df6e49e207adc9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_3.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 1 - - ldc "hello" - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_3.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_3.java deleted file mode 100644 index 813fc955218fbc1082573eb569c15cf2813a9775..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_3 { - - public String run() { - return "hello"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_4.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_4.j deleted file mode 100644 index a7d470ba56335f982de7b7a039b44ff7ebfa1f12..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_4.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - .limit stack 1 - .limit locals 1 - - ldc "hello" - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_4.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_4.java deleted file mode 100644 index 0bc7d7c5888f48942b8a9278534659e4555b2cb4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_4 { - - public String run() { - return "hello"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_5.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_5.j deleted file mode 100644 index 753df238f2a516b3b8f234238c890618de430550..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_5.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 1 - .limit locals 1 - -; ldc "hello" - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_5.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_5.java deleted file mode 100644 index 7463e46864fcda318cb50316c08184d2f8e7fb04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_5 { - - public String run() { - return "hello"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_6.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_6.j deleted file mode 100644 index 372e3e1f16cae52eaae3d225314d604ee75023db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_6.j +++ /dev/null @@ -1,88 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_6.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit locals 6 - .limit stack 3 - - ldc "a" - astore_1 - ldc "b" - astore_2 - ldc "c" - astore 3 - - ldc "d" - - invokestatic dxc/junit/opcodes/areturn/jm/T_areturn_6/test()Ljava/lang/String; - - ldc "ddd" - if_acmpne Label1 - - ldc "d" - if_acmpne Label0 - - aload_1 - ldc "a" - if_acmpne Label0 - - aload_2 - ldc "b" - if_acmpne Label0 - - aload 3 - ldc "c" - if_acmpne Label0 - - ldc "hello" - areturn - -Label1: - pop -Label0: - ldc "a" - areturn - -.end method - -.method private static test()Ljava/lang/String; - .limit stack 1 - .limit locals 3 - - ldc "aaa" - astore_0 - - ldc "bbb" - astore_1 - - ldc "ccc" - astore_2 - - ldc "ddd" - - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_6.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_6.java deleted file mode 100644 index 685c106b885a5bf2f9ac58a32f73efba6412ed5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_6.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_6 { - - public String run() { - return "hello"; - } - - private static String test() { - String a = "aaa"; - String b = "bbb"; - String c = "ccc"; - return "ddd"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_7.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_7.j deleted file mode 100644 index c9228988ba838535f8a85dd07822be6e62d9f9ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_7.j +++ /dev/null @@ -1,174 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_7.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_7 -.super java/lang/Object -.implements java/lang/Runnable - -.field value Ljava/lang/Integer; -.field failed Z - -.method public ()V - .limit stack 4 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - new java/lang/Integer - dup - iconst_0 - invokespecial java/lang/Integer/(I)V - putfield dxc.junit.opcodes.areturn.jm.T_areturn_7.value Ljava/lang/Integer; - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.areturn.jm.T_areturn_7.failed Z - - return - -.end method - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label4: - goto Label0 - -Label1: - aload_0 - invokespecial dxc/junit/opcodes/areturn/jm/T_areturn_7/test()Ljava/lang/Integer; - pop - - iinc 1 1 - -Label0: - iload_1 - sipush 1000 - if_icmplt Label1 - - return -.end method - - - -.method private synchronized test()Ljava/lang/Integer; - .limit stack 4 - .limit locals 2 - - new java/lang/Integer - dup - aload_0 - getfield dxc.junit.opcodes.areturn.jm.T_areturn_7.value Ljava/lang/Integer; - invokevirtual java/lang/Integer/intValue()I - iconst_1 - iadd - invokespecial java/lang/Integer/(I)V - astore_1 - - aload_0 - aload_1 - putfield dxc.junit.opcodes.areturn.jm.T_areturn_7.value Ljava/lang/Integer; - - invokestatic java/lang/Thread/yield()V - - aload_1 - aload_0 - getfield dxc.junit.opcodes.areturn.jm.T_areturn_7.value Ljava/lang/Integer; - if_acmpeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.areturn.jm.T_areturn_7.failed Z - -Label0: - aload_1 - areturn -.end method - - - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/areturn/jm/T_areturn_7 - dup - invokespecial dxc/junit/opcodes/areturn/jm/T_areturn_7/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: - astore_3 - -Label10: - iconst_0 - ireturn - -Label0: - aload_0 - getfield dxc.junit.opcodes.areturn.jm.T_areturn_7.value Ljava/lang/Integer; - invokevirtual java/lang/Integer/intValue()I - sipush 2000 - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - aload_0 - getfield dxc.junit.opcodes.areturn.jm.T_areturn_7.failed Z - ifeq Label2 - iconst_0 - goto Label3 - -Label2: - iconst_1 - -Label3: - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_7.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_7.java deleted file mode 100644 index f58eb515a11745e4e5729497d82e4bd6b01f67d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_7.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -import dxc.junit.opcodes.areturn.jm.T_areturn_7; - -public class T_areturn_7 implements Runnable { - public final static int CNT = 1000; - Integer value = new Integer(0); - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized Integer test() { - Integer c = new Integer(value.intValue() + 1); - - value = c; - Thread.yield(); - if(c != value) - failed = true; - return c; - } - - public static boolean execute() { - T_areturn_7 test = new T_areturn_7(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value.intValue() != CNT * 2) - return false; - return !test.failed; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_8.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_8.j deleted file mode 100644 index 953e5ebff6a968fef48061bb4e3f31fe6824a75f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_8.j +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_8.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private synchronized test()Ljava/lang/String; - .limit stack 1 - .limit locals 1 - - aload_0 - monitorexit - ldc "abc" - areturn - -.end method - -.method public run()Z - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/areturn/jm/T_areturn_8/test()Ljava/lang/String; - pop - - iconst_1 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_8.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_8.java deleted file mode 100644 index f12ed82184d727cba69a775995687f8de57b2cca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_8.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_8 { - - private synchronized String test() { - return "abc"; - } - - public boolean run() { - test(); - return true; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_9.j b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_9.j deleted file mode 100644 index 75b73091406ec496fe2f77a396483ca3e464c45e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_9.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_areturn_9.java -.class public dxc/junit/opcodes/areturn/jm/T_areturn_9 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 1 - .limit locals 1 - - aload_0 - monitorenter - ldc "abc" - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_9.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_9.java deleted file mode 100644 index df35df5b53b795616c0d9771980620b368fa2fe8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/T_areturn_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - -public class T_areturn_9 { - - public String run() { - return "abc"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/TetsStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/TetsStubs.java deleted file mode 100644 index 7b46a68c3e5a9dbda4b42ae8c0f3b815f9643c31..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/areturn/jm/TetsStubs.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.areturn.jm; - - -interface TInterface{ - -} - -class TSuper implements TInterface { - -} - -class TChild extends TSuper { - -} - -class TSuper2 { - -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/Test_arraylength.java b/tools/dx-tests/src/dxc/junit/opcodes/arraylength/Test_arraylength.java deleted file mode 100644 index f5dfd91bb63389c591e609a80d3efa1196c92ebd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/Test_arraylength.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.arraylength; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.arraylength.jm.T_arraylength_1; - -public class Test_arraylength extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_arraylength_1 t = new T_arraylength_1(); - String[] a = new String[5]; - assertEquals(5, t.run(a)); - } - - /** - * @title NullPointerException expected - */ - public void testNPE1() { - T_arraylength_1 t = new T_arraylength_1(); - try { - t.run(null); - fail("NPE expected"); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.arraylength.jm.T_arraylength_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.arraylength.jm.T_arraylength_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_1.j b/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_1.j deleted file mode 100644 index 75cd6f597df411ecbbce0f339c3adc14e2fc73ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_arraylength_1.java -.class public dxc/junit/opcodes/arraylength/jm/T_arraylength_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([Ljava/lang/Object;)I - .limit stack 1 - .limit locals 2 - aload_1 - arraylength - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_1.java b/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_1.java deleted file mode 100644 index 7b204689765162e1dbee24bf7956bbc691ea13ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.arraylength.jm; - -public class T_arraylength_1 { - - public int run(Object[] arr) { - return arr.length; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_2.j b/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_2.j deleted file mode 100644 index 469b36489fc9101b3aa1d8bfe8c61d599a210d3c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_2.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.class public dxc/junit/opcodes/arraylength/jm/T_arraylength_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 2 - - aload_0 ; load "this" pointer - arraylength - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_2.java b/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_2.java deleted file mode 100644 index 4ec2183a6c87fcfa69aa0d338e396217ecf71963..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.arraylength.jm; - -public class T_arraylength_2 { - - public int run() { - byte[] ba = null; - return ba.length; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_3.j b/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_3.j deleted file mode 100644 index 30e8cd09f7ca0fadd8b9305b01b775d4a0c4f7b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.class public dxc/junit/opcodes/arraylength/jm/T_arraylength_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 2 - - iconst_1 - arraylength - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_3.java b/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_3.java deleted file mode 100644 index 6723a275f56307f0a725615d75cb975c0882c677..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/arraylength/jm/T_arraylength_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.arraylength.jm; - -public class T_arraylength_3 { - - public int run() { - byte[] ba = null; - return ba.length; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/Test_astore.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/Test_astore.java deleted file mode 100644 index 6e99aceb5c938415633b289b08c34249057086c1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/Test_astore.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.astore.jm.T_astore_1; -import dxc.junit.opcodes.astore.jm.T_astore_1_w; -import dxc.junit.opcodes.astore.jm.T_astore_5; -import dxc.junit.opcodes.astore.jm.T_astore_5_w; - -public class Test_astore extends DxTestCase { - - /* - * NORMAL astore VERSION - */ - - /** - * @title astore 0 - */ - public void testN1() { - assertEquals("hello", T_astore_1.run()); - } - - /** - * @title astore 255 - */ - public void testN2() { - assertEquals("world", T_astore_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.astore.jm.T_astore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.astore.jm.T_astore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.astore.jm.T_astore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE astore VERSION - */ - - /** - * @title astore_w 0 - */ - public void testN3() { - assertEquals("hello", T_astore_1_w.run()); - } - - /** - * @title astore 257 - */ - public void testN4() { - assertEquals("world", T_astore_5_w.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.astore.jm.T_astore_2_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.astore.jm.T_astore_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.astore.jm.T_astore_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1.j deleted file mode 100644 index 8791368ba09161ed5c3114f547a9b3f6036a02a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_1.java -.class public dxc/junit/opcodes/astore/jm/T_astore_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 2 - .limit locals 1 - - ldc "hello" - astore 0 - ldc "hi" - aload 0 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1.java deleted file mode 100644 index cb6c9421c0f663dca5cac7bb05e4173cad96543c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1_w.j deleted file mode 100644 index fb6432e1e9b83c06846055c285a223bbee06c0c6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1_w.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_1_w.java -.class public dxc/junit/opcodes/astore/jm/T_astore_1_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 4 - .limit locals 2 - - ldc "hello" - astore_w 0 - ldc "hi" - aload 0 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1_w.java deleted file mode 100644 index ee352e659c9bf3eb0785eb7475cb9223a92efcd4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_1_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_1_w { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2.j deleted file mode 100644 index 82d9f219ab61773771d58e441a3c88a537a531e8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_2.java -.class public dxc/junit/opcodes/astore/jm/T_astore_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - astore 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2.java deleted file mode 100644 index d6a8eff76eefbe9454bc64603a8f19d32809346c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2_w.j deleted file mode 100644 index 935d039bec4d3770af23d8e16ea687607455421a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_2_w.java -.class public dxc/junit/opcodes/astore/jm/T_astore_2_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - astore_w 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2_w.java deleted file mode 100644 index 13ddd3bc390c6290a4c4c9c1a23adaab6502ec81..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_2_w { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3.j deleted file mode 100644 index 8c74ad3a00dc119401d17d309c9411d49bcec522..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_3.java -.class public dxc/junit/opcodes/astore/jm/T_astore_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - fconst_1 - astore 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3.java deleted file mode 100644 index a8887d01317806fc50ef65c588a77320c42ed539..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3_w.j deleted file mode 100644 index 7988f8a19a98819365774677a5098962d69aa7d6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_3_w.java -.class public dxc/junit/opcodes/astore/jm/T_astore_3_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 3 - .limit locals 2 - - fconst_1 - astore_w 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3_w.java deleted file mode 100644 index c4c8d3b1ae98dca85995a82189e2a10e6db1ba85..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_3_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_3_w { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4.j deleted file mode 100644 index 5a3031a53af8ea041b399a73ea48126f57779f99..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_4.java -.class public dxc/junit/opcodes/astore/jm/T_astore_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - lconst_1 - astore 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4.java deleted file mode 100644 index 3a2022876c39ad64d204899d8b63d929398ed1d4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4_w.j deleted file mode 100644 index 29e892290013dd40bdea25f6a189d1bd81ec6e5a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_4_w.java -.class public dxc/junit/opcodes/astore/jm/T_astore_4_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 1 - - iconst_1 - astore 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4_w.java deleted file mode 100644 index 078beb6aa8e3ac4b24fd747c1aca64929419eaff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_4_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_4_w { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5.j deleted file mode 100644 index 1d7c7821198ea22bcffbcf19a86b8dd7b790fa81..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_5.java -.class public dxc/junit/opcodes/astore/jm/T_astore_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 2 - .limit locals 300 - - ldc "world" - astore 255 - ldc "hi" - aload 255 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5.java deleted file mode 100644 index c950130029bf3f28bd8f4e718860f57822fcaad0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_5 { - - public static String run() { - return "world"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5_w.j deleted file mode 100644 index 690924f2f5fb96163a9288603b453266b3c0a859..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_5_w.java -.class public dxc/junit/opcodes/astore/jm/T_astore_5_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 2 - .limit locals 300 - - ldc "world" - astore_w 257 - ldc "hi" - aload 257 - areturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5_w.java deleted file mode 100644 index c74bcd91ba3c8f3b36487aa1b2f25337f0238fac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_5_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_5_w { - - public static String run() { - return "world"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_6.java deleted file mode 100644 index 6518de11c7ada1776d115e103320614798385d10..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore/jm/T_astore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore.jm; - -public class T_astore_6 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/Test_astore_0.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/Test_astore_0.java deleted file mode 100644 index 179ae7b33f47b8f99560929d2cf07c964eb8c401..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/Test_astore_0.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.astore_0.jm.T_astore_0_1; -import dxc.junit.opcodes.astore_0.jm.T_astore_0_5; - -public class Test_astore_0 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals("hello", T_astore_0_1.run()); - } - - /** - * @title equality of astore_ and astore - */ - public void testN2() { - assertTrue(T_astore_0_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.astore_0.jm.T_astore_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.astore_0.jm.T_astore_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.astore_0.jm.T_astore_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_1.j deleted file mode 100644 index 50c2732e9b665ccf06773180f01c6492a8004825..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_0_1.java -.class public dxc/junit/opcodes/astore_0/jm/T_astore_0_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 2 - .limit locals 1 - - ldc "hello" - astore_0 - ldc "hi" - aload_0 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_1.java deleted file mode 100644 index 022182df49a2464774e6222a2177f56cdfeec4a2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_0.jm; - -public class T_astore_0_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_2.j deleted file mode 100644 index 1130fc4905481d854a248c0ab57ae05854b93683..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_0_2.java -.class public dxc/junit/opcodes/astore_0/jm/T_astore_0_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - astore_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_2.java deleted file mode 100644 index 10af6e60294b05d4c18af046e347659d289edd9c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_0.jm; - -public class T_astore_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_3.j deleted file mode 100644 index 737a6ab92bc5f4fd6b3d465f891666a3278df4e3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_0_3.java -.class public dxc/junit/opcodes/astore_0/jm/T_astore_0_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 1 - - fconst_1 - astore_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_3.java deleted file mode 100644 index 0e4e1cb67360c2e5181e7363540580e7357eba40..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_0.jm; - -public class T_astore_0_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_4.j deleted file mode 100644 index c8e268b40feaa8524be3f06e938f5139e2009e24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_0_4.java -.class public dxc/junit/opcodes/astore_0/jm/T_astore_0_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 1 - - lconst_1 - astore_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_4.java deleted file mode 100644 index 4b54fd79c521fde84804ff0a21206146478a61c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_0.jm; - -public class T_astore_0_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_5.j deleted file mode 100644 index f7a108258c78616b9d93c559672d0c7c906073cf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_5.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_0_5.java -.class public dxc/junit/opcodes/astore_0/jm/T_astore_0_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 2 - - ldc "hello" - astore_0 - aload_0 - - ldc "hello" - astore 0 - aload_0 - - if_acmpne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_5.java deleted file mode 100644 index 90f895e602f5e611fbb94c8da3f9fdc9b19ce3ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_0.jm; - -public class T_astore_0_5 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_6.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_6.java deleted file mode 100644 index 9b32ca6cfcdffa3d10224b2da90b2002608ec28b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_0/jm/T_astore_0_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_0.jm; - -public class T_astore_0_6 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/Test_astore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/Test_astore_1.java deleted file mode 100644 index 48c46b30350bf1de038df829d568c4ebc0565721..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/Test_astore_1.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.astore_1.jm.T_astore_1_1; -import dxc.junit.opcodes.astore_1.jm.T_astore_1_5; - -public class Test_astore_1 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals("hello", T_astore_1_1.run()); - } - - /** - * @title equality of astore_ and astore - */ - public void testN2() { - assertTrue(T_astore_1_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.astore_1.jm.T_astore_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.astore_1.jm.T_astore_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.astore_1.jm.T_astore_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_1.j deleted file mode 100644 index 0e3adb691c550602815e68858a4b615f3244e8a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_1_1.java -.class public dxc/junit/opcodes/astore_1/jm/T_astore_1_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 2 - .limit locals 2 - - ldc "hello" - astore_1 - ldc "hi" - aload_1 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_1.java deleted file mode 100644 index 6ce3fcc1e2912d705b8faa983630435f7c5acce5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_1.jm; - -public class T_astore_1_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_2.j deleted file mode 100644 index 91110d9d891fb58c750cc8e1635884f9d7a0f4cc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_1_2.java -.class public dxc/junit/opcodes/astore_1/jm/T_astore_1_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - astore_1 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_2.java deleted file mode 100644 index 138f5cb2208b8a3e346e486e470e489b73f63e05..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_1.jm; - -public class T_astore_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_3.j deleted file mode 100644 index 2f86fe795e4fec50db11bd59afbb3a9ec8f7cbd5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_1_3.java -.class public dxc/junit/opcodes/astore_1/jm/T_astore_1_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - fconst_1 - astore_1 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_3.java deleted file mode 100644 index 73e0f141397dbb60dde5e354dd9c095f287c118d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_1.jm; - -public class T_astore_1_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_4.j deleted file mode 100644 index 6581c7ccc7deb2409802ab605eba4a6ddc971e62..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_1_4.java -.class public dxc/junit/opcodes/astore_1/jm/T_astore_1_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - lconst_1 - astore_1 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_4.java deleted file mode 100644 index 8f831cc67bf475f73bba19dc909c21f062743431..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_1.jm; - -public class T_astore_1_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_5.j deleted file mode 100644 index 4189fb3e0a780bb9d86adbf675f5b8546c07a640..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_5.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_1_5.java -.class public dxc/junit/opcodes/astore_1/jm/T_astore_1_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 2 - - ldc "hello" - astore_1 - aload_1 - - ldc "hello" - astore 1 - aload 1 - - if_acmpne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_5.java deleted file mode 100644 index a45382f68510bb98a29c9572ed5c65cadc89dbb8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_1.jm; - -public class T_astore_1_5 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_6.java deleted file mode 100644 index d0e391631ed0fd86f5e37d4de1e77b53f69ba611..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_1/jm/T_astore_1_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_1.jm; - -public class T_astore_1_6 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/Test_astore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/Test_astore_2.java deleted file mode 100644 index 4d05fd2f0313be7e6585bfdc0770ede2007d48d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/Test_astore_2.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.astore_2.jm.T_astore_2_1; -import dxc.junit.opcodes.astore_2.jm.T_astore_2_5; - -public class Test_astore_2 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals("hello", T_astore_2_1.run()); - } - - /** - * @title equality of astore_ and astore - */ - public void testN2() { - assertTrue(T_astore_2_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.astore_2.jm.T_astore_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.astore_2.jm.T_astore_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.astore_2.jm.T_astore_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_1.j deleted file mode 100644 index a974ce1fb14963927781b0e3e68e8ae40746efea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_2_1.java -.class public dxc/junit/opcodes/astore_2/jm/T_astore_2_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 2 - .limit locals 3 - - ldc "hello" - astore_2 - ldc "hi" - aload_2 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_1.java deleted file mode 100644 index e58179064951d472ad444da540d09ccd50ac54e8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_2.jm; - -public class T_astore_2_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_2.j deleted file mode 100644 index 750b53856fc83b96b82cf3b41dbfbe4c118d5676..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_2_2.java -.class public dxc/junit/opcodes/astore_2/jm/T_astore_2_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - astore_2 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_2.java deleted file mode 100644 index ee9ffbdba85367aaf50ee83ccae96c1410cb9d86..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_2.jm; - -public class T_astore_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_3.j deleted file mode 100644 index 135abe7b0e3ad22ce9b3baac5fa9c93690c02c0c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_2_3.java -.class public dxc/junit/opcodes/astore_2/jm/T_astore_2_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 3 - - fconst_2 - astore_2 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_3.java deleted file mode 100644 index 3c70ad77d0cf1cea14939839b3c6770f6bca92f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_2.jm; - -public class T_astore_2_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_4.j deleted file mode 100644 index 4708e555187e29ad1edaa81aed376d46d1890095..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_2_4.java -.class public dxc/junit/opcodes/astore_2/jm/T_astore_2_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 3 - - lconst_1 - astore_2 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_4.java deleted file mode 100644 index 46e882df9788f31d2043b2cceb964d9bec2fc6f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_2.jm; - -public class T_astore_2_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_5.j deleted file mode 100644 index f7edded9b5d9feeb820782e14f39fca4b62cd6a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_5.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_2_5.java -.class public dxc/junit/opcodes/astore_2/jm/T_astore_2_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 3 - - ldc "hello" - astore_2 - aload_2 - - ldc "hello" - astore 2 - aload_2 - - if_acmpne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_5.java deleted file mode 100644 index 1b31c7d18c3e9dafbd69e5085cb5014dbd75c13c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_2.jm; - -public class T_astore_2_5 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_6.java deleted file mode 100644 index f610892efb7eec8ce6463f8d5eaeecb5e6b60401..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_2/jm/T_astore_2_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_2.jm; - -public class T_astore_2_6 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/Test_astore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/Test_astore_3.java deleted file mode 100644 index f8ca21fb86ad30ad6bb86ef3d0a904ee6746e494..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/Test_astore_3.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.astore_3.jm.T_astore_3_1; -import dxc.junit.opcodes.astore_3.jm.T_astore_3_5; - -public class Test_astore_3 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals("hello", T_astore_3_1.run()); - } - - /** - * @title equality of astore_ and astore - */ - public void testN2() { - assertTrue(T_astore_3_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.astore_3.jm.T_astore_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.astore_3.jm.T_astore_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.astore_3.jm.T_astore_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_1.j deleted file mode 100644 index 12cbc00a485d6d4db75d7efb7e8d783316c8a733..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_3_1.java -.class public dxc/junit/opcodes/astore_3/jm/T_astore_3_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Ljava/lang/String; - .limit stack 2 - .limit locals 4 - - ldc "hello" - astore_3 - ldc "hi" - aload_3 - areturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_1.java deleted file mode 100644 index 5a118f5ce5973a07a6620bd8e2892a6f86553f0f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_3.jm; - -public class T_astore_3_1 { - - public static String run() { - String a = new String("hello"); - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_2.j deleted file mode 100644 index a9c6268d8e69451ae8b5b54e95afb4f60fe38a60..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_3_2.java -.class public dxc/junit/opcodes/astore_3/jm/T_astore_3_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 0 - - astore_3 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_2.java deleted file mode 100644 index d11fc802535fe10c0161afbaed51686269f37998..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_3.jm; - -public class T_astore_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_3.j deleted file mode 100644 index 52de374668dc24e94503845c0dff31c6df5caf6d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_3_3.java -.class public dxc/junit/opcodes/astore_3/jm/T_astore_3_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 4 - - fconst_2 - astore_3 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_3.java deleted file mode 100644 index b2aef9651659b3957a2be857d4bd30861a16d89a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_3.jm; - -public class T_astore_3_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_4.j deleted file mode 100644 index c6623fdf2c8ffd308a1c433fbe103b719e8b0c47..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_3_4.java -.class public dxc/junit/opcodes/astore_3/jm/T_astore_3_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 4 - - lconst_1 - astore_3 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_4.java deleted file mode 100644 index ae42784c8e1376aec871892a65a8805fcdc3d43b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_3.jm; - -public class T_astore_3_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_5.j deleted file mode 100644 index c04ef0bd0b9494de479d61babd8506893a7def76..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_5.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_astore_3_5.java -.class public dxc/junit/opcodes/astore_3/jm/T_astore_3_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - ldc "hello" - astore_3 - aload_3 - - ldc "hello" - astore 3 - aload_3 - - if_acmpne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_5.java deleted file mode 100644 index c94d01a4aca33c88819f08288d654a5250a839db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_3.jm; - -public class T_astore_3_5 { - - public static boolean run() { - String a = new String("hello"); - return a == a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_6.java b/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_6.java deleted file mode 100644 index 3250a5f221cd924051a124ca76fb107bead731c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/astore_3/jm/T_astore_3_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.astore_3.jm; - -public class T_astore_3_6 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/Test_athrow.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/Test_athrow.java deleted file mode 100644 index c8829e33d736e1de0ea8accfc53194c94aa047f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/Test_athrow.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.athrow.jm.T_athrow_1; -import dxc.junit.opcodes.athrow.jm.T_athrow_11; -import dxc.junit.opcodes.athrow.jm.T_athrow_12; -import dxc.junit.opcodes.athrow.jm.T_athrow_2; -import dxc.junit.opcodes.athrow.jm.T_athrow_4; -import dxc.junit.opcodes.athrow.jm.T_athrow_5; -import dxc.junit.opcodes.athrow.jm.T_athrow_8; - -public class Test_athrow extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_athrow_1 t = new T_athrow_1(); - try { - t.run(); - fail("must throw a RuntimeException"); - } catch (RuntimeException re) { - // expected - } - } - - /** - * @title Throwing of the objectref on the class Throwable - */ - public void testN2() { - T_athrow_2 t = new T_athrow_2(); - try { - t.run(); - fail("must throw a Throwable"); - } catch (Throwable e) { - // expected - } - } - - /** - * @title Throwing of the objectref on the subclass of Throwable - */ - public void testN3() { - T_athrow_8 t = new T_athrow_8(); - try { - t.run(); - fail("must throw a Error"); - } catch (Error e) { - // expected - } - } - - /** - * @title Nearest matching catch must be executed in case of exception - */ - public void testN4() { - T_athrow_12 t = new T_athrow_12(); - assertTrue(t.run()); - } - - /** - * @title NullPointerException If objectref is null, athrow throws - * a NullPointerException instead of objectref - */ - public void testE1() { - T_athrow_4 t = new T_athrow_4(); - try { - t.run(); - fail("expected NullPointerException"); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @title IllegalMonitorStateException expected - */ - public void testE2() { - T_athrow_5 t = new T_athrow_5(); - try { - t.run(); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title IllegalMonitorStateException if structural lock rule violated - - */ - public void testE3() { - T_athrow_11 t = new T_athrow_11(); - try { - t.run(); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } catch (NullPointerException npe) { - // the JVM spec says that it is optional to implement the structural - // lock rules, see JVM spec 8.13 and monitorenter/exit opcodes. - System.out.print("dvmvfe:"); - //fail ("expected IllegalMonitorStateException, but got NPE"); - } - } - - /** - * @constraint 4.8.1.19 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.athrow.jm.T_athrow_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.athrow.jm.T_athrow_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.athrow.jm.T_athrow_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - String - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.athrow.jm.T_athrow_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.19 - * @title Throwing of the objectref on the class which is not - * the class Throwable or a subclass of Throwable. - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.athrow.jm.T_athrow_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_1.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_1.j deleted file mode 100644 index 6c0c1a8917bf50a1f9cf207cc73a038be40e5a98..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_1.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_1.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - .limit locals 1 - - new java/lang/RuntimeException - dup - invokespecial java/lang/RuntimeException/()V - athrow - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_1.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_1.java deleted file mode 100644 index 657ed249ea5dd7f288ec4c783b22fb2df3123355..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_1 { - - public void run() { - throw new RuntimeException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_10.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_10.j deleted file mode 100644 index 96562a98d1c2e82ff552c6f9a79f807d69d74ba0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_10.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_10.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_10 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 1 - - new java/lang/String - dup - invokespecial java/lang/String/()V - athrow - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_10.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_10.java deleted file mode 100644 index e9acecabe99f079b9c4807361ca3cff724dad267..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_10 { - - public void run() { - throw new RuntimeException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_11.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_11.j deleted file mode 100644 index 37429ebe33da7bbf1888acb683d5ba1efd6cdf13..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_11.j +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_11.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private test()V - .limit stack 2 - .limit locals 1 - - aload_0 - monitorenter - - new java/lang/NullPointerException - dup - invokespecial java/lang/NullPointerException/()V - - athrow - -.end method - - -.method public run()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/athrow/jm/T_athrow_11/test()V - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_11.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_11.java deleted file mode 100644 index 43a0f0ac5a50d4d0418e083c22d3b74bbbfa4f6b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_11.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_11 { - - private void test() { - throw new NullPointerException(); - } - - public void run() { - test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_12.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_12.j deleted file mode 100644 index fc0ba94fafb85c5fee22275d7d73e9c8ffc5b29a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_12.j +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_12.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_12 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Z - .limit stack 2 - .limit locals 2 - -Label0: - new java/lang/RuntimeException - dup - invokespecial java/lang/RuntimeException/()V - athrow - -Label5: - astore_1 -Label2: - iconst_1 - ireturn - -Label3: - astore_1 - iconst_0 - ireturn - -.catch java/lang/RuntimeException from Label0 to Label5 using Label5 -.catch java/lang/RuntimeException from Label0 to Label2 using Label3 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_12.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_12.java deleted file mode 100644 index b7aca696993eea9df89081055bfc86fdd00d6b28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_12.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_12 { - - public boolean run() { - try{ - try { - throw new RuntimeException(); - }catch(RuntimeException e1) { - return true; - } - } catch(RuntimeException e2) { - } - return false; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_2.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_2.j deleted file mode 100644 index 7df7277290a48be8a82c93aca6de58b967fc3177..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_2.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .throws java/lang/Throwable - .limit stack 2 - .limit locals 1 - - new java/lang/Throwable - dup - invokespecial java/lang/Throwable/()V - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_2.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_2.java deleted file mode 100644 index 13be1eedf04ce08c805e84e0ac64fe9d166bd350..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_2 { - - public void run() throws Throwable { - throw new Throwable(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.cfh deleted file mode 100644 index d95df9e855f7508a9e15c521b7d106a4c6f665a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/athrow/jm/T_athrow_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 07 - // parsed:, offset 15, len 5, h: 0002: method{java.lang.RuntimeException.:()V} - // . . . . . - 0a 00 0d 00 07 - // parsed:, offset 20, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 39, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 52, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 61, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 67, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 72, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 79, len 18, h: 0009: utf8{"T_athrow_3.java"} - // . . . T _ a t h r o w _ 3 . j a v a - 01 00 0f 54 5f 61 74 68 72 6f 77 5f 33 2e 6a 61 76 61 - // parsed:, offset 97, len 41, h: 000a: utf8{"dxc/junit/opcodes/athrow/jm/T_athrow_3"} - // . . & d x c / j u n i t / o p c o d e s / a t h r o w / j m / T _ a t h r o w _ 3 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 61 74 68 72 6f 77 2f 6a 6d 2f 54 5f 61 74 68 72 6f 77 5f 33 - // parsed:, offset 138, len 29, h: 000b: utf8{"java/lang/RuntimeException"} - // . . . j a v a / l a n g / R u n t i m e E x c e p t i o n - 01 00 1a 6a 61 76 61 2f 6c 61 6e 67 2f 52 75 6e 74 69 6d 65 45 78 63 65 70 74 69 6f 6e - // parsed:, offset 167, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 173, len 3, h: 000d: type{java.lang.RuntimeException} - // . . . - 07 00 0b - // parsed:, offset 176, len 3, h: 000e: type{dxc.junit.opcodes.athrow.jm.T_athrow_3} - // . . . - 07 00 0a - // parsed:, offset 179, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 182, len 0, h: end constant_pool -// parsed:, offset 182, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 184, len 2, h: this_class: type{dxc.junit.opcodes.athrow.jm.T_athrow_3} -// . . - 00 0e -// parsed:, offset 186, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 188, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 190, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 192, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 194, len:75,desc: ()V -// parsed:, offset 194, len 0, h: methods[0]: - // parsed:, offset 194, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 196, len 2, h: name: - // . . - 00 05 - // parsed:, offset 198, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 200, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 202, len 0, h: attributes[0]: - // parsed:, offset 202, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 204, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 208, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 210, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 212, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 221, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 223, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 225, len 0, h: end attributes[0] -// parsed:, offset 225, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 225, len:44,desc: ()V -// parsed:, offset 225, len 0, h: methods[1]: - // parsed:, offset 225, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 227, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 229, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 231, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 233, len 0, h: attributes[0]: - // parsed:, offset 233, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 235, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 239, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 241, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 243, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 3, h: 0000: new type{java.lang.RuntimeException} - // . . . -//@mod bb 00 0d - bb 01 0d - // parsed:, offset 3, len 1, h: 0003: dup - // Y - 59 - // parsed:, offset 4, len 3, h: 0004: invokespecial method{java.lang.RuntimeException.:()V} - // . . . - b7 00 02 - // parsed:, offset 7, len 1, h: 0007: athrow - // . - bf - // parsed:, offset 255, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 257, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 259, len 0, h: end attributes[0] -// parsed:, offset 259, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 259, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 261, len 0, h: attributes[0]: - // parsed:, offset 261, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 263, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 267, len 2, h: source: utf8{"T_athrow_3.java"} - // . . - 00 09 -// parsed:, offset 269, len 0, h: end attributes[0] -// parsed:, offset 269, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.j deleted file mode 100644 index c4ea4ad511e5b3c3468640c3f0a3165c2aeafca5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_3.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 1 - - new java/lang/RuntimeException - dup - invokespecial java/lang/RuntimeException/()V - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.java deleted file mode 100644 index 8d985e1d5266700c6cda76ea44df2faa8b703eac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_3 { - - public void run() { - throw new RuntimeException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_4.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_4.j deleted file mode 100644 index 9f74fd7d71524b45fe97be1e7ba7085c0283229d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_4.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 1 - - aconst_null - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_4.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_4.java deleted file mode 100644 index a50d5cd32dff33acc4983be8b6442885126e11d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_4 { - - public void run() { - throw new RuntimeException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_5.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_5.j deleted file mode 100644 index 887180b9336813501f37a62b8442e3bc3c46338e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_5.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public synchronized run()V - .limit stack 2 - .limit locals 1 - - aload_0 - monitorexit - - new java/lang/NullPointerException - dup - invokespecial java/lang/NullPointerException/()V - - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_5.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_5.java deleted file mode 100644 index 3296cda094b9c0567e4f90a8b1c22113f0f111dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_5 { - - public synchronized void run() { - throw new NullPointerException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_6.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_6.j deleted file mode 100644 index 754f1504d04f241e1c2ce7c8c9b05bf5fa39cc2a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_6.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_6.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - .limit locals 1 - - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_6.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_6.java deleted file mode 100644 index 0ec671cdd3f58e5d952edced276ec2e464c43337..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_6 { - - public void run() { - throw new RuntimeException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_7.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_7.j deleted file mode 100644 index 7ef0094904129f294dfdc151cdcc869b03fce925..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_7.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 1 - - fconst_0 - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_7.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_7.java deleted file mode 100644 index 8b4146c81015ca0e0f2a14d74d84bbf03fd6a661..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_7 { - - public void run() { - throw new RuntimeException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_8.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_8.j deleted file mode 100644 index 6a3a04a854102a9955d031b21d141d25d8271a92..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_8.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_8.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .throws java/lang/Error - .limit stack 2 - .limit locals 1 - - new java/lang/Error - dup - invokespecial java/lang/Error/()V - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_8.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_8.java deleted file mode 100644 index 0ee18567cfbaa76f0d0b7497c1b434b60e423aee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_8 { - - public void run() throws Error { - throw new Error(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_9.j b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_9.j deleted file mode 100644 index 6bcef31a489045bb0bfae414882f97c90cfb0ade..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_9.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_athrow_9.java -.class public dxc/junit/opcodes/athrow/jm/T_athrow_9 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 1 - - new java/lang/Object - dup - invokespecial java/lang/RuntimeException/()V - athrow - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_9.java b/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_9.java deleted file mode 100644 index 9dea3b5a355e7d5c39647c4a702c927aff0935d5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/athrow/jm/T_athrow_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.athrow.jm; - -public class T_athrow_9 { - - public void run() { - throw new RuntimeException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/Test_baload.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/Test_baload.java deleted file mode 100644 index 8cd451126377ac574372d8b16766c951ead52305..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/Test_baload.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.baload.jm.T_baload_1; - -public class Test_baload extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_baload_1 t = new T_baload_1(); - byte[] arr = new byte[2]; - arr[1] = 100; - assertEquals(100, t.run(arr, 1)); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_baload_1 t = new T_baload_1(); - byte[] arr = new byte[2]; - arr[0] = 100; - assertEquals(100, t.run(arr, 0)); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_baload_1 t = new T_baload_1(); - byte[] arr = new byte[2]; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_baload_1 t = new T_baload_1(); - try { - t.run(null, 2); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_baload_1 t = new T_baload_1(); - byte[] arr = new byte[2]; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, short - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], short - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int[], int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.baload.jm.T_baload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_1.j deleted file mode 100644 index 1d028c044c20fbdeb59b937b7829fb69e2ac4b21..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_1.java -.class public dxc/junit/opcodes/baload/jm/T_baload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BI)B - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - - baload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_1.java deleted file mode 100644 index bfb95ad3a9f56dbae35c29000f23f758fc870559..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_1 { - public byte run(byte[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_2.j deleted file mode 100644 index d21f2e773d2cb0c0a640627a8bfc5da48f0d0a63..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_2.java -.class public dxc/junit/opcodes/baload/jm/T_baload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BI)B - .limit stack 3 - .limit locals 4 - - aload_1 -; iload_2 - - baload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_2.java deleted file mode 100644 index 74f6686832d61bdb8320128bda8ed3f882c07def..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_2 { - - public byte run(byte[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_3.j deleted file mode 100644 index 7f20dfb4b1dc5241473a51d877cf5a315026b6b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_3.java -.class public dxc/junit/opcodes/baload/jm/T_baload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BI)B - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - baload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_3.java deleted file mode 100644 index f9ffeddb2fdf2c2317f8369592faf248eed1f731..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_3 { - - public byte run(byte[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_4.j deleted file mode 100644 index 26e2c6342e4f27cbb3050a7733418e67455e05cc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_4.java -.class public dxc/junit/opcodes/baload/jm/T_baload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([BD)B - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - baload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_4.java deleted file mode 100644 index 17b9452d782b58ea22f3e9a2a20f809aab9b7650..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_4 { - - public byte run(byte[] arr, double idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_5.j deleted file mode 100644 index 821f3d60737d0fc0f2e30a9cbbab3533589f0abc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_5.java -.class public dxc/junit/opcodes/baload/jm/T_baload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([BJ)B - .limit stack 4 - .limit locals 5 - - aload_1 - lload_2 -; l2i - baload - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_5.java deleted file mode 100644 index 0e033dc8e790cfc8d4dca70d123914b1a40cea89..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_5 { - - public byte run(byte[] arr, long idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_6.j deleted file mode 100644 index b02bf0d5b1e6ab6900f14412ce6eeedd97bd8350..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_6.java -.class public dxc/junit/opcodes/baload/jm/T_baload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;[BI)B - .limit stack 3 - .limit locals 4 - - aload_1 - iload_3 - - baload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_6.java deleted file mode 100644 index 819ec21ab2bc2dc45e9b9fd98efc54ea4ca22f35..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_6 { - - public byte run(Object a, byte[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_7.j deleted file mode 100644 index 32607e27b60f060953f0f94de18bcf8f1a957025..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_7.java -.class public dxc/junit/opcodes/baload/jm/T_baload_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([D[BI)B - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - baload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_7.java deleted file mode 100644 index af1d1afe32683fd46e10da7cfc025f0a5865e878..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_7 { - - public byte run(double[] a, byte[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_8.j deleted file mode 100644 index b7dd523aae419b092fc8d2f747b29fce72d9587d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_8.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_8.java -.class public dxc/junit/opcodes/baload/jm/T_baload_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([I[BI)B - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - baload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_8.java deleted file mode 100644 index eeb61973797e07eb611f1e29ce1946a937550d69..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_8 { - - public byte run(int[] a, byte[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_9.j deleted file mode 100644 index f47a3289a7a730dd14ef548e195563d4aabbb5b7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_baload_9.java -.class public dxc/junit/opcodes/baload/jm/T_baload_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BI)B - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - baload - - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_9.java deleted file mode 100644 index 9471c7aa532c5780a92f8156d7d251e559ab5f93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/baload/jm/T_baload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.baload.jm; - -public class T_baload_9 { - - public byte run(byte[] arr, int idx) { - return arr[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/Test_bastore.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/Test_bastore.java deleted file mode 100644 index e183f0de3adbf7ce7750831d607705c8e0845280..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/Test_bastore.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.bastore.jm.T_bastore_1; - -public class Test_bastore extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_bastore_1 t = new T_bastore_1(); - byte[] arr = new byte[2]; - t.run(arr, 1, (byte) 100); - assertEquals(100, arr[1]); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_bastore_1 t = new T_bastore_1(); - byte[] arr = new byte[2]; - t.run(arr, 0, (byte) 100); - assertEquals(100, arr[0]); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_bastore_1 t = new T_bastore_1(); - byte[] arr = new byte[2]; - try { - t.run(arr, 2, (byte) 100); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_bastore_1 t = new T_bastore_1(); - try { - t.run(null, 2, (byte) 100); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_bastore_1 t = new T_bastore_1(); - byte[] arr = new byte[2]; - try { - t.run(arr, -1, (byte) 100); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, - * short - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, - * short - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int, - * short - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int, - * short - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, - * short - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.bastore.jm.T_bastore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_1.j deleted file mode 100644 index 49c11dfddeca37fbae6bb7e2af3ea241dccd6d94..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_1.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BIB)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_1.java deleted file mode 100644 index 82c22a5b675f135bdfdc03571a8a103dcb0e44a2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_1 { - public void run(byte[] arr, int idx, byte value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_2.j deleted file mode 100644 index d67c6238150cde548f244466ff05b1d8f6889796..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_2.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BIB)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - ;iload_3 - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_2.java deleted file mode 100644 index a34acf815a4a591a9d73c6703becb64fd3bb33dc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_2 { - - public void run(byte[] arr, int idx, byte value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_3.j deleted file mode 100644 index 68920fbb3ed35ca0a9247bd0ca2ccae99cb42872..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_3.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BIB)V - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - iload_3 - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_3.java deleted file mode 100644 index 533b4401819a5aedcca4ed139b5572483c663861..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_3 { - - public void run(byte[] arr, int idx, byte value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_4.j deleted file mode 100644 index a4f8aaab9e171a009f91b0656e397ec39406669f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_4.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_4.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([BDI)V - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - iload 4 - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_4.java deleted file mode 100644 index 6dbb40171fe1a744287e49cd908dcdb5c7b6d0da..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_4 { - - public void run(byte[] arr, double idx, byte value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_5.j deleted file mode 100644 index 49c1303870dbaf8ca4baf4c747f6d55367a60335..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_5.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([BIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload 3 -; l2i -; i2s - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_5.java deleted file mode 100644 index af3fe8149feeee573a5b3f6f0cd71ba6ee3d15c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_5 { - - public void run(byte[] arr, int idx, long value) { - arr[idx] = (byte)value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_6.j deleted file mode 100644 index e6ce2e0f428becb9b563104e79301ee1fb96b91e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_6.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;IB)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_6.java deleted file mode 100644 index 4db5a94537c56917dad28576ed1f94248503eba9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_6 { - - public void run(Object a, byte[] arr, int idx, byte value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_7.j deleted file mode 100644 index 4470df9b588478dd0c2e6f3d595fb42b1fd36edd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_7.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_7.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([D[BIB)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_7.java deleted file mode 100644 index d97dd1de8e9233fc241c40381a3895fac3bb0f20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_7 { - - public void run(double a[], byte[] arr, int idx, byte value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_8.j deleted file mode 100644 index 54feab5e795377f70abc4d9e02a22edd651676ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_8.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_8.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([J[BIB)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - bastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_8.java deleted file mode 100644 index 77b58c09fa0589d35aaa04dad6b6c82d114722b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_8 { - - public void run(long a[], byte[] arr, int idx, byte value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_9.j deleted file mode 100644 index f2f3ec314e36928fa4d3809805e2ac9469630e39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bastore_9.java -.class public dxc/junit/opcodes/bastore/jm/T_bastore_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([BIB)V - .limit stack 3 - .limit locals 4 - - aload_1 - aload_0 - iload_3 - bastore - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_9.java deleted file mode 100644 index 9b62a2c68decc16b5d3bd743114e64485add757e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bastore/jm/T_bastore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bastore.jm; - -public class T_bastore_9 { - - public void run(byte[] arr, int idx, byte value) { - arr[idx] = value; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/Test_bipush.java b/tools/dx-tests/src/dxc/junit/opcodes/bipush/Test_bipush.java deleted file mode 100644 index 2eb5bcece6c891a95019c29d1816d1625caa3597..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/Test_bipush.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bipush; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.bipush.jm.T_bipush_1; -import dxc.junit.opcodes.bipush.jm.T_bipush_2; -import dxc.junit.opcodes.bipush.jm.T_bipush_3; - -public class Test_bipush extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_bipush_1 t = new T_bipush_1(); - assertEquals(100, t.run()); - } - - /** - * @title normal test - */ - public void testB1() { - T_bipush_2 t = new T_bipush_2(); - assertEquals(0, t.run()); - } - - /** - * @title normal test - */ - public void testB2() { - T_bipush_3 t = new T_bipush_3(); - assertEquals(-1, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.bipush.jm.T_bipush_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_1.j b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_1.j deleted file mode 100644 index 40d0a809d82bdae544e91f7693112fb2c987f3ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bipush_1.java -.class public dxc/junit/opcodes/bipush/jm/T_bipush_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()B - bipush 100 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_1.java b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_1.java deleted file mode 100644 index 5c2667d8ac22ff0d42d009b4a9168efd8097e712..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bipush.jm; - -public class T_bipush_1 { - - public byte run() { - return (byte)100; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_2.j b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_2.j deleted file mode 100644 index 17b6e3a5446cadd36c85adf29125c67714e21f60..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bipush_2.java -.class public dxc/junit/opcodes/bipush/jm/T_bipush_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()B - .limit stack 1 - .limit locals 1 - - bipush 0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_2.java b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_2.java deleted file mode 100644 index 9b04e4d0ea63f26b37e180fa44b0e14f24f12877..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bipush.jm; - -public class T_bipush_2 { - - public byte run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_3.j b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_3.j deleted file mode 100644 index 7e934112f4b20d212810f1fabba4623e2c8a1b57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bipush_3.java -.class public dxc/junit/opcodes/bipush/jm/T_bipush_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()B - .limit stack 1 - .limit locals 1 - - bipush -1 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_3.java b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_3.java deleted file mode 100644 index 0fad6c7403d61b7cb730bcd6e8ad8c0deedcfeaf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bipush.jm; - -public class T_bipush_3 { - - public byte run() { - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_4.j b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_4.j deleted file mode 100644 index 0d9b7d980df9ba56c24491c23310715457f37a8f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_bipush_4.java -.class public dxc/junit/opcodes/bipush/jm/T_bipush_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()B - .limit stack 1 -; .limit locals 1 - - bipush 1 - bipush 1 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_4.java b/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_4.java deleted file mode 100644 index 4740577c7c3ba17efdbc0fe514940d2912a0c424..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/bipush/jm/T_bipush_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.bipush.jm; - -public class T_bipush_4 { - - public byte run() { - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/Test_caload.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/Test_caload.java deleted file mode 100644 index 3db3080610e4169c15b9c4a2e1163ec1a3b499be..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/Test_caload.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.caload.jm.T_caload_1; - -public class Test_caload extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_caload_1 t = new T_caload_1(); - char[] arr = new char[2]; - arr[1] = 'g'; - assertEquals('g', t.run(arr, 1)); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_caload_1 t = new T_caload_1(); - char[] arr = new char[2]; - arr[0] = 'g'; - assertEquals('g', t.run(arr, 0)); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_caload_1 t = new T_caload_1(); - char[] arr = new char[2]; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_caload_1 t = new T_caload_1(); - try { - t.run(null, 2); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_caload_1 t = new T_caload_1(); - char[] arr = new char[2]; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, char - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], char - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int[], int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.caload.jm.T_caload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_1.j deleted file mode 100644 index 3d541a80682b087a8314c65b25a6aa89d4b5e990..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_1.java -.class public dxc/junit/opcodes/caload/jm/T_caload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CI)C - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - - caload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_1.java deleted file mode 100644 index beb189c47551fa676ca3657ae6ac2af720867622..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_1 { - public char run(char[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_2.j deleted file mode 100644 index 9df1729fc7e7af5b0041aff88a8d85aa337d9177..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_2.java -.class public dxc/junit/opcodes/caload/jm/T_caload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CI)C - .limit stack 3 - .limit locals 4 - - aload_1 -; iload_2 - - caload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_2.java deleted file mode 100644 index fffa0bfb21beb9bf35fe54af345734b94cbe4a9d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_2 { - - public char run(char[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_3.j deleted file mode 100644 index 28233b4e024a5164229f5c8d637b2b0e7705bcb8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_3.java -.class public dxc/junit/opcodes/caload/jm/T_caload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CI)C - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - caload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_3.java deleted file mode 100644 index 4d12ec7425e3f31aa34365423f2da2a7a8e3c3e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_3 { - - public char run(char[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_4.j deleted file mode 100644 index 8d67495fa2e213d6eb9f3da41db77429048b4bcf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_4.java -.class public dxc/junit/opcodes/caload/jm/T_caload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([CD)C - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - caload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_4.java deleted file mode 100644 index 2e9c3e155cb1704170db09d82c9e9e7383ffa3eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_4 { - - public char run(char[] arr, double idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_5.j deleted file mode 100644 index 9a3eb23332bdb66490104dacc6f3f5060c65e3e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_5.java -.class public dxc/junit/opcodes/caload/jm/T_caload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([CJ)C - .limit stack 4 - .limit locals 5 - - aload_1 - lload_2 -; l2i - caload - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_5.java deleted file mode 100644 index 2fde894f8aa35746bf15e447f83c3c064b94a003..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_5 { - - public char run(char[] arr, long idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_6.j deleted file mode 100644 index 549c5fc06e1d208fdce717e19d31b541fa430ba2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_6.java -.class public dxc/junit/opcodes/caload/jm/T_caload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;[CI)C - .limit stack 3 - .limit locals 4 - - aload_1 - iload_3 - - caload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_6.java deleted file mode 100644 index c4b5fb11755f97ef544fbd26271151688960e3a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_6 { - - public char run(Object a, char[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_7.j deleted file mode 100644 index 9c7513a3b95f6c20fdbf75b24e85f5332a2b8395..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_7.java -.class public dxc/junit/opcodes/caload/jm/T_caload_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([D[CI)C - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - caload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_7.java deleted file mode 100644 index 0b93a7d66193b8a4c7153d2626e684cb887df0fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_7 { - - public char run(double[] a, char[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_8.j deleted file mode 100644 index 34f05f1f38ab935783e9a9c15524bdf0fee1b41c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_8.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_8.java -.class public dxc/junit/opcodes/caload/jm/T_caload_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([I[CI)C - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - caload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_8.java deleted file mode 100644 index 41c435d7a5d1fa6764a297c299aea2184ea6a8a6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_8 { - - public char run(int[] a, char[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_9.j deleted file mode 100644 index d0489ae334fa8a36eeb58f54ae5a6efb97f97630..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_caload_9.java -.class public dxc/junit/opcodes/caload/jm/T_caload_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CI)C - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - caload - - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_9.java deleted file mode 100644 index c5c29e6b9c3074e0832e9f9f1e028d33e5b79b6f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/caload/jm/T_caload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.caload.jm; - -public class T_caload_9 { - - public char run(char[] arr, int idx) { - return arr[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/Test_castore.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/Test_castore.java deleted file mode 100644 index c427cd6987dc37efcfe60de980d667307628e0d4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/Test_castore.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.castore.jm.T_castore_1; - -public class Test_castore extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_castore_1 t = new T_castore_1(); - char[] arr = new char[2]; - t.run(arr, 1, 'g'); - assertEquals('g', arr[1]); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_castore_1 t = new T_castore_1(); - char[] arr = new char[2]; - t.run(arr, 0, 'g'); - assertEquals('g', arr[0]); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_castore_1 t = new T_castore_1(); - char[] arr = new char[2]; - try { - t.run(arr, 2, 'g'); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_castore_1 t = new T_castore_1(); - try { - t.run(null, 2, 'g'); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_castore_1 t = new T_castore_1(); - char[] arr = new char[2]; - try { - t.run(arr, -1, 'g'); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, - * char - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, char - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int, - * char - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int, char - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, - * char - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.castore.jm.T_castore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_1.j deleted file mode 100644 index 5936fc57ffd48f40878168f9c308035beae7826d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_1.java -.class public dxc/junit/opcodes/castore/jm/T_castore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CIC)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_1.java deleted file mode 100644 index 011ac3b6356adfc6b39b137e9840c247fa24e374..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_1 { - public void run(char[] arr, int idx, char value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_2.j deleted file mode 100644 index 6589661f3c810044614a82d3d389914005b8bb16..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_2.java -.class public dxc/junit/opcodes/castore/jm/T_castore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CIC)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - ;iload_3 - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_2.java deleted file mode 100644 index b04e35298b2894c1cf3bf44d4898384d86ebff73..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_2 { - - public void run(char[] arr, int idx, char value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_3.j deleted file mode 100644 index 2253cc7f160801acfa2ccb7dd136cfbe1cef863e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_3.java -.class public dxc/junit/opcodes/castore/jm/T_castore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CIC)V - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - iload_3 - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_3.java deleted file mode 100644 index 55be405dde8ba9e3084da58d2b9903cf418454b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_3 { - - public void run(char[] arr, int idx, char value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_4.j deleted file mode 100644 index 11c390f833a9a72c7c0a0ec5181c644eb94560cb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_4.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_4.java -.class public dxc/junit/opcodes/castore/jm/T_castore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([CDC)V - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - iload 4 - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_4.java deleted file mode 100644 index 3666fa1737a6f90a746f60058ddf2c50e275460b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_4 { - - public void run(char[] arr, double idx, char value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_5.j deleted file mode 100644 index 3cfa1497eb9159e05e27cff808c311c5fd3ba44a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_5.java -.class public dxc/junit/opcodes/castore/jm/T_castore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([CIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload 3 -; l2i -; i2s - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_5.java deleted file mode 100644 index 1d43a3d25aef4439417d7a371cfe1ae9ce624c58..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_5 { - - public void run(char[] arr, int idx, long value) { - arr[idx] = (char)value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_6.j deleted file mode 100644 index f5caba32133207cc1e43c2cd5dc93767c8c72eec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_6.java -.class public dxc/junit/opcodes/castore/jm/T_castore_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;IC)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_6.java deleted file mode 100644 index 57ad8831498e20cbb210501b85e03a109b867b9f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_6 { - - public void run(Object a, char[] arr, int idx, char value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_7.j deleted file mode 100644 index 81a790e0d9529c3ec3b9541c90183bef10324d02..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_7.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_7.java -.class public dxc/junit/opcodes/castore/jm/T_castore_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([D[CIC)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_7.java deleted file mode 100644 index 62418ca0be7706917b5bff9104dc4d8a9089b9b5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_7 { - - public void run(double a[], char[] arr, int idx, char value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_8.j deleted file mode 100644 index 8e33f1fe8a72980e7693f333c91f18ddd7a9e65e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_8.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_8.java -.class public dxc/junit/opcodes/castore/jm/T_castore_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([J[CIC)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - castore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_8.java deleted file mode 100644 index d5bfaba0e83db12170aea5104a1f18c77308a9ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_8 { - - public void run(long a[], char[] arr, int idx, char value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_9.j deleted file mode 100644 index 955dc0ecfca42c746e4df4c19f912d71c9d83ad3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_castore_9.java -.class public dxc/junit/opcodes/castore/jm/T_castore_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([CIC)V - .limit stack 3 - .limit locals 4 - - aload_1 - aload_0 - iload_3 - castore - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_9.java deleted file mode 100644 index 097fcfc719d957ca440e82fee7d755a7e018c606..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/castore/jm/T_castore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.castore.jm; - -public class T_castore_9 { - - public void run(char[] arr, int idx, char value) { - arr[idx] = value; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/Test_checkcast.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/Test_checkcast.java deleted file mode 100644 index a6f2350995334dfe68fc77379afe23755a3c173d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/Test_checkcast.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.checkcast.jm.T_checkcast_1; -import dxc.junit.opcodes.checkcast.jm.T_checkcast_2; -import dxc.junit.opcodes.checkcast.jm.T_checkcast_3; -import dxc.junit.opcodes.checkcast.jm.T_checkcast_7; - -public class Test_checkcast extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_checkcast_1 t = new T_checkcast_1(); - String s = ""; - assertEquals(s, t.run(s)); - } - - /** - * @title check null value - */ - public void testN2() { - T_checkcast_1 t = new T_checkcast_1(); - assertNull(t.run(null)); - } - - /** - * @title normal class - */ - public void testN4() { - // @uses dxc.junit.opcodes.checkcast.jm.SubClass - // @uses dxc.junit.opcodes.checkcast.jm.SuperClass - // @uses dxc.junit.opcodes.checkcast.jm.SuperInterface - // @uses dxc.junit.opcodes.checkcast.jm.SuperInterface2 - - T_checkcast_2 t = new T_checkcast_2(); - assertEquals(5, t.run()); - } - - /** - * @title expected ClassCastException - */ - public void testE1() { - T_checkcast_1 t = new T_checkcast_1(); - try { - t.run(this); - fail("expected ClassCastException"); - } catch (ClassCastException iae) { - // expected - } - } - - /** - * @title expected ClassCastException. checkcast [[[Ldxc/junit/opcodes/checkcast/jm/TestStubs$TestStub; - * dalvikvm throws ClassCastException as demanded by checkcast, but - * does not claim a IllegalAccessError to a private class - ok, - * since checkcast does what the spec says it should do. - */ - public void testE2() { - // @uses dxc.junit.opcodes.checkcast.jm.TestStubs$TestStub - try { - T_checkcast_3 t = new T_checkcast_3(); - t.run(); - fail("expected ClassCastException"); - } catch (ClassCastException cce) { - // expected - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE3() { - try { - T_checkcast_7 t = new T_checkcast_7(); - t.run(); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; early resolution - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.checkcast.jm.T_checkcast_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.checkcast.jm.T_checkcast_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.checkcast.jm.T_checkcast_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool type - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.checkcast.jm.T_checkcast_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_1.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_1.j deleted file mode 100644 index 2efe0d667dd758772c35ea6c1ac4d111a3165624..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_1.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Ljava/lang/String; - .limit stack 1 - .limit locals 2 - aload_1 - checkcast java/lang/String - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_1.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_1.java deleted file mode 100644 index c4164574ddd57e92dac552cd3711d6bd236547b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_1 { - - public String run(Object o) { - return (String)o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_2.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_2.j deleted file mode 100644 index 01d2e59e44b4c222152f2c9247cd42b72a5008a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_2.j +++ /dev/null @@ -1,139 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_2.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 20 - .limit locals 2 - - iconst_0 - istore_1 - -; (SubClass instanceof SuperClass) - new dxc/junit/opcodes/checkcast/jm/SubClass - dup - invokespecial dxc/junit/opcodes/checkcast/jm/SubClass.()V - checkcast dxc/junit/opcodes/checkcast/jm/SuperClass - pop - -; (SubClass[] instanceof SuperClass[]) - iconst_1 - anewarray dxc/junit/opcodes/checkcast/jm/SubClass - checkcast [Ldxc/junit/opcodes/checkcast/jm/SuperClass; - pop - -; (SubClass[] instanceof Object) - iconst_1 - anewarray dxc/junit/opcodes/checkcast/jm/SubClass - checkcast java/lang/Object - pop - -; (SubClass instanceof SuperInterface) - new dxc/junit/opcodes/checkcast/jm/SubClass - dup - invokespecial dxc/junit/opcodes/checkcast/jm/SubClass.()V - checkcast dxc/junit/opcodes/checkcast/jm/SuperInterface - pop - - -; !(SuperClass instanceof SubClass) -Label1: - new dxc/junit/opcodes/checkcast/jm/SuperClass - dup - invokespecial dxc/junit/opcodes/checkcast/jm/SuperClass.()V -Label10: - checkcast dxc/junit/opcodes/checkcast/jm/SubClass - pop -Label11: - goto Label2 -Label12: - pop - iinc 1 1 - goto Label2 - -; !(SubClass instanceof SuperInterface2) -Label2: - new dxc/junit/opcodes/checkcast/jm/SubClass - dup - invokespecial dxc/junit/opcodes/checkcast/jm/SubClass.()V -Label20: - checkcast dxc/junit/opcodes/checkcast/jm/SuperInterface2 - pop -Label21: - goto Label3 -Label22: - pop - iinc 1 1 - goto Label3 - -; !(SubClass[] instanceof SuperInterface) -Label3: - iconst_1 - anewarray dxc/junit/opcodes/checkcast/jm/SubClass -Label30: - checkcast dxc/junit/opcodes/checkcast/jm/SuperInterface - pop -Label31: - goto Label4 -Label32: - pop - iinc 1 1 - goto Label4 - -; !(SubClass[] instanceof SubClass) -Label4: - iconst_1 - anewarray dxc/junit/opcodes/checkcast/jm/SubClass -Label40: - checkcast dxc/junit/opcodes/checkcast/jm/SubClass - pop -Label41: - goto Label5 -Label42: - pop - iinc 1 1 - goto Label5 - -; !(SuperClass[] instanceof SubClass[]) -Label5: - iconst_1 - anewarray dxc/junit/opcodes/checkcast/jm/SuperClass -Label50: - checkcast [Ldxc/junit/opcodes/checkcast/jm/SubClass; - pop -Label51: - goto Label6 -Label52: - pop - iinc 1 1 - -Label6: - iload_1 - ireturn - -.catch java/lang/ClassCastException from Label10 to Label11 using Label12 -.catch java/lang/ClassCastException from Label20 to Label21 using Label22 -.catch java/lang/ClassCastException from Label30 to Label31 using Label32 -.catch java/lang/ClassCastException from Label40 to Label41 using Label42 -.catch java/lang/ClassCastException from Label50 to Label51 using Label52 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_2.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_2.java deleted file mode 100644 index 08b8ec8b436c0343262972554c4bdaaac5e07953..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_2 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_3.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_3.j deleted file mode 100644 index 84ec4596a57edaa4533f5f4314225e1a12308ab3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_3.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 3 - .limit locals 4 - aload_0 - checkcast [[[Ldxc/junit/opcodes/checkcast/jm/TestStubs$TestStub; - pop - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_3.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_3.java deleted file mode 100644 index c9c5652396b27fec4b0f0ed37d86f034f2ccbc5b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_3 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.cfh deleted file mode 100644 index 27a40cef90633500154016adca73fa1f2ce050e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.cfh +++ /dev/null @@ -1,191 +0,0 @@ -//@class:dxc/junit/opcodes/checkcast/jm/T_checkcast_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 19, h: 0004: utf8{"java/lang/String"} - // . . . j a v a / l a n g / S t r i n g - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 - // parsed:, offset 66, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 75, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 81, len 47, h: 0007: utf8{"dxc/junit/opcodes/checkcast/jm/T_checkcast_4"} - // . . , d x c / j u n i t / o p c o d e s / c h e c k c a s t / j m / T _ c h e c k c a s t _ 4 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 63 68 65 63 6b 63 61 73 74 2f 6a 6d 2f 54 5f 63 68 65 63 6b 63 61 73 74 5f 34 - // parsed:, offset 128, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0d - // parsed:, offset 133, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 140, len 21, h: 000a: utf8{"T_checkcast_4.java"} - // . . . T _ c h e c k c a s t _ 4 . j a v a - 01 00 12 54 5f 63 68 65 63 6b 63 61 73 74 5f 34 2e 6a 61 76 61 - // parsed:, offset 161, len 3, h: 000b: type{java.lang.String} - // . . . - 07 00 04 - // parsed:, offset 164, len 41, h: 000c: utf8{"(Ljava/lang/Object;)Ljava/lang/String;"} - // . . & ( L j a v a / l a n g / O b j e c t ; ) L j a v a / l a n g / S t r i n g ; - 01 00 26 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 205, len 6, h: 000d: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 211, len 3, h: 000e: type{dxc.junit.opcodes.checkcast.jm.T_checkcast_4} - // . . . - 07 00 07 - // parsed:, offset 214, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 217, len 0, h: end constant_pool -// parsed:, offset 217, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 219, len 2, h: this_class: type{dxc.junit.opcodes.checkcast.jm.T_checkcast_4} -// . . - 00 0e -// parsed:, offset 221, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 223, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 225, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 227, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 229, len:72,desc: ()V -// parsed:, offset 229, len 0, h: methods[0]: - // parsed:, offset 229, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 231, len 2, h: name: - // . . - 00 05 - // parsed:, offset 233, len 2, h: descriptor: ()V - // . . - 00 0d - // parsed:, offset 235, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 237, len 0, h: attributes[0]: - // parsed:, offset 237, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 239, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 243, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 245, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 247, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 256, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 258, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 260, len 0, h: end attributes[0] -// parsed:, offset 260, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 260, len:41,desc: (Ljava/lang/Object;)Ljava/lang/String; -// parsed:, offset 260, len 0, h: methods[1]: - // parsed:, offset 260, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 262, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 264, len 2, h: descriptor: (Ljava/lang/Object;)Ljava/lang/String; - // . . - 00 0c - // parsed:, offset 266, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 268, len 0, h: attributes[0]: - // parsed:, offset 268, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 270, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 274, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 276, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 278, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 3, h: 0001: checkcast type{java.lang.String} - // . . . -//@mod c0 00 0b - c0 01 0b - // parsed:, offset 4, len 1, h: 0004: areturn - // . - b0 - // parsed:, offset 287, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 289, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 291, len 0, h: end attributes[0] -// parsed:, offset 291, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Ljava/lang/String; -// parsed:, offset 291, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 293, len 0, h: attributes[0]: - // parsed:, offset 293, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 295, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 299, len 2, h: source: utf8{"T_checkcast_4.java"} - // . . - 00 0a -// parsed:, offset 301, len 0, h: end attributes[0] -// parsed:, offset 301, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.j deleted file mode 100644 index 906630280f436e76beae15383c3258031c8f0440..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_4.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Ljava/lang/String; - .limit stack 1 - .limit locals 2 - aload_1 - checkcast java/lang/String - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.java deleted file mode 100644 index e5d5fbce959a78b70d43dd2912b0aab5694d78c5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_4 { - - public String run(Object o) { - return (String)o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_5.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_5.j deleted file mode 100644 index b4e645b12d84c33a3dbd5cb37537737121c5372a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_5.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_5.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Ljava/lang/String; - .limit stack 1 - .limit locals 2 - fconst_1 - checkcast java/lang/String - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_5.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_5.java deleted file mode 100644 index afb4ba2514c4bb62787f2b8357af6d311d44582a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_5 { - - public String run(Object o) { - return (String)o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_6.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_6.j deleted file mode 100644 index 7ae206ca5f3421cd4c7fc3ec73e09b9693fd2c03..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_6.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_6.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Ljava/lang/String; - .limit stack 1 - .limit locals 2 -; aload_1 - checkcast java/lang/String - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_6.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_6.java deleted file mode 100644 index 6389d8532fb49257e1f75ad7a9d07c38730b5ba8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_6 { - - public String run(Object o) { - return (String)o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_7.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_7.j deleted file mode 100644 index b3ad5685c6f4f892650884a56859968b7e3c3d16..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_7.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_7.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 3 - .limit locals 4 - aload_0 - checkcast [[[Ldxc/junit/opcodes/checkcast/jm/foobar1; - pop - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_7.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_7.java deleted file mode 100644 index 98167f10c1d60673f0c4c06999f6d56a1d48323e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_7 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.cfh b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.cfh deleted file mode 100644 index fa33a5fd91b5dea14dfa2945844b8fc9522c48d1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/checkcast/jm/T_checkcast_8 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0011 -// . . - 00 11 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 10 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 3, h: 0003: type{java.lang.String} - // . . . - 07 00 0c - // parsed:, offset 37, len 47, h: 0004: utf8{"dxc/junit/opcodes/checkcast/jm/T_checkcast_8"} - // . . , d x c / j u n i t / o p c o d e s / c h e c k c a s t / j m / T _ c h e c k c a s t _ 8 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 63 68 65 63 6b 63 61 73 74 2f 6a 6d 2f 54 5f 63 68 65 63 6b 63 61 73 74 5f 38 - // parsed:, offset 84, len 13, h: 0005: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 97, len 5, h: 0006: int{0x0000007b / 123} - // . . . . { - 03 00 00 00 7b - // parsed:, offset 102, len 9, h: 0007: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 111, len 6, h: 0008: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 117, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 07 00 0e - // parsed:, offset 122, len 21, h: 000a: utf8{"T_checkcast_8.java"} - // . . . T _ c h e c k c a s t _ 8 . j a v a - 01 00 12 54 5f 63 68 65 63 6b 63 61 73 74 5f 38 2e 6a 61 76 61 - // parsed:, offset 143, len 7, h: 000b: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 150, len 19, h: 000c: utf8{"java/lang/String"} - // . . . j a v a / l a n g / S t r i n g - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 - // parsed:, offset 169, len 41, h: 000d: utf8{"(Ljava/lang/Object;)Ljava/lang/String;"} - // . . & ( L j a v a / l a n g / O b j e c t ; ) L j a v a / l a n g / S t r i n g ; - 01 00 26 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 210, len 6, h: 000e: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 216, len 3, h: 000f: type{dxc.junit.opcodes.checkcast.jm.T_checkcast_8} - // . . . - 07 00 04 - // parsed:, offset 219, len 3, h: 0010: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 222, len 0, h: end constant_pool -// parsed:, offset 222, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 224, len 2, h: this_class: type{dxc.junit.opcodes.checkcast.jm.T_checkcast_8} -// . . - 00 0f -// parsed:, offset 226, len 2, h: super_class: type{java.lang.Object} -// . . - 00 10 -// parsed:, offset 228, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 230, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 232, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 234, len:75,desc: ()V -// parsed:, offset 234, len 0, h: methods[0]: - // parsed:, offset 234, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 236, len 2, h: name: - // . . - 00 07 - // parsed:, offset 238, len 2, h: descriptor: ()V - // . . - 00 0e - // parsed:, offset 240, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 244, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 248, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 250, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 252, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 261, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 263, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 265, len 0, h: end attributes[0] -// parsed:, offset 265, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 265, len:44,desc: (Ljava/lang/Object;)Ljava/lang/String; -// parsed:, offset 265, len 0, h: methods[1]: - // parsed:, offset 265, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 267, len 2, h: name: run - // . . - 00 08 - // parsed:, offset 269, len 2, h: descriptor: (Ljava/lang/Object;)Ljava/lang/String; - // . . - 00 0d - // parsed:, offset 271, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 273, len 0, h: attributes[0]: - // parsed:, offset 273, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 275, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 279, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 281, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 283, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 2, h: 0000: ldc #+0000007b - // . . - 12 06 - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 1, h: 0003: aload_1 // 01 - // + - 2b - // parsed:, offset 4, len 3, h: 0004: checkcast type{java.lang.String} - // . . . -//@mod c0 00 03 - c0 00 06 - // parsed:, offset 7, len 1, h: 0007: areturn - // . - b0 - // parsed:, offset 295, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 297, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 299, len 0, h: end attributes[0] -// parsed:, offset 299, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Ljava/lang/String; -// parsed:, offset 299, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 301, len 0, h: attributes[0]: - // parsed:, offset 301, len 2, h: name: SourceFile - // . . - 00 05 - // parsed:, offset 303, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 307, len 2, h: source: utf8{"T_checkcast_8.java"} - // . . - 00 0a -// parsed:, offset 309, len 0, h: end attributes[0] -// parsed:, offset 309, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.j b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.j deleted file mode 100644 index bf537dee15621a78f86f4acd2eed78cb0961deee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_checkcast_8.java -.class public dxc/junit/opcodes/checkcast/jm/T_checkcast_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Ljava/lang/String; - .limit stack 1 - .limit locals 2 - - ldc 123 - pop - - aload_1 - checkcast java/lang/String - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.java deleted file mode 100644 index cce0c88430751cfb26defaf03cc219ebc79f1a42..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/T_checkcast_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - -public class T_checkcast_8 { - - public String run(Object o) { - return (String)o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/TestStubs.java deleted file mode 100644 index 97476a76226de4cdbdf19941d6be94428147db6e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/checkcast/jm/TestStubs.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.checkcast.jm; - - -public class TestStubs { - @SuppressWarnings("unused") - private class TestStub { - // testE2 - } -} - -interface SuperInterface{ - -} - -interface SuperInterface2{ - -} - -class SuperClass implements SuperInterface{ - -} - -class SubClass extends SuperClass{ - -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/Test_d2f.java b/tools/dx-tests/src/dxc/junit/opcodes/d2f/Test_d2f.java deleted file mode 100644 index 3571b8ac74fd4cfa3e1363780d6928b71caafe77..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/Test_d2f.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2f; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.d2f.jm.T_d2f_1; - -public class Test_d2f extends DxTestCase { - - /** - * @title Argument = 2.71 - */ - public void testN1() { - T_d2f_1 t = new T_d2f_1(); - assertEquals(2.71f, t.run(2.71d)); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_d2f_1 t = new T_d2f_1(); - assertEquals(1f, t.run(1d)); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_d2f_1 t = new T_d2f_1(); - assertEquals(-1f, t.run(-1d)); - } - - /** - * @title Argument = Double.MAX_VALUE - */ - public void testB1() { - T_d2f_1 t = new T_d2f_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Double.MAX_VALUE)); - } - - /** - * @title Argument = Double.MIN_VALUE - */ - public void testB2() { - T_d2f_1 t = new T_d2f_1(); - assertEquals(0f, t.run(Double.MIN_VALUE)); - } - - /** - * @title Argument = -0 - */ - public void testB3() { - T_d2f_1 t = new T_d2f_1(); - assertEquals(-0f, t.run(-0d)); - } - - /** - * @title Argument = NaN - */ - public void testB4() { - T_d2f_1 t = new T_d2f_1(); - assertTrue(Float.isNaN(t.run(Double.NaN))); - } - - /** - * @title Argument = POSITIVE_INFINITY - */ - public void testB5() { - T_d2f_1 t = new T_d2f_1(); - assertTrue(Float.isInfinite(t.run(Double.POSITIVE_INFINITY))); - } - - /** - * @title Argument = NEGATIVE_INFINITY - */ - public void testB6() { - T_d2f_1 t = new T_d2f_1(); - assertTrue(Float.isInfinite(t.run(Double.NEGATIVE_INFINITY))); - } - - - /** - * @title Argument = -Double.MIN_VALUE - */ - public void testB7() { - T_d2f_1 t = new T_d2f_1(); - assertEquals(-0f, t.run(-4.9E-324d)); - } - - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.d2f.jm.T_d2f_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.d2f.jm.T_d2f_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.d2f.jm.T_d2f_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.d2f.jm.T_d2f_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_1.j b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_1.j deleted file mode 100644 index 461f86a0af90170c1ae5573f704becbfba706568..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2f_1.java -.class public dxc/junit/opcodes/d2f/jm/T_d2f_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)F - .limit stack 3 - .limit locals 3 - dload_1 - d2f - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_1.java b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_1.java deleted file mode 100644 index e63f2c46c90323559c9c5e7d0ff8681ad55d3fed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2f.jm; - -public class T_d2f_1 { - - public float run(double a) { - return (float)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_2.j b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_2.j deleted file mode 100644 index a65c7ce61e3ba0218d7351a048c94559136096ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2f_2.java -.class public dxc/junit/opcodes/d2f/jm/T_d2f_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(D)F - .limit stack 3 - .limit locals 3 - -; dload_1 - d2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_2.java b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_2.java deleted file mode 100644 index 5dca9a29bbc7759f9e3a5de6d09eb19dc863d5a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2f.jm; - -public class T_d2f_2 { - - public float run(double a) { - return (float)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_3.j b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_3.j deleted file mode 100644 index 4c0216883e754e16bb2045b5d5674b6c5d0b8a84..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2f_3.java -.class public dxc/junit/opcodes/d2f/jm/T_d2f_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(F)F - .limit stack 2 - .limit locals 3 - - fload_1 - d2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_3.java b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_3.java deleted file mode 100644 index 6be13253d3f63c8772808332301a367e346e8dc9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2f.jm; - -public class T_d2f_3 { - - public float run(float a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_4.j b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_4.j deleted file mode 100644 index dc79276e284ca141443e949093680e7345fbc9b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2f_4.java -.class public dxc/junit/opcodes/d2f/jm/T_d2f_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)D - .limit stack 2 - .limit locals 3 - - lload_1 - d2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_4.java b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_4.java deleted file mode 100644 index 240dfea184133fcc697908cf2b7515b7a7f43062..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2f.jm; - -public class T_d2f_4 { - - public float run(long a) { - return (float) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_5.j b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_5.j deleted file mode 100644 index c7436374521b7590de290d96aa69383fd23d9bee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2f_5.java -.class public dxc/junit/opcodes/d2f/jm/T_d2f_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)F - .limit stack 2 - .limit locals 3 - - aload_0 - d2f - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_5.java b/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_5.java deleted file mode 100644 index b9a986be2f2d57a3886e7533f96794c44efe1e09..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2f/jm/T_d2f_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2f.jm; - -public class T_d2f_5 { - - public float run(double a) { - return (float)a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/Test_d2i.java b/tools/dx-tests/src/dxc/junit/opcodes/d2i/Test_d2i.java deleted file mode 100644 index a316201c15d68c665cc441cb4642d403e24924ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/Test_d2i.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2i; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.d2i.jm.T_d2i_1; - -public class Test_d2i extends DxTestCase { - - /** - * @title Argument = 2.9999999d - */ - public void testN1() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(2, t.run(2.9999999d)); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(1, t.run(1d)); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(-1, t.run(-1d)); - } - - /** - * @title Argument = -0 - */ - public void testB1() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(0, t.run(-0d)); - } - - /** - * @title Argument = Double.MAX_VALUE - */ - public void testB2() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(Integer.MAX_VALUE, t.run(Double.MAX_VALUE)); - } - - /** - * @title Argument = Double.MIN_VALUE - */ - public void testB3() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(0, t.run(Double.MIN_VALUE)); - } - - /** - * @title Argument = NaN - */ - public void testB4() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(0, t.run(Double.NaN)); - } - - /** - * @title Argument = POSITIVE_INFINITY - */ - public void testB5() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(Integer.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); - } - - /** - * @title Argument = NEGATIVE_INFINITY - */ - public void testB6() { - T_d2i_1 t = new T_d2i_1(); - assertEquals(Integer.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.d2i.jm.T_d2i_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.d2i.jm.T_d2i_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.d2i.jm.T_d2i_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.d2i.jm.T_d2i_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_1.j b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_1.j deleted file mode 100644 index d14f823e1431f0e57f4c0d8477140c64b970c55d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2i_1.java -.class public dxc/junit/opcodes/d2i/jm/T_d2i_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)I - .limit stack 3 - .limit locals 3 - dload_1 - d2i - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_1.java b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_1.java deleted file mode 100644 index 5d55cac63825414c64468e03151188e7f8e5521c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2i.jm; - -public class T_d2i_1 { - - public int run(double a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_2.j b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_2.j deleted file mode 100644 index f0bd7985b7cac30806d1847003c0d9724fd012c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2i_2.java -.class public dxc/junit/opcodes/d2i/jm/T_d2i_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(D)I - .limit stack 3 - .limit locals 3 - -; dload_1 - d2i - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_2.java b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_2.java deleted file mode 100644 index 6228cc37d2588224d61d94076ebdbd4da1720ee7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2i.jm; - -public class T_d2i_2 { - - public int run(double a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_3.j b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_3.j deleted file mode 100644 index d9be73a0434efe12c0f761f5b4dce9d4c7b5210a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_3.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2i_3.java -.class public dxc/junit/opcodes/d2i/jm/T_d2i_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(F)I - .limit stack 2 - .limit locals 3 - - fload_1 - ; d2f - d2i - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_3.java b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_3.java deleted file mode 100644 index a83ae18adb23a5cd855807cc2946710462439104..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2i.jm; - -public class T_d2i_3 { - - public int run(float a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_4.j b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_4.j deleted file mode 100644 index beb0d2f5594f6154017cb595dd156688dba666ec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2i_4.java -.class public dxc/junit/opcodes/d2i/jm/T_d2i_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(J)I - .limit stack 2 - .limit locals 3 - - lload_1 - - ;l2f - d2i - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_4.java b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_4.java deleted file mode 100644 index 78aba37865eed1726694702e59a332b4fd5a1a8d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2i.jm; - -public class T_d2i_4 { - - public int run(long a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_5.j b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_5.j deleted file mode 100644 index 9816ceb9ac5f211ca3799031a824b56b1747c5d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2i_5.java -.class public dxc/junit/opcodes/d2i/jm/T_d2i_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)I - .limit stack 2 - .limit locals 3 - - aload_0 - d2i - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_5.java b/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_5.java deleted file mode 100644 index cf5b3ec6f83fd77f1d5f55374e5c03ffda3d4e02..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2i/jm/T_d2i_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2i.jm; - -public class T_d2i_5 { - - public int run(double a) { - return (int)a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/Test_d2l.java b/tools/dx-tests/src/dxc/junit/opcodes/d2l/Test_d2l.java deleted file mode 100644 index d1bbd05ee5ed722d2c5410b19586f453cc6fb3b7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/Test_d2l.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2l; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.d2l.jm.T_d2l_1; - -public class Test_d2l extends DxTestCase { - - /** - * @title Argument = 2.9999999 - */ - public void testN1() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(2l, t.run(2.9999999d)); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(1l, t.run(1d)); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(-1l, t.run(-1d)); - } - - /** - * @title Argument = Double.MAX_VALUE - */ - public void testB1() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(Long.MAX_VALUE, t.run(Double.MAX_VALUE)); - } - - /** - * @title Argument = Double.MIN_VALUE - */ - public void testB2() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(0, t.run(Double.MIN_VALUE)); - } - - /** - * @title Argument = -0 - */ - public void testB3() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(0l, t.run(-0)); - } - - /** - * @title Argument = NaN - */ - public void testB4() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(0l, t.run(Double.NaN)); - } - - /** - * @title Argument = POSITIVE_INFINITY - */ - public void testB5() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(Long.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); - } - - /** - * @title Argument = NEGATIVE_INFINITY - */ - public void testB6() { - T_d2l_1 t = new T_d2l_1(); - assertEquals(Long.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.d2l.jm.T_d2l_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.d2l.jm.T_d2l_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.d2l.jm.T_d2l_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.d2l.jm.T_d2l_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_1.j b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_1.j deleted file mode 100644 index 10de4b235428f7f6e025a38cf2f30f398bb83081..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2l_1.java -.class public dxc/junit/opcodes/d2l/jm/T_d2l_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)J - .limit stack 3 - .limit locals 3 - dload_1 - d2l - lreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_1.java b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_1.java deleted file mode 100644 index b40863abc6faaa43d9ed7ad0b5d16b7dc84fd290..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2l.jm; - -public class T_d2l_1 { - - public long run(double a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_2.j b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_2.j deleted file mode 100644 index 37831f7d71a98971299ccfa79fb63dde6d252be2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2l_2.java -.class public dxc/junit/opcodes/d2l/jm/T_d2l_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(D)J - .limit stack 3 - .limit locals 3 - -; dload_1 - d2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_2.java b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_2.java deleted file mode 100644 index 9985d3e5d585aaa6aff07a3e4fcce8d2db11654f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2l.jm; - -public class T_d2l_2 { - - public long run(double a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_3.j b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_3.j deleted file mode 100644 index 0476a8b642962c5fc5d671afd0e4d5050ed8b0d3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2l_3.java -.class public dxc/junit/opcodes/d2l/jm/T_d2l_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(F)J - .limit stack 2 - .limit locals 3 - - fload_1 - d2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_3.java b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_3.java deleted file mode 100644 index 96d73bb8ece216a47cb6691cc3f1d23261a7d59a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2l.jm; - -public class T_d2l_3 { - - public long run(float a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_4.j b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_4.j deleted file mode 100644 index c0551c20dd55948e5b7a936652e649cf6260f3a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2l_4.java -.class public dxc/junit/opcodes/d2l/jm/T_d2l_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)J - .limit stack 3 - .limit locals 3 - - lload_1 -; l2d - d2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_4.java b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_4.java deleted file mode 100644 index 0bb55a36ff4bb7163133d9c4daf99ab310962582..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2l.jm; - -public class T_d2l_4 { - - public long run(long a) { - return (long)(double)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_5.j b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_5.j deleted file mode 100644 index 262b187415f293f4b974992aff9b34c38957467c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_d2l_5.java -.class public dxc/junit/opcodes/d2l/jm/T_d2l_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)J - .limit stack 2 - .limit locals 3 - - aload_0 - d2l - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_5.java b/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_5.java deleted file mode 100644 index 049e587b85226dc7fd326acbcfccde6f76500821..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/d2l/jm/T_d2l_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.d2l.jm; - -public class T_d2l_5 { - - public long run(double a) { - return (long)a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/Test_dadd.java b/tools/dx-tests/src/dxc/junit/opcodes/dadd/Test_dadd.java deleted file mode 100644 index 891f6acd0198f5d7ccf62621890be73112e3a8db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/Test_dadd.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dadd; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dadd.jm.T_dadd_1; - -public class Test_dadd extends DxTestCase { - - /** - * @title Arguments = 2.7d, 3.14d - */ - public void testN1() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(5.84d, t.run(2.7d, 3.14d)); - } - - /** - * @title Arguments = 0, -3.14d - */ - public void testN2() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(-3.14d, t.run(0, -3.14d)); - } - - /** - * @title Arguments = -3.14d, -2.7d - */ - public void testN3() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(-5.84d, t.run(-3.14d, -2.7d)); - } - - /** - * @title Arguments = Double.MAX_VALUE, Double.NaN - */ - public void testB1() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.NEGATIVE_INFINITY - */ - public void testB2() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, - Double.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.POSITIVE_INFINITY - */ - public void testB3() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, - Double.POSITIVE_INFINITY)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, -2.7d - */ - public void testB4() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, - -2.7d)); - } - - /** - * @title Arguments = +0, -0 - */ - public void testB5() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(+0d, t.run(+0d, -0d)); - } - - /** - * @title Arguments = -0d, -0d - */ - public void testB6() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(-0d, t.run(-0d, -0d)); - } - - /** - * @title Arguments = -2.7d, 2.7d - */ - public void testB7() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(+0d, t.run(-2.7d, 2.7d)); - } - - /** - * @title Arguments = Double.MAX_VALUE, Double.MAX_VALUE - */ - public void testB8() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(Double.MAX_VALUE, - Double.MAX_VALUE)); - } - - /** - * @title Arguments = Double.MIN_VALUE, -4.9E-324 - */ - public void testB9() { - T_dadd_1 t = new T_dadd_1(); - assertEquals(0d, t.run(Double.MIN_VALUE, -4.9E-324)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dadd.jm.T_dadd_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dadd.jm.T_dadd_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dadd.jm.T_dadd_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dadd.jm.T_dadd_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_1.j deleted file mode 100644 index 34c23af2b23a4806088574829b30c8189296428f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dadd_1.java -.class public dxc/junit/opcodes/dadd/jm/T_dadd_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - dload_3 - dadd - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_1.java deleted file mode 100644 index 5edfe5c522ee8080152b5d119c3a8a07a5157452..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dadd.jm; - -public class T_dadd_1 { - - public double run(double a, double b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_2.j deleted file mode 100644 index bcfa2a94f4c2994711dd7e0d8f0069168e3a3107..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dadd_2.java -.class public dxc/junit/opcodes/dadd/jm/T_dadd_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - ; dload_3 - dadd - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_2.java deleted file mode 100644 index bc97e0dfb5daea6dad2e278268948d0bb86374af..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dadd.jm; - -public class T_dadd_2 { - - public double run(double a, double b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_3.j deleted file mode 100644 index 1318e2dd18b92bf17ed7f84b2b9997e0db3e1770..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dadd_3.java -.class public dxc/junit/opcodes/dadd/jm/T_dadd_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)D - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - dadd - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_3.java deleted file mode 100644 index 640d8261f99871536d5f4e4d21dd89b545d64579..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dadd.jm; - -public class T_dadd_3 { - - public double run(double a, double b) { - return a+(double)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_4.j deleted file mode 100644 index da1c93fe7f9ba6857238a5b61973d1a9670bbb97..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dadd_4.java -.class public dxc/junit/opcodes/dadd/jm/T_dadd_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JD)D - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 - dadd - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_4.java deleted file mode 100644 index 8e0f36d3214355de66d283998616fe9649d2f3eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dadd.jm; - -public class T_dadd_4 { - - public double run(double a, double b) { - return (double)a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_5.j deleted file mode 100644 index dfea13144460a0aa2d98126a344ba1e62626553a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dadd_5.java -.class public dxc/junit/opcodes/dadd/jm/T_dadd_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - - dload_1 - aload_0 - dadd - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_5.java deleted file mode 100644 index fadd2eaeb1f80ae9bf7fd22359b91102f46f6590..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dadd/jm/T_dadd_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dadd.jm; - -public class T_dadd_5 { - - public double run(double a, double b) { - return a+b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/Test_daload.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/Test_daload.java deleted file mode 100644 index 9fd9893b93d458d1add69f8eecc998f1efb27916..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/Test_daload.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.daload.jm.T_daload_1; - -public class Test_daload extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_daload_1 t = new T_daload_1(); - double[] arr = new double[2]; - arr[1] = 3.1415d; - assertEquals(3.1415d, t.run(arr, 1)); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_daload_1 t = new T_daload_1(); - double[] arr = new double[2]; - arr[0] = 3.1415d; - assertEquals(3.1415d, t.run(arr, 0)); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_daload_1 t = new T_daload_1(); - double[] arr = new double[2]; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_daload_1 t = new T_daload_1(); - try { - t.run(null, 2); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_daload_1 t = new T_daload_1(); - double[] arr = new double[2]; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float[], int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.daload.jm.T_daload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_1.j deleted file mode 100644 index 51f291f7ff7119f40f1e924acbc829486cf6208f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_1.java -.class public dxc/junit/opcodes/daload/jm/T_daload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DI)D - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - - daload - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_1.java deleted file mode 100644 index 652138af35ddb2fc6b4981b1545ac2ad0dbc28b5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_1 { - public double run(double[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_2.j deleted file mode 100644 index 21d2c6d8fe4b4c4e458be6f64f72547a437dc96a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_2.java -.class public dxc/junit/opcodes/daload/jm/T_daload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DI)D - .limit stack 3 - .limit locals 4 - - aload_1 -; iload_2 - - daload - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_2.java deleted file mode 100644 index 666682d296f9188df0167a58b427a3ea91c64228..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_2 { - - public double run(double[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_3.j deleted file mode 100644 index 5a695a60be8c33ef08de6a3c4a436585cb684a8e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_3.java -.class public dxc/junit/opcodes/daload/jm/T_daload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DI)D - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - daload - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_3.java deleted file mode 100644 index 2f8da591cb7013ec69f160035edd86ac09808331..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_3 { - - public double run(double[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_4.j deleted file mode 100644 index d7bd17ed90c8140eae3be5a520ab1364a73ffb8b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_4.java -.class public dxc/junit/opcodes/daload/jm/T_daload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([DD)D - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - daload - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_4.java deleted file mode 100644 index 9572731fe14ff8eddf22b1846c51b4debca6c29d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_4 { - - public double run(double[] arr, double idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_5.j deleted file mode 100644 index f2025aad364dee31490fc63a2e1d888621ea5c46..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_5.java -.class public dxc/junit/opcodes/daload/jm/T_daload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([DJ)D - .limit stack 4 - .limit locals 5 - - aload_1 - lload_2 -; l2f - daload - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_5.java deleted file mode 100644 index 5dd8ee1a500070c81e4215b3c2488a6726697111..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_5 { - - public double run(double[] arr, long idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_6.j deleted file mode 100644 index 52caafd2663c05c0747d70b7672145888de27426..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_6.java -.class public dxc/junit/opcodes/daload/jm/T_daload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;[DI)D - .limit stack 3 - .limit locals 4 - - aload_1 - iload_3 - - daload - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_6.java deleted file mode 100644 index 3632e5b21d4a876ef8ffd69c6def5ff653e84640..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_6 { - - public double run(Object a, double[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_7.j deleted file mode 100644 index 694971e7d7e2cde99803837d8125b767d792a667..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_7.java -.class public dxc/junit/opcodes/daload/jm/T_daload_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([D[FI)D - .limit stack 2 - .limit locals 4 - aload_2 - iload_3 - daload - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_7.java deleted file mode 100644 index eac7cd2890744e71cdcd645f6e111dc2b5357433..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_7 { - - public double run(double[] a, double[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_8.j deleted file mode 100644 index ef9a1a36be79c702fd3823920106177768d00e4c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_8.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_8.java -.class public dxc/junit/opcodes/daload/jm/T_daload_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([J[DI)D - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - daload - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_8.java deleted file mode 100644 index 994a158982c492fbb7430745790a49e73d0f65c5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_8 { - - public double run(long[] a, double[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_9.j deleted file mode 100644 index fa0ef03c78c113e2ab42b337ea937e9dd0fdfbfa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_daload_9.java -.class public dxc/junit/opcodes/daload/jm/T_daload_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DI)D - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - daload - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_9.java deleted file mode 100644 index 440e7a2dcce70333dc70511bbdad6f2908c0ce96..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/daload/jm/T_daload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.daload.jm; - -public class T_daload_9 { - - public double run(double[] arr, int idx) { - return arr[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/Test_dastore.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/Test_dastore.java deleted file mode 100644 index 223d812b76aa46d40a039235b37eabab9e427db6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/Test_dastore.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dastore.jm.T_dastore_1; - -public class Test_dastore extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_dastore_1 t = new T_dastore_1(); - double[] arr = new double[2]; - t.run(arr, 1, 2.7d); - assertEquals(2.7d, arr[1]); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_dastore_1 t = new T_dastore_1(); - double[] arr = new double[2]; - t.run(arr, 0, 2.7d); - assertEquals(2.7d, arr[0]); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_dastore_1 t = new T_dastore_1(); - double[] arr = new double[2]; - try { - t.run(arr, 2, 2.7d); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_dastore_1 t = new T_dastore_1(); - try { - t.run(null, 2, 2.7d); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_dastore_1 t = new T_dastore_1(); - double[] arr = new double[2]; - try { - t.run(arr, -1, 2.7d); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, - * double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, - * double - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float[], int, - * double - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int, - * double - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, - * double - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.dastore.jm.T_dastore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_1.j deleted file mode 100644 index 5088f5591b05f696fd02453a64aeb1ec1c513e82..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_1.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DID)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - dload_3 - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_1.java deleted file mode 100644 index 927890ed909101c1cabdcc4ae84cd08747b0d6fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_1 { - public void run(double[] arr, int idx, double value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_2.j deleted file mode 100644 index 2e663f6633eca1fee3cba101e8b4e987c6afd36a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_2.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DID)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_2 - ;dload_3 - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_2.java deleted file mode 100644 index fac0a987c11842c36d3998c4edf26efcc7cfe702..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_2 { - - public void run(double[] arr, int idx, double value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_3.j deleted file mode 100644 index a2a2b00ff33d62c425ea0d11a333ed0dd808bafa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_3.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DID)V - .limit stack 3 - .limit locals 5 - - ;aload_1 - iload_2 - dload_3 - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_3.java deleted file mode 100644 index c6fc58ca2efd75c4cf7705c8651437e5c0ba67c0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_3 { - - public void run(double[] arr, int idx, double value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_4.j deleted file mode 100644 index 38e7babdbe5288a9e95b6fa0a57911af69f4664e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_4.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([DDD)V - .limit stack 6 - .limit locals 6 - - aload_1 - dload_2 -; d2i - dload 4 - - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_4.java deleted file mode 100644 index 4d368a2e0e48b95d22280b945e77b447bf67bc5f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_4 { - - public void run(double[] arr, double idx, double value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_5.j deleted file mode 100644 index cf5f55ea4c799523332e2a6e26f62962567b25e7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_5.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([DIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload_3 -; l2f - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_5.java deleted file mode 100644 index c5b7ff88d0512b56eb4eede0cf41f365b6f06713..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_5 { - - public void run(double[] arr, int idx, double value) { - arr[idx] = (double)value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_6.j deleted file mode 100644 index f3eace30a5bb51ac60566a5399f56f9dade9fdda..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_6.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;ID)V - .limit stack 4 - .limit locals 6 - - aload_1 - iload_2 - dload_3 - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_6.java deleted file mode 100644 index cbbf39869b2b3b210a58127b86f7db2016b8bac2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_6 { - - public void run(Object a, double[] arr, int idx, double value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_7.j deleted file mode 100644 index 0ad936945cc8a393fb33e11c2f7fb6ed5d66a7a9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_7.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_7.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([D[FID)V - .limit stack 4 - .limit locals 6 - - aload_2 - iload_3 - dload 4 - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_7.java deleted file mode 100644 index f6225dfd9dedd6f282bdac574210b4be7a040804..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_7 { - - public void run(double a[], float[] arr, int idx, double value) { - a[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_8.j deleted file mode 100644 index c04e9a172b729f9b9ddeba290fb436731b3b1ffe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_8.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_8.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([J[DID)V - .limit stack 4 - .limit locals 6 - - aload_1 - iload_3 - dload 4 - dastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_8.java deleted file mode 100644 index 705e711d8285cc212e6ed9518364344552bdbc2a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_8 { - - public void run(long a[], double[] arr, int idx, double value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_9.j deleted file mode 100644 index b8ef436311cfb0b0e04f95dc6848ef98b76b3921..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dastore_9.java -.class public dxc/junit/opcodes/dastore/jm/T_dastore_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([DID)V - .limit stack 4 - .limit locals 5 - - aload_1 - aload_0 - dload_3 - dastore - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_9.java deleted file mode 100644 index af682a1b23293b86ff7e3e83da20ed1eedcc0966..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dastore/jm/T_dastore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dastore.jm; - -public class T_dastore_9 { - - public void run(double[] arr, int idx, double value) { - arr[idx] = value; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/Test_dcmpg.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/Test_dcmpg.java deleted file mode 100644 index bb99cd79dbe2d6cf7727784bafd8ad5f71b97c0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/Test_dcmpg.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpg; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dcmpg.jm.T_dcmpg_1; - -public class Test_dcmpg extends DxTestCase { - - /** - * @title Arguments = 3.14d, 2.7d - */ - public void testN1() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(1, t.run(3.14d, 2.7d)); - } - - /** - * @title Arguments = -3.14d, 2.7d - */ - public void testN2() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(-1, t.run(-3.14d, 2.7d)); - } - - /** - * @title Arguments = 3.14, 3.14 - */ - public void testN3() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(0, t.run(3.14d, 3.14d)); - } - - /** - * @title Arguments = Double.NaN, Double.MAX_VALUE - */ - public void testB1() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(1, t.run(Double.NaN, Double.MAX_VALUE)); - } - - /** - * @title Arguments = +0, -0 - */ - public void testB2() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(0, t.run(+0f, -0f)); - } - - /** - * @title Arguments = Double.NEGATIVE_INFINITY, Double.MIN_VALUE - */ - public void testB3() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALUE - */ - public void testB4() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.MAX_VALUE)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.NEGATIVE_INFINITY - */ - public void testB5() { - T_dcmpg_1 t = new T_dcmpg_1(); - assertEquals(1, t.run(Double.POSITIVE_INFINITY, - Double.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dcmpg.jm.T_dcmpg_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dcmpg.jm.T_dcmpg_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dcmpg.jm.T_dcmpg_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dcmpg.jm.T_dcmpg_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_1.j deleted file mode 100644 index 788ed13aec1b013ea1e848283c13742f8c42c5ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_1.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpg_1.java -.class public dxc/junit/opcodes/dcmpg/jm/T_dcmpg_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)I - .limit stack 4 - .limit locals 6 - - dload_1 - dload_3 - - dcmpg - dup - ifeq Label0 - ifgt Label1 - - iconst_m1 - ireturn - - Label0: - iconst_0 - ireturn - - Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_1.java deleted file mode 100644 index 4b9e6c192b20083fe11a65bd79b23398932556d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_1.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpg.jm; - -public class T_dcmpg_1 { - - public int run(double a, double b) { - if(a > b) - return 1; - if(a == b) - return 0; - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_2.j deleted file mode 100644 index e8d237d55d9b461610142001e22b945cb1b29352..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_2.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpg_2.java -.class public dxc/junit/opcodes/dcmpg/jm/T_dcmpg_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DD)Z - .limit stack 4 - .limit locals 6 - - dload_1 -; fload_3 - dcmpg - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_2.java deleted file mode 100644 index 6ff5dff19b6e11289a2fdd73f241c9a0c6bc6f3b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpg.jm; - -public class T_dcmpg_2 { - - public boolean run(double a, double b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_3.j deleted file mode 100644 index fb5f6d774f6ec59087837bc593d27eb00c37a1a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpg_3.java -.class public dxc/junit/opcodes/dcmpg/jm/T_dcmpg_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(DD)Z - .limit stack 4 - .limit locals 6 - - dload_1 - fconst_1 - dcmpg - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_3.java deleted file mode 100644 index 1101f0069502a4596514b50456c024d64af5960b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpg.jm; - -public class T_dcmpg_3 { - - public boolean run(double a, double b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_4.j deleted file mode 100644 index 8e237152b1b7f17235533fe594c8a2ac207f0f12..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_4.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpg_4.java -.class public dxc/junit/opcodes/dcmpg/jm/T_dcmpg_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(DD)Z - .limit stack 4 - .limit locals 6 - - lconst_1 - dload_1 - - dcmpg - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_4.java deleted file mode 100644 index ae2d93759bf796c5207e09e748daa88688077107..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpg.jm; - -public class T_dcmpg_4 { - - public boolean run(double a, double b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_5.j deleted file mode 100644 index 9f9d92fa87372ce4ef382e3f0edd6effe5b4857f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_5.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpg_5.java -.class public dxc/junit/opcodes/dcmpg/jm/T_dcmpg_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)Z - .limit stack 4 - .limit locals 5 - - dload_1 - aload_0 - dcmpl - ifle Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_5.java deleted file mode 100644 index 45663f8677de79cebe6a810d5af74eec745e708b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpg/jm/T_dcmpg_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpg.jm; - -public class T_dcmpg_5 { - - public boolean run(double a, double b) { - return a > b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/Test_dcmpl.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/Test_dcmpl.java deleted file mode 100644 index 045c1811904576876d93f36ee2802aade121e60d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/Test_dcmpl.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpl; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dcmpl.jm.T_dcmpl_1; - -public class Test_dcmpl extends DxTestCase { - - /** - * @title Arguments = 3.14d, 2.7d - */ - public void testN1() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(1, t.run(3.14d, 2.7d)); - } - - /** - * @title Arguments = -3.14d, 2.7d - */ - public void testN2() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(-1, t.run(-3.14d, 2.7d)); - } - - /** - * @title Arguments = 3.14, 3.14 - */ - public void testN3() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(0, t.run(3.14d, 3.14d)); - } - - /** - * @title Arguments = Double.NaN, Double.MAX_VALUE - */ - public void testB1() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(-1, t.run(Double.NaN, Double.MAX_VALUE)); - } - - /** - * @title Arguments = +0, -0 - */ - public void testB2() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(0, t.run(+0f, -0f)); - } - - /** - * @title Arguments = Double.NEGATIVE_INFINITY, Double.MIN_VALUE - */ - public void testB3() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALUE - */ - public void testB4() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.MAX_VALUE)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.NEGATIVE_INFINITY - */ - public void testB5() { - T_dcmpl_1 t = new T_dcmpl_1(); - assertEquals(1, t.run(Double.POSITIVE_INFINITY, - Double.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dcmpl.jm.T_dcmpl_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dcmpl.jm.T_dcmpl_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dcmpl.jm.T_dcmpl_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dcmpl.jm.T_dcmpl_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_1.j deleted file mode 100644 index 35b12a43bfaf65f834621034220c406d857455ee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_1.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpl_1.java -.class public dxc/junit/opcodes/dcmpl/jm/T_dcmpl_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)I - .limit stack 4 - .limit locals 6 - - dload_1 - dload_3 - - dcmpl - dup - ifeq Label0 - ifgt Label1 - - iconst_m1 - ireturn - - Label0: - iconst_0 - ireturn - - Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_1.java deleted file mode 100644 index 7effb957a1f2d814dbb90be2f66ca81d702e5e68..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_1.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpl.jm; - -public class T_dcmpl_1 { - - public int run(double a, double b) { - if(a > b) - return 1; - if(a == b) - return 0; - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_2.j deleted file mode 100644 index d4fa52c0326c00cbcab03b60bb135d7ea3e67b0a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_2.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpl_2.java -.class public dxc/junit/opcodes/dcmpl/jm/T_dcmpl_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DD)Z - .limit stack 4 - .limit locals 6 - - dload_1 -; fload_3 - dcmpl - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_2.java deleted file mode 100644 index 583256acb5dff2ef7f495c9be6e5528c0715a790..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpl.jm; - -public class T_dcmpl_2 { - - public boolean run(double a, double b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_3.j deleted file mode 100644 index 4db6e3397b526217ba40ef07a6644d3173a76e1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpl_3.java -.class public dxc/junit/opcodes/dcmpl/jm/T_dcmpl_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(DD)Z - .limit stack 4 - .limit locals 6 - - dload_1 - fconst_1 - dcmpl - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_3.java deleted file mode 100644 index fdb3329f3b97fbbdb9c8a43b0059cc5ba6785cc1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpl.jm; - -public class T_dcmpl_3 { - - public boolean run(double a, double b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_4.j deleted file mode 100644 index 7b18e839bc98614fb4915cfe2681207fb93f879c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_4.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpl_4.java -.class public dxc/junit/opcodes/dcmpl/jm/T_dcmpl_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(DD)Z - .limit stack 4 - .limit locals 6 - - lconst_1 - dload_1 - - dcmpl - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_4.java deleted file mode 100644 index f2a8b242f1313c0551b62c41fe350dfface6fe4a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpl.jm; - -public class T_dcmpl_4 { - - public boolean run(double a, double b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_5.j deleted file mode 100644 index 56d80b9ab0991303ca3e6b6a6cdf76bfe266592c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_5.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dcmpl_5.java -.class public dxc/junit/opcodes/dcmpl/jm/T_dcmpl_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)Z - .limit stack 4 - .limit locals 5 - - dload_1 - aload_0 - dcmpl - ifle Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_5.java deleted file mode 100644 index 79d1bf8c8450e28014ddafd3096bf4faedea4186..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dcmpl/jm/T_dcmpl_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dcmpl.jm; - -public class T_dcmpl_5 { - - public boolean run(double a, double b) { - return a > b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/Test_dconst_0.java b/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/Test_dconst_0.java deleted file mode 100644 index 1dc0718acc588ae718fc2f63bbe557932c638733..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/Test_dconst_0.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dconst_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dconst_0.jm.T_dconst_0_1; - -public class Test_dconst_0 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_dconst_0_1 t = new T_dconst_0_1(); - double b = 1234d; - double c = 1234d; - double d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dconst_0.jm.T_dconst_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_1.j deleted file mode 100644 index c6b15b82e5d5e54b1dc7267a6ef888447a2f0886..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_1.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dconst_0_1.java -.class public dxc/junit/opcodes/dconst_0/jm/T_dconst_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit stack 2 - dconst_0 - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_1.java deleted file mode 100644 index bb40485e1eec94d579f23b0a1f07aea1ed8eebc9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dconst_0.jm; - -public class T_dconst_0_1 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_2.j deleted file mode 100644 index 163d026d98cc684596ebacd37ee745806785f71b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dconst_0_2.java -.class public dxc/junit/opcodes/dconst_0/jm/T_dconst_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit stack 1 -; .limit locals 1 - - dconst_0 - dconst_0 - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_2.java deleted file mode 100644 index 47856edee3a92ed31323b871d64977fba6865bb7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_0/jm/T_dconst_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dconst_0.jm; - -public class T_dconst_0_2 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/Test_dconst_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/Test_dconst_1.java deleted file mode 100644 index 2b15a2d24216a323c83b3c03aa399577865491c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/Test_dconst_1.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dconst_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dconst_1.jm.T_dconst_1_1; - -public class Test_dconst_1 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_dconst_1_1 t = new T_dconst_1_1(); - double b = 1235d; - double c = 1234d; - double d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dconst_1.jm.T_dconst_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_1.j deleted file mode 100644 index 2636b2658160c2d1ecd92cf535312fad5ebfad00..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_1.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dconst_1_1.java -.class public dxc/junit/opcodes/dconst_1/jm/T_dconst_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit stack 2 - dconst_1 - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_1.java deleted file mode 100644 index a332a75a894d2a52dd05f5bbb6cf06280f3f2e55..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dconst_1.jm; - -public class T_dconst_1_1 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_2.j deleted file mode 100644 index 9a17a140409d6de99d69cff6b6b31478127b63c9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dconst_1_2.java -.class public dxc/junit/opcodes/dconst_1/jm/T_dconst_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit stack 1 -; .limit locals 1 - - dconst_1 - dconst_1 - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_2.java deleted file mode 100644 index 88726aca2f6d1c2832bc3d45720393e5fa30f12c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dconst_1/jm/T_dconst_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dconst_1.jm; - -public class T_dconst_1_2 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/Test_ddiv.java b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/Test_ddiv.java deleted file mode 100644 index e97558a94b5f5a1a618c367bfc923b290c085776..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/Test_ddiv.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ddiv; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ddiv.jm.T_ddiv_1; - -public class Test_ddiv extends DxTestCase { - - /** - * @title Arguments = 2.7d, 3.14d - */ - public void testN1() { - - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(0.8598726114649682d, t.run(2.7d, 3.14d)); - } - - /** - * @title Dividend = 0 - */ - public void testN2() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(0d, t.run(0, 3.14d)); - } - - /** - * @title Dividend is negative - */ - public void testN3() { - - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(-1.162962962962963d, t.run(-3.14d, 2.7d)); - } - - /** - * @title Dividend is negative - */ - public void testN4() { - - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(-1.162962962962963d, t.run(-3.14d, 2.7d)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.NEGATIVE_INFINITY - */ - public void testB2() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, - Double.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, -2.7d - */ - public void testB3() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, - -2.7d)); - } - - /** - * @title Arguments = -2.7d, Double.NEGATIVE_INFINITY - */ - public void testB4() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(0d, t.run(-2.7d, Double.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(Double.NaN, t.run(0, 0)); - } - - /** - * @title Arguments = 0, -2.7 - */ - public void testB6() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(-0d, t.run(0, -2.7d)); - } - - /** - * @title Arguments = -2.7, 0 - */ - public void testB7() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(Double.NEGATIVE_INFINITY, t.run(-2.7d, 0)); - } - - /** - * @title Arguments = 1, Double.MAX_VALUE - */ - public void testB8() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(1, Double.MIN_VALUE)); - } - - /** - * @title Arguments = Double.MAX_VALUE, -1E-9f - */ - public void testB9() { - T_ddiv_1 t = new T_ddiv_1(); - assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.MAX_VALUE, -1E-9f)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ddiv.jm.T_ddiv_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ddiv.jm.T_ddiv_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ddiv.jm.T_ddiv_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double / - * reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ddiv.jm.T_ddiv_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_1.j deleted file mode 100644 index 97285f5a1bb907f416fd9e5697ce1a9bac5fc273..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ddiv_1.java -.class public dxc/junit/opcodes/ddiv/jm/T_ddiv_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - dload_3 - ddiv - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_1.java deleted file mode 100644 index bb7e5d5f181f5325479f0b93e7675fa523fdbae6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ddiv.jm; - -public class T_ddiv_1 { - - public double run(double a, double b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_2.j deleted file mode 100644 index fd03c320996e38546e05c458e67618246cba4f61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ddiv_2.java -.class public dxc/junit/opcodes/ddiv/jm/T_ddiv_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - ; dload_3 - ddiv - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_2.java deleted file mode 100644 index a3c1b1265ae40ed9ac8deae3f1b879adb0804a3d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ddiv.jm; - -public class T_ddiv_2 { - - public double run(double a, double b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_3.j deleted file mode 100644 index 1d5da574acb53745b65873df350048f93c776b13..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ddiv_3.java -.class public dxc/junit/opcodes/ddiv/jm/T_ddiv_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)D - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - ddiv - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_3.java deleted file mode 100644 index 8fc491701e9210ad5407321fdef2044d5ca76506..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ddiv.jm; - -public class T_ddiv_3 { - - public double run(float a, double b) { - return (double)a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_4.j deleted file mode 100644 index 037c7814be48960e75d97808a60c947709e93a24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ddiv_4.java -.class public dxc/junit/opcodes/ddiv/jm/T_ddiv_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JD)D - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 - ddiv - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_4.java deleted file mode 100644 index 3861a04ebc366710abdb2d31dbf9b02587896f09..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ddiv.jm; - -public class T_ddiv_4 { - - public double run(long a, double b) { - return (double)a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_5.j deleted file mode 100644 index f7d28aa8852aede04bafc89f9fecc32dce0fba98..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ddiv_5.java -.class public dxc/junit/opcodes/ddiv/jm/T_ddiv_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - - dload_1 - aload_0 - ddiv - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_5.java deleted file mode 100644 index 51f30d3131fef512fc96cf72d5618a6b003ff67b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ddiv/jm/T_ddiv_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ddiv.jm; - -public class T_ddiv_5 { - - public double run(double a, double b) { - return a/b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/Test_dload.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/Test_dload.java deleted file mode 100644 index 87607cab1c3f73053f7c11a33d36a004beb481d2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/Test_dload.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dload.jm.T_dload_1; -import dxc.junit.opcodes.dload.jm.T_dload_1_w; -import dxc.junit.opcodes.dload.jm.T_dload_2; -import dxc.junit.opcodes.dload.jm.T_dload_2_w; - -public class Test_dload extends DxTestCase { - - /* - * NORMAL dload VERSION - */ - - /** - * @title Test dload 1 - */ - public void testN1() { - T_dload_1 t = new T_dload_1(); - assertEquals(1d, t.run()); - } - - /** - * @title Test dload 255 - */ - public void testN2() { - T_dload_2 t = new T_dload_2(); - assertEquals(1d, t.run()); - } - - /** - * @constraint 4.8.1.21 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE dload VERSION - */ - - /** - * @title Test dload 257 - */ - public void testN3() { - T_dload_1_w t = new T_dload_1_w(); - assertEquals(1d, t.run()); - } - - /** - * @title Test dload_w 1 - */ - public void testN4() { - T_dload_2_w t = new T_dload_2_w(); - assertEquals(1d, t.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_5_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.dload.jm.T_dload_6_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1.j deleted file mode 100644 index ea6f1944af164018a8eefe87f61b15eb32dd86e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1.java -.class public dxc/junit/opcodes/dload/jm/T_dload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()D - .limit stack 4 - .limit locals 6 - - dconst_1 - dstore 4 - dconst_0 - dload 4 - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1.java deleted file mode 100644 index 77750494ce3216a5a368dc316edcac9b1c90baeb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_1 { - - public double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1_w.j deleted file mode 100644 index c6c9056e479e04a96249e49c5b885f7882ec21fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1_w.java -.class public dxc/junit/opcodes/dload/jm/T_dload_1_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()D - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore 257 - dconst_0 - dload 257 - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1_w.java deleted file mode 100644 index 337b02dbb7d39c9e1cdcd7e9c53c97a878d821ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_1_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_1_w { - - public double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2.j deleted file mode 100644 index dd9774401dea6760a2c1811321bbc2fab745ab66..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2.java -.class public dxc/junit/opcodes/dload/jm/T_dload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()D - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore 255 - dconst_0 - dload 255 - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2.java deleted file mode 100644 index 002071fd78de9ff0402966a23e306affbaf7a21d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_2 { - - public double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2_w.j deleted file mode 100644 index 0874c3e72f51204b58845aebc468b69351035166..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2_w.java -.class public dxc/junit/opcodes/dload/jm/T_dload_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()D - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore 1 - dconst_0 - dload_w 1 - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2_w.java deleted file mode 100644 index c5140b57418a1e2ed51630c9b9a92d2e1201d2db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_2_w { - - public double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3.j deleted file mode 100644 index bed08c5de5e7b75c4763d6f802352b96bb56bbdb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3.java -.class public dxc/junit/opcodes/dload/jm/T_dload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 0 - - dload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3.java deleted file mode 100644 index eefa0073c69723ae66e5ee779356d1b9c6a68c00..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_3 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3_w.j deleted file mode 100644 index 7618f0de6f35211f4d76c68afcf13cc0e4582a02..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3_w.java -.class public dxc/junit/opcodes/dload/jm/T_dload_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 300 - - dload 300 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3_w.java deleted file mode 100644 index 01eb395f00b18c758ea2e64477b9f58f7ccc72fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_3_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_3_w { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4.j deleted file mode 100644 index a1731d07dc09f656e7755449ec2cb37ecbb45f73..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_4.java -.class public dxc/junit/opcodes/dload/jm/T_dload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_0 - fconst_1 - fstore_1 - - dload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4.java deleted file mode 100644 index 13c99db3bd8695747635ebc3153f4c9b02bf5886..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_4 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4_w.j deleted file mode 100644 index 855d01ebcd2d7cd342a5071a5472da65c7a26f5f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_4_w.java -.class public dxc/junit/opcodes/dload/jm/T_dload_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 300 - - fconst_1 - fstore 260 - fconst_1 - fstore 261 - - dload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4_w.java deleted file mode 100644 index 681029851b8f87e1d10e460d2f7eefb857cd85cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_4_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_4_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5.j deleted file mode 100644 index d363cab14093f9913bc80e45a2d395e72a5e017e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_5.java -.class public dxc/junit/opcodes/dload/jm/T_dload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_0 - - dload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5.java deleted file mode 100644 index 1428a195633800f608e53ac6652ce14d27dcc493..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_5 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5_w.j deleted file mode 100644 index bf96314c0a2009d387fab800e0b01cea933a5570..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_5_w.java -.class public dxc/junit/opcodes/dload/jm/T_dload_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 300 - - lconst_1 - lstore 260 - - dload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5_w.java deleted file mode 100644 index 8010dc04220ff8aa6ce84a5e0adf1c7d111ea486..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_5_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_5_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6.j deleted file mode 100644 index 07b4434396d1d9cc179e8efba24b722358f809af..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_6.java -.class public dxc/junit/opcodes/dload/jm/T_dload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - dconst_1 - dstore_0 - - dload 0 - dload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6.java deleted file mode 100644 index 41b6572e66afbb87124a6dd22daa34a5b27ddfd7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_6 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6_w.j deleted file mode 100644 index 4a92f33b2c65570357a14ecb049bbf411345a3ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_6_w.java -.class public dxc/junit/opcodes/dload/jm/T_dload_6_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 300 - - dconst_1 - dstore 260 - - dload_w 260 - dload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6_w.java deleted file mode 100644 index d2d54e37aa4b75000829629fbf18d2c023aaff0b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload/jm/T_dload_6_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload.jm; - -public class T_dload_6_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/Test_dload_0.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/Test_dload_0.java deleted file mode 100644 index 3386d700836eb82b8055979e2387e2fae3d5896c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/Test_dload_0.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dload_0.jm.T_dload_0_1; -import dxc.junit.opcodes.dload_0.jm.T_dload_0_6; - -public class Test_dload_0 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1d, T_dload_0_1.run()); - } - - /** - * @title equality of dload_ and dload - */ - public void testN2() { - assertTrue(T_dload_0_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dload_0.jm.T_dload_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dload_0.jm.T_dload_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dload_0.jm.T_dload_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dload_0.jm.T_dload_0_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_1.j deleted file mode 100644 index efadce3ee18d6153c140c60b249e6173feffe244..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_0_1.java -.class public dxc/junit/opcodes/dload_0/jm/T_dload_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_0 - dconst_0 - dload_0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_1.java deleted file mode 100644 index b6c0a13b87700c591c6bc12cf14624b567de3450..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_0.jm; - -public class T_dload_0_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_2.j deleted file mode 100644 index 7da999c8616f8c7c9afc8e30c20739eadf5e89bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_0_2.java -.class public dxc/junit/opcodes/dload_0/jm/T_dload_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_2.java deleted file mode 100644 index 05fe279c1a9d92c7b56cafa71b18f131529a171c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_0.jm; - -public class T_dload_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_3.j deleted file mode 100644 index 07fa8f435330f0df22fd0918837c61c0dc5a6456..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_0_3.java -.class public dxc/junit/opcodes/dload_0/jm/T_dload_0_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_0 - fconst_1 - fstore_1 - - dload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_3.java deleted file mode 100644 index 86dcec757aefb0b77c4da8664792b2835a3e790f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_0.jm; - -public class T_dload_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_4.j deleted file mode 100644 index 6254ac4db6ab5be416f0072b9ca01bbb0b35e79a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_0_4.java -.class public dxc/junit/opcodes/dload_0/jm/T_dload_0_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_0 - - dload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_4.java deleted file mode 100644 index ffcfe2b67a659bbf283d6f12effc4f5d69016961..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_0.jm; - -public class T_dload_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_5.j deleted file mode 100644 index 6c7c87974a493fac8e8ff13c4e95c7c2b9c96136..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_0_5.java -.class public dxc/junit/opcodes/dload_0/jm/T_dload_0_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 4 - - dconst_1 - dstore_0 - - dload_0 - dload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_5.java deleted file mode 100644 index 1cdadbc9b68b83042691b4a15451b94dbccdad5c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_0.jm; - -public class T_dload_0_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_6.j deleted file mode 100644 index 43843a84e6f8535f8fa22feb8592eeeb94a8114e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_0_6.java -.class public dxc/junit/opcodes/dload_0/jm/T_dload_0_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 2 - - dconst_1 - dstore_0 - - dload_0 - dload 0 - dcmpl - - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_6.java deleted file mode 100644 index 03e3a47e3b960fcd92f18b872e128b178c1c75f8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_0/jm/T_dload_0_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_0.jm; - -public class T_dload_0_6 { - - public static boolean run() { - double i = 1d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/Test_dload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/Test_dload_1.java deleted file mode 100644 index 78e1d639c76dbefff9c06bdf27e06ace51eca58b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/Test_dload_1.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dload_1.jm.T_dload_1_1; -import dxc.junit.opcodes.dload_1.jm.T_dload_1_6; - -public class Test_dload_1 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1d, T_dload_1_1.run()); - } - - /** - * @title equality of dload_ and dload - */ - public void testN2() { - assertTrue(T_dload_1_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dload_1.jm.T_dload_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dload_1.jm.T_dload_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dload_1.jm.T_dload_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dload_1.jm.T_dload_1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_1.j deleted file mode 100644 index f0b8614f69fd0317ef81ec49585475103727e1ce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1_1.java -.class public dxc/junit/opcodes/dload_1/jm/T_dload_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_1 - dconst_0 - dload_1 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_1.java deleted file mode 100644 index 08c6c4c07ac9c81280857b19c4c2961874928c0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_1.jm; - -public class T_dload_1_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_2.j deleted file mode 100644 index c3c537b0315189015565366cb3a72c715fa30531..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1_2.java -.class public dxc/junit/opcodes/dload_1/jm/T_dload_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 1 - - dload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_2.java deleted file mode 100644 index e9d012a13dfc10006a159e95fe70310b7e419ce2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_1.jm; - -public class T_dload_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_3.j deleted file mode 100644 index 23521db692b422b8ab9ddb801e427158f57253d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1_3.java -.class public dxc/junit/opcodes/dload_1/jm/T_dload_1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_1 - fconst_1 - fstore_2 - - dload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_3.java deleted file mode 100644 index ce229e6145bff58228f46da4661a3cda54400e5a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_1.jm; - -public class T_dload_1_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_4.j deleted file mode 100644 index ae50746f855f48ef03fc07f50c7f8686455f040c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1_4.java -.class public dxc/junit/opcodes/dload_1/jm/T_dload_1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_1 - - dload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_4.java deleted file mode 100644 index 3e6eadb1ab7ff52c7b5b52bfb9a1efc8a8715fb7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_1.jm; - -public class T_dload_1_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_5.j deleted file mode 100644 index 247a0ea90eee65c545f01ccae6167b6b7c0d4f2d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1_5.java -.class public dxc/junit/opcodes/dload_1/jm/T_dload_1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 4 - - dconst_1 - dstore_1 - - dload_1 - dload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_5.java deleted file mode 100644 index 569b8be1cc420abf2c9f48548e3ed381f4eb3da3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_1.jm; - -public class T_dload_1_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_6.j deleted file mode 100644 index 6a3adfecc69aa85eef27c0dd54a002fc711ecc3d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_1_6.java -.class public dxc/junit/opcodes/dload_1/jm/T_dload_1_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_1 - - dload_1 - dload 1 - dcmpl - - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_6.java deleted file mode 100644 index fda7e3ae6629a0bd8df470412885b44dcd5461e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_1/jm/T_dload_1_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_1.jm; - -public class T_dload_1_6 { - - public static boolean run() { - double i = 1d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/Test_dload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/Test_dload_2.java deleted file mode 100644 index b0d5ede8df1226b2b6d841b55b3a87a721893b69..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/Test_dload_2.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dload_2.jm.T_dload_2_1; -import dxc.junit.opcodes.dload_2.jm.T_dload_2_6; - -public class Test_dload_2 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1d, T_dload_2_1.run()); - } - - /** - * @title equality of dload_ and dload - */ - public void testN2() { - assertTrue(T_dload_2_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dload_2.jm.T_dload_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dload_2.jm.T_dload_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dload_2.jm.T_dload_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dload_2.jm.T_dload_2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_1.j deleted file mode 100644 index 5dbb5f1ab9479466ef55579fd63f196f5d25b87d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2_1.java -.class public dxc/junit/opcodes/dload_2/jm/T_dload_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_2 - dconst_0 - dload_2 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_1.java deleted file mode 100644 index bd20ce77a8623523fbae0851f8de6ce762ac52b9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_2.jm; - -public class T_dload_2_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_2.j deleted file mode 100644 index 998877e59cd3d6673dc63bb7ade1944c681fc6f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2_2.java -.class public dxc/junit/opcodes/dload_2/jm/T_dload_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_2.java deleted file mode 100644 index eeab9cc8aa5bd8f8a05efb0bdf2f7898f728428d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_2.jm; - -public class T_dload_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_3.j deleted file mode 100644 index d907737852138fbcf83502b722f050c7ec115161..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2_3.java -.class public dxc/junit/opcodes/dload_2/jm/T_dload_2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - fstore_2 - fconst_1 - fstore_3 - - dload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_3.java deleted file mode 100644 index 7c2096006281df7bd1a44eed1b5792593116cd83..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_2.jm; - -public class T_dload_2_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_4.j deleted file mode 100644 index 2330dd2b02e6477931184646309498cb3a8a548a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2_4.java -.class public dxc/junit/opcodes/dload_2/jm/T_dload_2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_2 - - dload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_4.java deleted file mode 100644 index d01ef764a2579a6ff2469ff31013e22eb345f876..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_2.jm; - -public class T_dload_2_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_5.j deleted file mode 100644 index 16805753fc7f9b75d89dc6a3c9c86e50875d9200..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2_5.java -.class public dxc/junit/opcodes/dload_2/jm/T_dload_2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 4 - - dconst_1 - dstore_2 - - dload_2 - dload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_5.java deleted file mode 100644 index 96be034333746c6e65d70d736e7054f8ca8e3f8e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_2.jm; - -public class T_dload_2_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_6.j deleted file mode 100644 index 64411bed9df22b243384d35bbae04dbcef7063a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_2_6.java -.class public dxc/junit/opcodes/dload_2/jm/T_dload_2_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_2 - - dload_2 - dload 2 - dcmpl - - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_6.java deleted file mode 100644 index e98944a384bbd75b1b9c5acbdb19550f98cc386d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_2/jm/T_dload_2_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_2.jm; - -public class T_dload_2_6 { - - public static boolean run() { - double i = 1d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/Test_dload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/Test_dload_3.java deleted file mode 100644 index 8d88d4e6827311ff890f2ba01ae88a2dae53d439..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/Test_dload_3.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dload_3.jm.T_dload_3_1; -import dxc.junit.opcodes.dload_3.jm.T_dload_3_6; - -public class Test_dload_3 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1d, T_dload_3_1.run()); - } - - /** - * @title equality of dload_ and dload - */ - public void testN2() { - assertTrue(T_dload_3_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dload_3.jm.T_dload_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dload_3.jm.T_dload_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dload_3.jm.T_dload_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dload_3.jm.T_dload_3_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_1.j deleted file mode 100644 index 3e4ec5d34dad6b0e7f566de526050bd5254f154a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3_1.java -.class public dxc/junit/opcodes/dload_3/jm/T_dload_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 5 - - dconst_1 - dstore_3 - dconst_0 - dload_3 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_1.java deleted file mode 100644 index a5cb748dabb69577985fc52f29c2c517ed4b046a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_3.jm; - -public class T_dload_3_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_2.j deleted file mode 100644 index 5d3d072060f21e2ca04d54c316f7da4b6068d427..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3_2.java -.class public dxc/junit/opcodes/dload_3/jm/T_dload_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_2.java deleted file mode 100644 index da11e14755ee9b397442e8bc729f85860c88e59f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_3.jm; - -public class T_dload_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_3.j deleted file mode 100644 index 8558fa93739281206691470c3cf2b082b0b38c1a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3_3.java -.class public dxc/junit/opcodes/dload_3/jm/T_dload_3_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - fconst_1 - fstore_3 - fconst_1 - fstore 4 - - dload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_3.java deleted file mode 100644 index 1534e500968972f0be20dbd1564a40c8035a18cc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_3.jm; - -public class T_dload_3_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_4.j deleted file mode 100644 index 28fce455ad54d5b50b78d575598388bdf8cec5ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3_4.java -.class public dxc/junit/opcodes/dload_3/jm/T_dload_3_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - lconst_1 - lstore_3 - - dload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_4.java deleted file mode 100644 index 6b22af421d1f0ffa5f8b2c44b07ad93835af88d4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_3.jm; - -public class T_dload_3_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_5.j deleted file mode 100644 index b9ceac433aa8f79419abfdae37e7e6a276b1b566..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3_5.java -.class public dxc/junit/opcodes/dload_3/jm/T_dload_3_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 5 - - dconst_1 - dstore_3 - - dload_3 - dload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_5.java deleted file mode 100644 index 48b7cfefceaa23e0ef0367366387ce85d661a605..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_3.jm; - -public class T_dload_3_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_6.j deleted file mode 100644 index eecc7a223ecaaac28dac1f06fa0603c6d0c5eff9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dload_3_6.java -.class public dxc/junit/opcodes/dload_3/jm/T_dload_3_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 5 - - dconst_1 - dstore_3 - - dload_3 - dload 3 - dcmpl - - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_6.java deleted file mode 100644 index 4be5f776f86af27e6283ddf8db5498aff19f9f68..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dload_3/jm/T_dload_3_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dload_3.jm; - -public class T_dload_3_6 { - - public static boolean run() { - double i = 1d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/Test_dmul.java b/tools/dx-tests/src/dxc/junit/opcodes/dmul/Test_dmul.java deleted file mode 100644 index 4f0c55b5edee2649c39fa2deb5e92d7033051999..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/Test_dmul.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dmul; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dmul.jm.T_dmul_1; - -public class Test_dmul extends DxTestCase { - - /** - * @title Arguments = 2.7d, 3.14d - */ - - public void testN1() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(8.478000000000002d, t.run(2.7d, 3.14d)); - } - - /** - * @title Arguments = 0, -3.14d - */ - public void testN2() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(-0d, t.run(0, -3.14d)); - } - - /** - * @title Arguments = -2.7d, -3.14d - */ - public void testN3() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(8.478000000000002d, t.run(-3.14d, -2.7d)); - } - - /** - * @title Arguments = Double.MAX_VALUE, Double.NaN - */ - public void testB1() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, 0 - */ - public void testB2() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, -2.7d - */ - public void testB3() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, - -2.7d)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.NEGATIVE_INFINITY - */ - public void testB4() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, - Double.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = +0, -0d - */ - public void testB5() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(-0d, t.run(+0d, -0d)); - } - - /** - * @title Arguments = -0d, -0d - */ - public void testB6() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(+0d, t.run(-0d, -0d)); - } - - /** - * @title Arguments = Double.MAX_VALUE, Double.MAX_VALUE - */ - public void testB7() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(Double.MAX_VALUE, - Double.MAX_VALUE)); - } - - /** - * @title Arguments = Double.MIN_VALUE, -1.4E-45f - */ - public void testB8() { - T_dmul_1 t = new T_dmul_1(); - assertEquals(-0d, t.run(Double.MIN_VALUE, -1.4E-45f)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dmul.jm.T_dmul_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dmul.jm.T_dmul_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dmul.jm.T_dmul_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dmul.jm.T_dmul_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_1.j deleted file mode 100644 index 4bd92477863b96200f4e81038a8ed5e0b737cafe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dmul_1.java -.class public dxc/junit/opcodes/dmul/jm/T_dmul_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - dload_3 - dmul - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_1.java deleted file mode 100644 index c4ad6fb63334b44a68e01bfe3eab653b992d1c3c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dmul.jm; - -public class T_dmul_1 { - - public double run(double a, double b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_2.j deleted file mode 100644 index 744f9aeb1a9f0ae2fb8beb5b10e66cb997da321c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dmul_2.java -.class public dxc/junit/opcodes/dmul/jm/T_dmul_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - ; dload_3 - dmul - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_2.java deleted file mode 100644 index 7616c9efadfd72c90fa8ee7fae34bae31e5eedeb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dmul.jm; - -public class T_dmul_2 { - - public double run(double a, double b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_3.j deleted file mode 100644 index 222294b06468785f46503f1a9f2924014c297407..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dmul_3.java -.class public dxc/junit/opcodes/dmul/jm/T_dmul_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)F - .limit stack 4 - .limit locals 5 - fload_1 - dload_2 - dmul - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_3.java deleted file mode 100644 index 7732dbd7fc55a72762960980d28c0425efc611c1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dmul.jm; - -public class T_dmul_3 { - - public double run(float a, double b) { - return (double)a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_4.j deleted file mode 100644 index 376b98505e278611c96bfd82f685d819e92377fa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dmul_4.java -.class public dxc/junit/opcodes/dmul/jm/T_dmul_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JD)D - .limit stack 4 - .limit locals 5 - - lload_1 -; l2d - dload_3 - dmul - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_4.java deleted file mode 100644 index 7fe4ff04183adf0b0734abc26984700a0727d615..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dmul.jm; - -public class T_dmul_4 { - - public double run(long a, double b) { - return (double)a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_5.j deleted file mode 100644 index c6783ca8ca83a69d3edbd8e089d954d906cdd851..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dmul_5.java -.class public dxc/junit/opcodes/dmul/jm/T_dmul_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - - dload_1 - aload_0 - dmul - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_5.java deleted file mode 100644 index d4c5811708a94953b1fbd23f861b27525ef49690..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dmul/jm/T_dmul_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dmul.jm; - -public class T_dmul_5 { - - public double run(double a, double b) { - return a*b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/Test_dneg.java b/tools/dx-tests/src/dxc/junit/opcodes/dneg/Test_dneg.java deleted file mode 100644 index 6f177372c2db458007c0703a64935369f7b4f8b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/Test_dneg.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dneg; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dneg.jm.T_dneg_1; - -public class Test_dneg extends DxTestCase { - - /** - * @title Argument = 1 - */ - public void testN1() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(-1d, t.run(1d)); - } - - /** - * @title Argument = -1 - */ - public void testN2() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(1d, t.run(-1d)); - } - - /** - * @title Argument = +0 - */ - public void testN3() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(-0d, t.run(+0d)); - } - - /** - * @title Argument = -2.7 - */ - public void testN4() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(2.7d, t.run(-2.7d)); - } - - - /** - * @title Argument = Double.NaN - */ - public void testB1() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(Double.NaN, t.run(Double.NaN)); - } - - /** - * @title Argument = Double.NEGATIVE_INFINITY - */ - public void testB2() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(Double.NEGATIVE_INFINITY)); - } - - /** - * @title Argument = Double.POSITIVE_INFINITY - */ - public void testB3() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY)); - } - - /** - * @title Argument = Double.MAX_VALUE - */ - public void testB4() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(-1.7976931348623157E308d, t.run(Double.MAX_VALUE)); - } - - /** - * @title Argument = Double.MIN - */ - public void testB5() { - T_dneg_1 t = new T_dneg_1(); - assertEquals(-4.9E-324d, t.run(Double.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dneg.jm.T_dneg_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dneg.jm.T_dneg_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dneg.jm.T_dneg_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dneg.jm.T_dneg_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_1.j deleted file mode 100644 index 17acbbba491d432babdf8d9df1e7c8ff3ff1b548..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_1.java -.class public dxc/junit/opcodes/dneg/jm/T_dneg_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)D - .limit stack 2 - .limit locals 3 - dload_1 - dneg - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_1.java deleted file mode 100644 index 9b33e9b771a7766acb819f057a4c371a276d1e13..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dneg.jm; - -public class T_dneg_1 { - - public double run(double d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_2.j deleted file mode 100644 index 7f8266c767df074a42b8b4146b20f25efff38c41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_2.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dneg_2.java -.class public dxc/junit/opcodes/dneg/jm/T_dneg_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)D - .limit stack 2 - .limit locals 2 - ;dload_1 - dneg - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_2.java deleted file mode 100644 index 27ec6abdcad31d5361fec1d4116b6b8e1363a999..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dneg.jm; - -public class T_dneg_2 { - - public double run(double d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_3.j deleted file mode 100644 index 98aa60e673d63080bacec0e01c5412c145f78120..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dneg_3.java -.class public dxc/junit/opcodes/dneg/jm/T_dneg_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)D - .limit stack 2 - .limit locals 3 - - fconst_1 - dneg - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_3.java deleted file mode 100644 index c7a68a3fa72d8b7e54da8bfbaa9610c2ad135c4e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dneg.jm; - -public class T_dneg_3 { - - public double run(double d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_4.j deleted file mode 100644 index fbbac9ed8642727fffa21fdc328f5172cdac99bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_4.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dneg_4.java -.class public dxc/junit/opcodes/dneg/jm/T_dneg_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)D - .limit stack 2 - .limit locals 3 - - lconst_1 - dneg - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_4.java deleted file mode 100644 index ee859276f348f3e408b5bc1878ba724d538cbe45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dneg.jm; - -public class T_dneg_4 { - - public double run(double d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_5.j deleted file mode 100644 index 6e7874d1374cc36d13864c7011d5679823e0d3e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dneg_5.java -.class public dxc/junit/opcodes/dneg/jm/T_dneg_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)D - .limit stack 2 - .limit locals 3 - - aload_0 - dneg - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_5.java deleted file mode 100644 index 1fb3c3d385c360695ffa1357502f3f6579c1be93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dneg/jm/T_dneg_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dneg.jm; - -public class T_dneg_5 { - - public double run(double d) { - return -d; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/Test_drem.java b/tools/dx-tests/src/dxc/junit/opcodes/drem/Test_drem.java deleted file mode 100644 index f8a9de5f394c60bc2cb5c8f742f27684b5ff359b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/Test_drem.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.drem; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.drem.jm.T_drem_1; - -public class Test_drem extends DxTestCase { - - /** - * @title Arguments = 2.7d, 3.14d - */ - public void testN1() { - T_drem_1 t = new T_drem_1(); - assertEquals(2.7d, t.run(2.7d, 3.14d)); - } - - /** - * @title Dividend = 0 - */ - public void testN2() { - T_drem_1 t = new T_drem_1(); - assertEquals(0d, t.run(0, 3.14d)); - } - - /** - * @title Dividend is negative - */ - public void testN3() { - T_drem_1 t = new T_drem_1(); - assertEquals(-0.43999999999999995d, t.run(-3.14d, 2.7d)); - } - - /** - * @title Arguments = Double.MAX_VALUE, Double.NaN - */ - public void testB1() { - T_drem_1 t = new T_drem_1(); - assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.NEGATIVE_INFINITY - */ - public void testB2() { - T_drem_1 t = new T_drem_1(); - assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, - Double.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, -2.7d - */ - public void testB3() { - T_drem_1 t = new T_drem_1(); - assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, -2.7d)); - } - - /** - * @title Arguments = -2.7d, Double.NEGATIVE_INFINITY - */ - public void testB4() { - T_drem_1 t = new T_drem_1(); - assertEquals(-2.7d, t.run(-2.7d, Double.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_drem_1 t = new T_drem_1(); - assertEquals(Double.NaN, t.run(0, 0)); - } - - /** - * @title Arguments = 0, -2.7 - */ - public void testB6() { - T_drem_1 t = new T_drem_1(); - assertEquals(0d, t.run(0, -2.7d)); - } - - /** - * @title Arguments = -2.7, 0 - */ - public void testB7() { - T_drem_1 t = new T_drem_1(); - assertEquals(Double.NaN, t.run(-2.7d, 0)); - } - - /** - * @title Arguments = 1, Double.MAX_VALUE - */ - public void testB8() { - T_drem_1 t = new T_drem_1(); - assertEquals(0d, t.run(1, Double.MIN_VALUE)); - } - - /** - * @title Arguments = Double.MAX_VALUE, -1E-9d - */ - public void testB9() { - T_drem_1 t = new T_drem_1(); - - assertEquals(1.543905285031139E-10d, t.run(Double.MAX_VALUE, -1E-9d)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.drem.jm.T_drem_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.drem.jm.T_drem_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.drem.jm.T_drem_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.drem.jm.T_drem_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_1.j b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_1.j deleted file mode 100644 index 15501a1c130df0fc9d173f7e14c1d5e2de2899c9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_drem_1.java -.class public dxc/junit/opcodes/drem/jm/T_drem_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - dload_3 - drem - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_1.java b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_1.java deleted file mode 100644 index 36f778724725dccaab8c647b846c841c64e29c8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.drem.jm; - -public class T_drem_1 { - - public double run(double a, double b) { - return a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_2.j b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_2.j deleted file mode 100644 index 1c256c28cf8aec133b5a045de235268c4354c29e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_drem_2.java -.class public dxc/junit/opcodes/drem/jm/T_drem_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - ; dload_3 - drem - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_2.java b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_2.java deleted file mode 100644 index 5268322254e0cdd8ee694befeec0654edfec08e3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.drem.jm; - -public class T_drem_2 { - - public double run(double a, double b) { - return a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_3.j b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_3.j deleted file mode 100644 index f0cc9668bc8ea20f42c494165ff35f38ff8d34a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_drem_3.java -.class public dxc/junit/opcodes/drem/jm/T_drem_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)D - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - drem - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_3.java b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_3.java deleted file mode 100644 index 2687fecd82d9b5b5f172e0861fadde39bbb9b548..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.drem.jm; - -public class T_drem_3 { - - public double run(double a, float b) { - return a%(double)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_4.j b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_4.j deleted file mode 100644 index 8b9dc80049daaa1659531d7ace55d67187ea0e24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_drem_4.java -.class public dxc/junit/opcodes/drem/jm/T_drem_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JD)D - .limit stack 4 - .limit locals 5 - - lload_1 -; l2d - dload_3 - drem - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_4.java b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_4.java deleted file mode 100644 index bf104e9bf96b762d77847459d330c7930f0f49bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.drem.jm; - -public class T_drem_4 { - - public double run(long a, double b) { - return (double)a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_5.j b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_5.j deleted file mode 100644 index 75dc94146b6d6eec2b4c40d0acf7a099606ff988..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_drem_5.java -.class public dxc/junit/opcodes/drem/jm/T_drem_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - - dload_1 - aload_0 - drem - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_5.java b/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_5.java deleted file mode 100644 index 2d3f76b1632add915ac795aef95f22857b5d55c5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/drem/jm/T_drem_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.drem.jm; - -public class T_drem_5 { - - public double run(double a, double b) { - return a%b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/Test_dreturn.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/Test_dreturn.java deleted file mode 100644 index 90e9e7a0ccf0f51a18ee97f6fb52fd894c31594d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/Test_dreturn.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dreturn.jm.T_dreturn_1; -import dxc.junit.opcodes.dreturn.jm.T_dreturn_6; -import dxc.junit.opcodes.dreturn.jm.T_dreturn_7; -import dxc.junit.opcodes.dreturn.jm.T_dreturn_8; -import dxc.junit.opcodes.dreturn.jm.T_dreturn_9; - -public class Test_dreturn extends DxTestCase { - - /** - * @title simple - */ - public void testN1() { - T_dreturn_1 t = new T_dreturn_1(); - assertEquals(123456d, t.run()); - } - - /** - * @title check that frames are discarded and reinstananted correctly - */ - public void testN2() { - T_dreturn_6 t = new T_dreturn_6(); - assertEquals(123456d, t.run()); - } - - /** - * @title check that monitor is released by dreturn - */ - public void testN3() { - assertTrue(T_dreturn_7.execute()); - } - - - /** - * @title Method is synchronized but thread is not monitor owner - */ - public void testE1() { - T_dreturn_8 t = new T_dreturn_8(); - try { - assertTrue(t.run()); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title Lock structural rule 1 is violated - */ - public void testE2() { - T_dreturn_9 t = new T_dreturn_9(); - try { - assertEquals(1d, t.run()); - // the JVM spec says that it is optional to implement the structural - // lock rules, see JVM spec 8.13 and monitorenter/exit opcodes. - System.out.print("dvmvfe:"); - //fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - void - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dreturn.jm.T_dreturn_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dreturn.jm.T_dreturn_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dreturn.jm.T_dreturn_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dreturn.jm.T_dreturn_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.dreturn.jm.T_dreturn_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.dreturn.jm.T_dreturn_11"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_1.j deleted file mode 100644 index b4c8d875b6965ffd0dac93fa79fe7702d70eab59..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_1.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_1.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit stack 2 - ldc2_w 123456.0 - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_1.java deleted file mode 100644 index 2f6e798ae9b6dc86f3cb29efa3f2120c3f887711..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_1 { - - public double run() { - return 123456d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_10.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_10.j deleted file mode 100644 index fbfd76a68ee68ece6bdcf6f95462631b4f12fd28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_10.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_10.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private static test()D - .limit stack 2 - .limit locals 0 - dconst_1 - dreturn -.end method - - - -.method public run()D - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/dreturn/jm/T_dreturn_10/test()D - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_10.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_10.java deleted file mode 100644 index 49208c7c349f7b32232555b126af4c1e80e7a7c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_10.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_10 { - - private static double test() { - return 1d; - } - - public double run() { - return test(); - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_11.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_11.j deleted file mode 100644 index ed2f42a58041382ed42a1e34b7051d27aefb36ff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_11.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_11.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit stack 2 - .limit locals 1 - - aload_0 - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_11.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_11.java deleted file mode 100644 index ed86640ba49a373c8aee731e3bed79165f580fd2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_11 { - - public double run() { - return 0d; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_2.j deleted file mode 100644 index 19a7298dd69721bb33cc9b5ef990ba525aa7b89b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_2.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 1 - - dconst_0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_2.java deleted file mode 100644 index 3d2bc882fd7d3b9f6356ba76bb7922ee2723f5fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_2 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_3.j deleted file mode 100644 index 0a80e55610a1059bbcaf0dd92a4d657199005fb1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_3.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - .limit stack 2 - .limit locals 1 - - dconst_0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_3.java deleted file mode 100644 index dac5e4e303845ca0f90ef74774120ca1a612925f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_3 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_4.j deleted file mode 100644 index 811f72c98c955c4829bb33d62facc51d8cb636de..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_4.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()D - .limit stack 2 - .limit locals 1 - - ;dconst_0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_4.java deleted file mode 100644 index 8e3b4abc19fa89ba5f9b8e8d3220b84e522ae0fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_4 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_5.j deleted file mode 100644 index 3a666f5d8dd22462524411c5b2ac467e6c929010..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_5.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()D - .limit stack 2 - .limit locals 1 - - fconst_0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_5.java deleted file mode 100644 index 62063b13f4c5d1a7325e39a1eb5495d4ac44d60a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_5 { - - public double run() { - return 0d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_6.j deleted file mode 100644 index 4f72ff5187362649637fa0d511293f3f8322377d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_6.j +++ /dev/null @@ -1,90 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_6.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit locals 12 - .limit stack 6 - - dconst_1 - dstore_1 - ldc2_w 2.0 - dstore_3 - ldc2_w 3.0 - dstore 5 - - ldc2_w 4.0 - - invokestatic dxc/junit/opcodes/dreturn/jm/T_dreturn_6/test()D - - ldc2_w 4444.0 - dcmpl - ifne Label1 - - ldc2_w 4.0 - dcmpl - ifne Label0 - - dload_1 - dconst_1 - dcmpl - ifne Label0 - - dload_3 - ldc2_w 2.0 - dcmpl - ifne Label0 - - dload 5 - ldc2_w 3.0 - dcmpl - ifne Label0 - - ldc2_w 123456.0 - dreturn - -Label1: - pop2 -Label0: - dconst_0 - dreturn - -.end method - -.method private static test()D - .limit locals 8 - .limit stack 4 - - ldc2_w 1111.0 - dstore_1 - ldc2_w 2222.0 - dstore_3 - ldc2_w 3333.0 - dstore 5 - - ldc2_w 5555.0 - - ldc2_w 4444.0 - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_6.java deleted file mode 100644 index e3c26815e644658115fbfc7bd2f6d0a08df8d2a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_6.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_6 { - - public double run() { - return 123456d; - } - - private static double test() { - double a = 1111d; - double b = 2222d; - double c = 3333d; - return 4444d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_7.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_7.j deleted file mode 100644 index 2297b9f5cccdf4478e422076c53f51b974b97c3c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_7.j +++ /dev/null @@ -1,166 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_7.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_7 -.super java/lang/Object -.implements java/lang/Runnable - -.field value D -.field failed Z - -.method public ()V - .limit stack 3 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - dconst_0 - putfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.value D - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.failed Z - - return - -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label4: - iload_1 - sipush 1000 - if_icmpge Label3 - - aload_0 - invokespecial dxc/junit/opcodes/dreturn/jm/T_dreturn_7/test()D - pop2 - - iinc 1 1 - - goto Label4 - - -Label3: - return - -.end method - - - -.method private synchronized test()D - .limit stack 5 - .limit locals 3 - -.line 16 - aload_0 - dup - getfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.value D - dup2 - dstore_1 - - dconst_1 - dadd - putfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.value D - - dload_1 - dconst_1 - dadd - dstore_1 - - invokestatic java/lang/Thread/yield()V - - dload_1 - aload_0 - getfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.value D - dcmpl - ifeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.failed Z - -Label0: - dload_1 - dreturn -.end method - - - -.method public static execute()Z - .limit stack 5 - .limit locals 4 - - new dxc/junit/opcodes/dreturn/jm/T_dreturn_7 - dup - invokespecial dxc/junit/opcodes/dreturn/jm/T_dreturn_7/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: ; exception handler - astore_3 - goto Label3 - -Label0: - aload_0 - getfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.value D - ldc2_w 2000.0 - dcmpl - ifne Label3 - - aload_0 - getfield dxc.junit.opcodes.dreturn.jm.T_dreturn_7.failed Z - ifne Label3 - - iconst_1 - ireturn - -Label3: - iconst_0 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_7.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_7.java deleted file mode 100644 index d02da66185fd79b8401200869b72c2e570f6045d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_7.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_7 implements Runnable { - public final static int CNT = 1000; - double value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized double test() { - value++; - double c = value; - Thread.yield(); - if(c != value) - failed = true; - return c; - } - - public static boolean execute() { - T_dreturn_7 test = new T_dreturn_7(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_8.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_8.j deleted file mode 100644 index 9b8b0b94e907066be9b33063f00be54ee51a8690..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_8.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_8.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private synchronized test()D - .limit stack 2 - aload_0 - monitorexit - dconst_0 - dreturn -.end method - - - -.method public run()Z - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/dreturn/jm/T_dreturn_8/test()D - pop2 - - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_8.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_8.java deleted file mode 100644 index 27aa4098ee5903e641d81889e8aee42cf81f7cf1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_8.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_8 { - - private synchronized double test() { - return 0d; - } - - public boolean run() { - test(); - return true; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_9.j b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_9.j deleted file mode 100644 index 2895b44cb1f1fa06f9394c1fb58f2aaa26442008..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dreturn_9.java -.class public dxc/junit/opcodes/dreturn/jm/T_dreturn_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()D - .limit stack 2 - .limit locals 1 - - aload_0 - monitorenter - - dconst_1 - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_9.java b/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_9.java deleted file mode 100644 index 9d9c41d0f83c7ae2b9bb7526d2c59359e794f850..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dreturn/jm/T_dreturn_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dreturn.jm; - -public class T_dreturn_9 { - - public double run() { - return 1d; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/Test_dstore.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/Test_dstore.java deleted file mode 100644 index 3288dd7979cff7684ce5a3eb5aa122b2e556c0e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/Test_dstore.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dstore.jm.T_dstore_1; -import dxc.junit.opcodes.dstore.jm.T_dstore_1_w; -import dxc.junit.opcodes.dstore.jm.T_dstore_5; -import dxc.junit.opcodes.dstore.jm.T_dstore_5_w; - -public class Test_dstore extends DxTestCase { - - /* - * NORMAL dstore VERSION - */ - - /** - * @title dstore 0 - */ - public void testN1() { - assertEquals(1d, T_dstore_1.run()); - } - - /** - * @title dstore 255 - */ - public void testN2() { - assertEquals(1d, T_dstore_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dstore.jm.T_dstore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dstore.jm.T_dstore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dstore.jm.T_dstore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE dstore VERSION - */ - - /** - * @title dstore_w 0 - */ - public void testN3() { - assertEquals(1d, T_dstore_1_w.run()); - } - - /** - * @title dstore 257 - */ - public void testN4() { - assertEquals(1d, T_dstore_5_w.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dstore.jm.T_dstore_2_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.dstore.jm.T_dstore_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.dstore.jm.T_dstore_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1.j deleted file mode 100644 index dfc1a4e763287250563eabf22d7c800a45de38b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_1.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 2 - - dconst_1 - dstore 0 - dconst_0 - dload 0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1.java deleted file mode 100644 index 211bf9e47d60295e955852bf01a2bd8b01b6380d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1_w.j deleted file mode 100644 index 3bd52da0c5c61d7253ed5a6c5ab04b38f998856f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_1_w.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_1_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 2 - - dconst_1 - dstore_w 0 - dconst_0 - dload 0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1_w.java deleted file mode 100644 index c855bb46616877c3ec785a5127816c5bcf9e2fc5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_1_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_1_w { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2.j deleted file mode 100644 index 1e7e045c64a200d483decf29313dfbf3bc589465..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_2.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dstore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2.java deleted file mode 100644 index 1a3e8657268174ec36576d11a147441a9dc73fc0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2_w.j deleted file mode 100644 index 95c3b6c0c91ec53ab97c98a01da01426226c867e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_2_w.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dstore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2_w.java deleted file mode 100644 index 9db43ff4aa3aa993305b2ac349b427602dc8b77c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_2_w { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3.j deleted file mode 100644 index ca8d79fa2f00678d1c1206903fc9cac3b0de1f97..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_3.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - dstore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3.java deleted file mode 100644 index f85878947412848db531718da052b4e9da537d9f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3_w.j deleted file mode 100644 index 9f9025414b46c2eb9c58d33263918131613eb76a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_3_w.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - dstore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3_w.java deleted file mode 100644 index e0d3e8fb2ae0998fb20d9a7b3a4a3529e2d4c573..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_3_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_3_w { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4.j deleted file mode 100644 index 45912a845e53759e045bd824915bc874216b1be1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_4.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - dstore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4.java deleted file mode 100644 index 8aef1df4d71481e5fe76324a53d6f71b8e165627..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4_w.j deleted file mode 100644 index 95fc6f68b0b0110a3efd310594b3f02e8d915955..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_4_w.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - dstore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4_w.java deleted file mode 100644 index 0e34bdd0e129c785d629acaa0ec3d695c6297b2a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_4_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_4_w { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5.j deleted file mode 100644 index b92bac5d4923f8471d91c1574e3587c92e9152e7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_5.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore 255 - dconst_0 - dload 255 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5.java deleted file mode 100644 index 5bfd48b8b438215bc19640a3fb598a80231bdf30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_5 { - - public static double run() { - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5_w.j deleted file mode 100644 index 3efeed07da0cfe0128ed073c617c0c52d80583b9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_5_w.java -.class public dxc/junit/opcodes/dstore/jm/T_dstore_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore_w 257 - dconst_0 - dload 257 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5_w.java deleted file mode 100644 index 6a5bf9714dcd1371fc609652f2e2017bf2ec11ff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore/jm/T_dstore_5_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore.jm; - -public class T_dstore_5_w { - - public static double run() { - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/Test_dstore_0.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/Test_dstore_0.java deleted file mode 100644 index c365e69fd37bc0543376f95ea754df3ff00a1d60..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/Test_dstore_0.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dstore_0.jm.T_dstore_0_1; -import dxc.junit.opcodes.dstore_0.jm.T_dstore_0_5; - -public class Test_dstore_0 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(1d, T_dstore_0_1.run()); - } - - /** - * @title equality of dstore_ and dstore - */ - public void testN2() { - assertTrue(T_dstore_0_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dstore_0.jm.T_dstore_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dstore_0.jm.T_dstore_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dstore_0.jm.T_dstore_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_1.j deleted file mode 100644 index c145f7f146b01eff75a56c8c2c21c3ccfa094a47..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_0_1.java -.class public dxc/junit/opcodes/dstore_0/jm/T_dstore_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 2 - - dconst_1 - dstore_0 - dconst_0 - dload_0 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_1.java deleted file mode 100644 index 225c851e052abe04780b5aa7c64f802f09d97722..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_0.jm; - -public class T_dstore_0_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_2.j deleted file mode 100644 index 2fc0cf36fec648e0d58bf816d585b2c08036c0a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_0_2.java -.class public dxc/junit/opcodes/dstore_0/jm/T_dstore_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dstore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_2.java deleted file mode 100644 index 468a023ee65958435f3a9c99e5d129ca1777c755..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_0.jm; - -public class T_dstore_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_3.j deleted file mode 100644 index a401b73ce4cb12560b084672d89281b3a4efbbed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_0_3.java -.class public dxc/junit/opcodes/dstore_0/jm/T_dstore_0_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - dstore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_3.java deleted file mode 100644 index d22bee48ddfd0a47f038198fbd6beba121e44aad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_0.jm; - -public class T_dstore_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_4.j deleted file mode 100644 index c3ad00d475c80054ca3e8e5faa338d8ca7fa14f1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_0_4.java -.class public dxc/junit/opcodes/dstore_0/jm/T_dstore_0_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - dstore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_4.java deleted file mode 100644 index 80fd08e0fbea2cadaaff42916ef012c5bf03c373..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_0.jm; - -public class T_dstore_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_5.j deleted file mode 100644 index 6a7124b0460a1983675a3a5dd65e5ac1ae3a304b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_0_5.java -.class public dxc/junit/opcodes/dstore_0/jm/T_dstore_0_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 2 - - dconst_1 - dstore_0 - dload_0 - - dconst_1 - dstore 0 - dload_0 - - dcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_5.java deleted file mode 100644 index e0596d4d0a41e27fbf59b3f2e343a07cacb5f76f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_0/jm/T_dstore_0_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_0.jm; - -public class T_dstore_0_5 { - - public static boolean run() { - double i = 2d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/Test_dstore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/Test_dstore_1.java deleted file mode 100644 index 54dda388cc5982a42c15598c1857630704f91303..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/Test_dstore_1.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dstore_1.jm.T_dstore_1_1; -import dxc.junit.opcodes.dstore_1.jm.T_dstore_1_5; - -public class Test_dstore_1 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(1d, T_dstore_1_1.run()); - } - - /** - * @title equality of dstore_ and dstore - */ - public void testN2() { - assertTrue(T_dstore_1_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dstore_1.jm.T_dstore_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dstore_1.jm.T_dstore_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dstore_1.jm.T_dstore_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_1.j deleted file mode 100644 index 99f316a1914e733f5d86700a4e0f62aeee36e3ed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_1_1.java -.class public dxc/junit/opcodes/dstore_1/jm/T_dstore_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 3 - - dconst_1 - dstore_1 - dconst_0 - dload_1 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_1.java deleted file mode 100644 index f57c81be9df6f15745e124ebfda0f8dea54618bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_1.jm; - -public class T_dstore_1_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_2.j deleted file mode 100644 index 32d1a605610360df0e7eefc9ef3c9051ddc70246..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_1_2.java -.class public dxc/junit/opcodes/dstore_1/jm/T_dstore_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dstore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_2.java deleted file mode 100644 index 292b8602261e8d1bc02f5e7cd9c6d52bde8e665f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_1.jm; - -public class T_dstore_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_3.j deleted file mode 100644 index 6dd7febd1f897facac6ee7db1c561fefc1af01dc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_1_3.java -.class public dxc/junit/opcodes/dstore_1/jm/T_dstore_1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - dstore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_3.java deleted file mode 100644 index 3f55d47a7196fadb4a74bf60efcc61a43ce8f0a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_1.jm; - -public class T_dstore_1_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_4.j deleted file mode 100644 index bfce7ba38e152bdb83758b3af6abcb6aca3304d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_1_4.java -.class public dxc/junit/opcodes/dstore_1/jm/T_dstore_1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - dstore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_4.java deleted file mode 100644 index 242e0a5d8f74b526cbdaecddf2533ecd36f529ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_1.jm; - -public class T_dstore_1_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_5.j deleted file mode 100644 index 12dd5a6d86f02e3fb1917196cec55a335d00e515..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_1_5.java -.class public dxc/junit/opcodes/dstore_1/jm/T_dstore_1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 3 - - dconst_1 - dstore_1 - dload_1 - - dconst_1 - dstore 1 - dload_1 - - dcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_5.java deleted file mode 100644 index 492506ad7bc39daa2815173a76b923d15e06d592..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_1/jm/T_dstore_1_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_1.jm; - -public class T_dstore_1_5 { - - public static boolean run() { - double i = 2d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/Test_dstore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/Test_dstore_2.java deleted file mode 100644 index c00b007cfc24f0acaca14c64958f5b8f80c232b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/Test_dstore_2.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dstore_2.jm.T_dstore_2_1; -import dxc.junit.opcodes.dstore_2.jm.T_dstore_2_5; - -public class Test_dstore_2 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(1d, T_dstore_2_1.run()); - } - - /** - * @title equality of dstore_ and dstore - */ - public void testN2() { - assertTrue(T_dstore_2_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dstore_2.jm.T_dstore_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dstore_2.jm.T_dstore_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dstore_2.jm.T_dstore_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_1.j deleted file mode 100644 index c2a76bbe557c8f0d0c81ca551c2a9cad449c2484..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_2_1.java -.class public dxc/junit/opcodes/dstore_2/jm/T_dstore_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_2 - dconst_0 - dload_2 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_1.java deleted file mode 100644 index ab0b839bd1370d10d0cbddfb4a31d1d1fbf76bd1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_2.jm; - -public class T_dstore_2_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_2.j deleted file mode 100644 index 4f07c20700d7d7a2eb5ad08c5459484be9248836..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_2_2.java -.class public dxc/junit/opcodes/dstore_2/jm/T_dstore_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dstore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_2.java deleted file mode 100644 index 3fc372917f50f4279fef5f955b9516c5d1b5b233..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_2.jm; - -public class T_dstore_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_3.j deleted file mode 100644 index 07f8d4d0fe6b8eb85119f0a968e274ee9f416c20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_2_3.java -.class public dxc/junit/opcodes/dstore_2/jm/T_dstore_2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - dstore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_3.java deleted file mode 100644 index 3e292147b6d22fef801000b3224d73cedffac3a0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_2.jm; - -public class T_dstore_2_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_4.j deleted file mode 100644 index eba9a713ed7044c29dad74139ddd5bbbf497d493..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_2_4.java -.class public dxc/junit/opcodes/dstore_2/jm/T_dstore_2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - dstore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_4.java deleted file mode 100644 index 3b9bb037931228102fb52ce7d973a104acb36a36..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_2.jm; - -public class T_dstore_2_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_5.j deleted file mode 100644 index 1b9a6149171caf1c600196988d640e59b7d4ab04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_2_5.java -.class public dxc/junit/opcodes/dstore_2/jm/T_dstore_2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_2 - dload_2 - - dconst_1 - dstore 2 - dload_2 - - dcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_5.java deleted file mode 100644 index 556be2cf7a5335d0f75338f0ed647a7d2fcd216f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_2/jm/T_dstore_2_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_2.jm; - -public class T_dstore_2_5 { - - public static boolean run() { - double i = 2d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/Test_dstore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/Test_dstore_3.java deleted file mode 100644 index 860a6148560ef2426543d95f982a2ce538998e23..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/Test_dstore_3.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dstore_3.jm.T_dstore_3_1; -import dxc.junit.opcodes.dstore_3.jm.T_dstore_3_5; - -public class Test_dstore_3 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(1d, T_dstore_3_1.run()); - } - - /** - * @title equality of dstore_ and dstore - */ - public void testN2() { - assertTrue(T_dstore_3_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dstore_3.jm.T_dstore_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dstore_3.jm.T_dstore_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dstore_3.jm.T_dstore_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_1.j deleted file mode 100644 index 3738af3ecff61e79be592bc7c0acad7ffe336527..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_3_1.java -.class public dxc/junit/opcodes/dstore_3/jm/T_dstore_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()D - .limit stack 4 - .limit locals 5 - - dconst_1 - dstore_3 - dconst_0 - dload_3 - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_1.java deleted file mode 100644 index 847e07af6027f9c7b7644a5947ec85251bf81f3b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_3.jm; - -public class T_dstore_3_1 { - - public static double run() { - return 1d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_2.j deleted file mode 100644 index 626d1e4730a8ba1f84ecef5cacdb52e5d81697e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_3_2.java -.class public dxc/junit/opcodes/dstore_3/jm/T_dstore_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - dstore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_2.java deleted file mode 100644 index 21293d25d3220db464e73e45d36eaa50b7b0e448..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_3.jm; - -public class T_dstore_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_3.j deleted file mode 100644 index 9d232e7d7825a3ff6e4c3e08681d677d246ea56e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_3_3.java -.class public dxc/junit/opcodes/dstore_3/jm/T_dstore_3_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - fconst_1 - dstore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_3.java deleted file mode 100644 index b0ac2a0326e7cb6df43ccb25e79ffa5693f6a116..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_3.jm; - -public class T_dstore_3_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_4.j deleted file mode 100644 index 2250519f6d11468ebbeca0327536109630ee4be0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_3_4.java -.class public dxc/junit/opcodes/dstore_3/jm/T_dstore_3_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - lconst_1 - dstore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_4.java deleted file mode 100644 index 7f1a8d48eaa9a3f2cc43c4517d01b9dda6f60bce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_3.jm; - -public class T_dstore_3_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_5.j deleted file mode 100644 index 48088940c387e2941fa6bf563dcda7bd9017d973..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dstore_3_5.java -.class public dxc/junit/opcodes/dstore_3/jm/T_dstore_3_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 4 - .limit locals 5 - - dconst_1 - dstore_3 - dload_3 - - dconst_1 - dstore 3 - dload_3 - - dcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_5.java deleted file mode 100644 index f1b6ce4ab09bec642890325c58042aacf78b47f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dstore_3/jm/T_dstore_3_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dstore_3.jm; - -public class T_dstore_3_5 { - - public static boolean run() { - double i = 2d; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/Test_dsub.java b/tools/dx-tests/src/dxc/junit/opcodes/dsub/Test_dsub.java deleted file mode 100644 index 25ae6eb8ced6bea25cb7d3a7503003f91c8ca205..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/Test_dsub.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dsub; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dsub.jm.T_dsub_1; - -public class Test_dsub extends DxTestCase { - - /** - * @title Arguments = 2.7d, 3.14d - */ - public void testN1() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(-0.43999999999999995d, t.run(2.7d, 3.14d)); - } - - /** - * @title Arguments = 0, -3.14d - */ - public void testN2() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(3.14d, t.run(0, -3.14d)); - } - - /** - * @title Arguments = -3.14d, -2.7d - */ - public void testN3() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(-0.43999999999999995d, t.run(-3.14d, -2.7d)); - } - - /** - * @title Arguments = Double.MAX_VALUE, Double.NaN - */ - public void testB1() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.NEGATIVE_INFINITY - */ - public void testB2() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, - Double.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, - * Double.POSITIVE_INFINITY - */ - public void testB3() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, - Double.POSITIVE_INFINITY)); - } - - /** - * @title Arguments = Double.POSITIVE_INFINITY, -2.7d - */ - public void testB4() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, - -2.7d)); - } - - /** - * @title Arguments = +0, -0d - */ - public void testB5() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(+0d, t.run(+0d, -0d)); - } - - /** - * @title Arguments = -0d, -0d - */ - public void testB6() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(0d, t.run(-0d, -0d)); - } - - /** - * @title Arguments = +0d, +0d - */ - public void testB7() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(+0d, t.run(+0d, +0d)); - } - - /** - * @title Arguments = 2.7d, 2.7d - */ - public void testB8() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(0d, t.run(2.7d, 2.7d)); - } - - /** - * @title Arguments = Double.MAX_VALUE, Double.MAX_VALUE - */ - public void testB9() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(0d, t.run(Double.MAX_VALUE, Double.MAX_VALUE)); - } - - /** - * @title Arguments = Double.MIN_VALUE, 4.9E-324 - */ - public void testB10() { - T_dsub_1 t = new T_dsub_1(); - assertEquals(0d, t.run(Double.MIN_VALUE, 4.9E-324)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dsub.jm.T_dsub_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dsub.jm.T_dsub_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dsub.jm.T_dsub_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dsub.jm.T_dsub_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_1.j deleted file mode 100644 index 62af34329b4f385ce937860f45a71ac70dc6cd78..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dsub_1.java -.class public dxc/junit/opcodes/dsub/jm/T_dsub_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - dload_3 - dsub - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_1.java deleted file mode 100644 index ab16ff8a1ce300a95fde0ef3094fcbda604c101d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dsub.jm; - -public class T_dsub_1 { - - public double run(double a, double b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_2.j deleted file mode 100644 index 988f0279d4f4598f1b4119a0fab413f48f4c5cfd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dsub_2.java -.class public dxc/junit/opcodes/dsub/jm/T_dsub_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - dload_1 - ; dload_3 - dsub - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_2.java deleted file mode 100644 index f85699eba55390a0b70fdb9bd11d77a1fe97a683..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dsub.jm; - -public class T_dsub_2 { - - public double run(double a, double b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_3.j deleted file mode 100644 index 0e6e7dbc793bf27eab8cac88a4a36d6f71d8708d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dsub_3.java -.class public dxc/junit/opcodes/dsub/jm/T_dsub_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)D - .limit stack 4 - .limit locals 5 - fload_1 - dload_2 - dsub - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_3.java deleted file mode 100644 index e57d3c18d8cdfcc04cc16f5c3f2af53fa17ad0c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dsub.jm; - -public class T_dsub_3 { - - public double run(float a, double b) { - return (double)a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_4.j deleted file mode 100644 index e592dc35846bc6fe729f98241ca681e8a6ef4a02..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dsub_4.java -.class public dxc/junit/opcodes/dsub/jm/T_dsub_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JD)D - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 - dsub - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_4.java deleted file mode 100644 index 3dcd8c83a3b6cd02367a65bc684ed3e7aecc03b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dsub.jm; - -public class T_dsub_4 { - - public double run(long a, double b) { - return (double)a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_5.j deleted file mode 100644 index b83d875faaaafaaf49c94b011e7f419868074bfa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dsub_5.java -.class public dxc/junit/opcodes/dsub/jm/T_dsub_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DD)D - .limit stack 4 - .limit locals 5 - - dload_1 - aload_0 - dsub - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_5.java deleted file mode 100644 index 47ee270b1a5312d93a23c12b4cbe01d74d5dd715..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dsub/jm/T_dsub_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dsub.jm; - -public class T_dsub_5 { - - public double run(double a, double b) { - return a-b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/Test_dup.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/Test_dup.java deleted file mode 100644 index 5e848151804146409eaebe54e1f6dd39a925b46b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/Test_dup.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dup.jm.T_dup_1; -import dxc.junit.opcodes.dup.jm.T_dup_6; -import dxc.junit.opcodes.dup.jm.T_dup_7; - - -public class Test_dup extends DxTestCase { - - /** - * @title type of argument - int - */ - public void testN1() { - T_dup_1 t = new T_dup_1(); - assertTrue(t.run()); - } - - /** - * @title type of argument - float - */ - public void testN2() { - T_dup_6 t = new T_dup_6(); - assertTrue(t.run()); - } - - /** - * @title type of argument - reference - */ - public void testN3() { - T_dup_7 t = new T_dup_7(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try - { - Class.forName("dxc.junit.opcodes.dup.jm.T_dup_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try - { - Class.forName("dxc.junit.opcodes.dup.jm.T_dup_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try - { - Class.forName("dxc.junit.opcodes.dup.jm.T_dup_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try - { - Class.forName("dxc.junit.opcodes.dup.jm.T_dup_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_1.j deleted file mode 100644 index c1b71e51f460522871438b0c46a2d152281aa318..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_1.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_1.java -.class public dxc/junit/opcodes/dup/jm/T_dup_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - iconst_4 - dup - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_1.java deleted file mode 100644 index c1d2de7673aa1a6193d1db446057b365ccd73299..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup.jm; - -public class T_dup_1 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_2.j deleted file mode 100644 index fc18b596f40ece8240e766adcdad469387a29d3b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_2.java -.class public dxc/junit/opcodes/dup/jm/T_dup_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Z - .limit stack 2 - .limit locals 2 - ; iconst_4 - dup - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_2.java deleted file mode 100644 index a9729cf2956856efa097027cbe827c3b16360f5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup.jm; - -public class T_dup_2 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_3.j deleted file mode 100644 index 4414dc2564f3c650b10c6e1c9e461d7db201a33a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_3.java -.class public dxc/junit/opcodes/dup/jm/T_dup_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 3 - .limit locals 3 - dconst_1 - dup - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_3.java deleted file mode 100644 index 07c156dba897d749d7fe2d81167c51c6eb7dd6bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup.jm; - -public class T_dup_3 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_4.j deleted file mode 100644 index a200e95bdbdf6b5fc16e435832c8934575bfe1eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_4.java -.class public dxc/junit/opcodes/dup/jm/T_dup_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 3 - .limit locals 3 - - lconst_1 - dup - - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_4.java deleted file mode 100644 index f5a18196a33c0d2d38c9907a0a25577fba505679..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup.jm; - -public class T_dup_4 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_5.j deleted file mode 100644 index a346cd43e9b3bfdb08c17ddeb2d5a23462b8ee89..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_5.java -.class public dxc/junit/opcodes/dup/jm/T_dup_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 1 - .limit locals 1 - - iconst_4 - dup - - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_5.java deleted file mode 100644 index 28e1688c304e9c75976baacdf906c2a0fa3056ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup.jm; - -public class T_dup_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_6.j deleted file mode 100644 index 46c002aabb28207b786d383d32afbf4d22958f58..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_6.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_6.java -.class public dxc/junit/opcodes/dup/jm/T_dup_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - fconst_2 - dup - fcmpl - ifeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_6.java deleted file mode 100644 index 1ff2719d3b6a094ea5a23ca6ee84fc24126fe676..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup.jm; - -public class T_dup_6 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_7.j b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_7.j deleted file mode 100644 index 2e31bb8d140ea4e0f33501ca1df8c0910be66445..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_7.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_7.java -.class public dxc/junit/opcodes/dup/jm/T_dup_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - aload_0 - dup - if_acmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_7.java b/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_7.java deleted file mode 100644 index 17d9abef0e71e3849b8598631d69fa876d068531..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup/jm/T_dup_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup.jm; - -public class T_dup_7 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/Test_dup2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2/Test_dup2.java deleted file mode 100644 index c73ef3b8dcd9ff48d74629144537f07fc56f9dcc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/Test_dup2.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dup2.jm.T_dup2_1; -import dxc.junit.opcodes.dup2.jm.T_dup2_3; -import dxc.junit.opcodes.dup2.jm.T_dup2_4; -import dxc.junit.opcodes.dup2.jm.T_dup2_6; - -public class Test_dup2 extends DxTestCase { - - /** - * @title type of argument - int, int - */ - public void testN1() { - T_dup2_1 t = new T_dup2_1(); - assertTrue(t.run()); - } - - /** - * @title type of argument - float, float - */ - public void testN2() { - T_dup2_6 t = new T_dup2_6(); - assertTrue(t.run()); - } - - /** - * @title type of argument - double, int - */ - public void testN3() { - T_dup2_3 t = new T_dup2_3(); - assertTrue(t.run()); - } - - /** - * @title type of argument - long, int - */ - public void testN4() { - T_dup2_4 t = new T_dup2_4(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dup2.jm.T_dup2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dup2.jm.T_dup2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_1.j deleted file mode 100644 index 07a81b8f2d39efafab6ed21c812355d46e12c250..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_1.j +++ /dev/null @@ -1,57 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_1.java -.class public dxc/junit/opcodes/dup2/jm/T_dup2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 5 - .limit locals 2 - - iconst_3 - iconst_4 - dup2 - - iconst_4 - if_icmpne Label3 - - iconst_3 - if_icmpne Label2 - - iconst_4 - if_icmpne Label1 - - iconst_3 - if_icmpne Label0 - - iconst_1 - ireturn - -Label3: - pop -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_1.java deleted file mode 100644 index b72b82db845b3dfb79fc417736521dca1afe4bc5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2.jm; - -public class T_dup2_1 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_2.j deleted file mode 100644 index e7ad7f2bdcc8fe1f2965da054a13deb691af5a66..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_2.java -.class public dxc/junit/opcodes/dup2/jm/T_dup2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Z - .limit stack 5 - .limit locals 2 - iconst_4 - dup2 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_2.java deleted file mode 100644 index c2d0e438bf6dd166e33c365036d492c672b19a47..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2.jm; - -public class T_dup2_2 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_3.j deleted file mode 100644 index 5f526d427c8621963314f9a10523f54d02eadd54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_3.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_3.java -.class public dxc/junit/opcodes/dup2/jm/T_dup2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 6 - .limit locals 3 - dconst_1 - dup2 - - dcmpl - ifne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_3.java deleted file mode 100644 index aa2ac10ebb4f6dc960b97e74901592bbb8251bce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2.jm; - -public class T_dup2_3 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_4.j deleted file mode 100644 index 9424ac6c77d348f53a9b2a6a81a3a4ea5b230b44..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_4.java -.class public dxc/junit/opcodes/dup2/jm/T_dup2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 6 - .limit locals 3 - lconst_1 - dup2 - - lcmp - ifne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_4.java deleted file mode 100644 index f451f5a2d236cdde9ba3a405786274bbb2219387..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2.jm; - -public class T_dup2_4 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_5.j deleted file mode 100644 index 757caaa604c3721d0c4baa29e5d8f190f69f6f61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_5.java -.class public dxc/junit/opcodes/dup2/jm/T_dup2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 1 - - iconst_3 - iconst_4 - dup2 - - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_5.java deleted file mode 100644 index 2af55a23af9f30c8dfe7af228576d4dbcb9760ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2.jm; - -public class T_dup2_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_6.j deleted file mode 100644 index d68f7b074d03d9ccc2dd600bd18ffc5d54d693ff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_6.j +++ /dev/null @@ -1,61 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_6.java -.class public dxc/junit/opcodes/dup2/jm/T_dup2_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 5 - .limit locals 2 - - fconst_0 - fconst_1 - dup2 - - fconst_1 - fcmpl - ifne Label3 - - fconst_0 - fcmpl - ifne Label2 - - fconst_1 - fcmpl - ifne Label1 - - fconst_0 - fcmpl - ifne Label0 - - iconst_1 - ireturn - -Label3: - pop -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_6.java deleted file mode 100644 index 9fa9ff1842734699a0e89284e75272d85373de27..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2/jm/T_dup2_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2.jm; - -public class T_dup2_6 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/Test_dup2_x1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/Test_dup2_x1.java deleted file mode 100644 index 2ba5c11b9fc48e3b4d332b83e73be2bf56e76779..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/Test_dup2_x1.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dup2_x1.jm.T_dup2_x1_1; -import dxc.junit.opcodes.dup2_x1.jm.T_dup2_x1_3; -import dxc.junit.opcodes.dup2_x1.jm.T_dup2_x1_4; -import dxc.junit.opcodes.dup2_x1.jm.T_dup2_x1_6; - -public class Test_dup2_x1 extends DxTestCase { - - /** - * @title type of argument - int, int, int - */ - public void testN1() { - T_dup2_x1_1 t = new T_dup2_x1_1(); - assertTrue(t.run()); - } - - /** - * @title type of argument - float, float, float - */ - public void testN2() { - T_dup2_x1_6 t = new T_dup2_x1_6(); - assertTrue(t.run()); - } - - /** - * @title type of argument - double, int - */ - public void testN3() { - T_dup2_x1_3 t = new T_dup2_x1_3(); - assertTrue(t.run()); - } - - /** - * @title type of argument - long, int - */ - public void testN4() { - T_dup2_x1_4 t = new T_dup2_x1_4(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dup2_x1.jm.T_dup2_x1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dup2_x1.jm.T_dup2_x1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_1.j deleted file mode 100644 index 6d2c10696ec1294cffb137d02b9fd7e4e4ee0f16..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_1.j +++ /dev/null @@ -1,59 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x1_1.java -.class public dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 2 - - iconst_3 - iconst_4 - iconst_5 ; 3 4 5 - dup2_x1 ; 4 5 3 4 5 - iconst_5 - if_icmpne Label4 ; 4 5 3 4 - iconst_4 - if_icmpne Label3 ; 4 5 3 - iconst_3 - if_icmpne Label2 ; 4 5 - iconst_5 - if_icmpne Label1 ; 4 - iconst_4 - if_icmpne Label0 ; - - iconst_1 - ireturn - -Label4: - pop -Label3: - pop -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_1.java deleted file mode 100644 index 471e097b2f5e37d703a6a49c6afc1a0ff19c97c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x1.jm; - -public class T_dup2_x1_1 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_2.j deleted file mode 100644 index fbdd36bad91dc062848efd431e0b1a14ff3d5a29..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x1_2.java -.class public dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Z - .limit stack 4 - .limit locals 2 - iconst_3 - iconst_4 - ;iconst_5 - dup2_x1 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_2.java deleted file mode 100644 index afa7a67138a9d74b01851ede5cb7c3c07744b50d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x1.jm; - -public class T_dup2_x1_2 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_3.j deleted file mode 100644 index 23c3cf8edfe20c3484176ce8590c36730e5f89f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_3.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x1_3.java -.class public dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 3 - - iconst_5 - dconst_1 - dup2_x1 ; [1] 5 [1] - - dconst_1 ; [1] 5 [1] [1] - dcmpl ; [1] 5 - ifne Label2 - iconst_5 ; [1] 5 5 - if_icmpne Label1 - dconst_1 ; [1][1] - dcmpl ; - ifne Label0 - - iconst_1 - ireturn - - Label2: - pop - Label1: - pop2 - Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_3.java deleted file mode 100644 index fdd9b7b442654406afcb28b87532397678d15739..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x1.jm; - -public class T_dup2_x1_3 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_4.j deleted file mode 100644 index c719ab64ba2c6266625d368e8789d5b7fb0979a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_4.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x1_4.java -.class public dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 3 - - iconst_5 - lconst_1 - dup2_x1 ; [1] 5 [1] - - lconst_1 ; [1] 5 [1] [1] - lcmp ; [1] 5 - ifne Label2 - iconst_5 ; [1] 5 5 - if_icmpne Label1 - lconst_1 ; [1][1] - lcmp ; - ifne Label0 - - iconst_1 - ireturn - - Label2: - pop - Label1: - pop2 - Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_4.java deleted file mode 100644 index 92e6cd2708fb65d4c85fc76510727138e454dee5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x1.jm; - -public class T_dup2_x1_4 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_5.j deleted file mode 100644 index 81a58364c539492539830b14e3c05931a846def6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_5.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x1_5.java -.class public dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - .limit locals 1 - - iconst_3 - iconst_4 - iconst_5 - dup2_x1 - - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_5.java deleted file mode 100644 index 46036a85c9b2306d6550dc99c450f48785be5342..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x1.jm; - -public class T_dup2_x1_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_6.j deleted file mode 100644 index 45cd2b2fcf1044e396bac6febc7dc62bcf1ed99b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_6.j +++ /dev/null @@ -1,64 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x1_6.java -.class public dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 2 - - fconst_0 - fconst_1 - fconst_2 ; 0 1 2 - dup2_x1 ; 1 2 0 1 2 - fconst_2 - fcmpl ; 1 2 0 1 - ifne Label4 - fconst_1 - fcmpl ; 1 2 0 - ifne Label3 - fconst_0 - fcmpl ; 1 2 - ifne Label2 - fconst_2 - fcmpl ; 1 - ifne Label1 - fconst_1 - fcmpl ; - ifne Label0 - - iconst_1 - ireturn - -Label4: - pop -Label3: - pop -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_6.java deleted file mode 100644 index 050d49c92b5fee60f31839d618498d906a71f68b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x1/jm/T_dup2_x1_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x1.jm; - -public class T_dup2_x1_6 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/Test_dup2_x2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/Test_dup2_x2.java deleted file mode 100644 index e211f3ebe2cda560b4a4c28b1d84aee62206ddf8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/Test_dup2_x2.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dup2_x2.jm.T_dup2_x2_1; -import dxc.junit.opcodes.dup2_x2.jm.T_dup2_x2_2; -import dxc.junit.opcodes.dup2_x2.jm.T_dup2_x2_3; -import dxc.junit.opcodes.dup2_x2.jm.T_dup2_x2_4; -import dxc.junit.opcodes.dup2_x2.jm.T_dup2_x2_5; - -public class Test_dup2_x2 extends DxTestCase { - - /** - * @title type of argument - int, int, int, int - */ - public void testN1() { - T_dup2_x2_1 t = new T_dup2_x2_1(); - assertTrue(t.run()); - } - - /** - * @title type of argument - float, float, float, float - */ - public void testN2() { - T_dup2_x2_2 t = new T_dup2_x2_2(); - assertTrue(t.run()); - } - - /** - * @title type of argument - double, float, int - */ - public void testN3() { - T_dup2_x2_3 t = new T_dup2_x2_3(); - assertTrue(t.run()); - } - - /** - * @title type of argument - int, float, long - */ - public void testN4() { - T_dup2_x2_4 t = new T_dup2_x2_4(); - assertTrue(t.run()); - } - - /** - * @title type of argument - double, long - */ - public void testN5() { - T_dup2_x2_5 t = new T_dup2_x2_5(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dup2_x2.jm.T_dup2_x2_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dup2_x2.jm.T_dup2_x2_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_1.j deleted file mode 100644 index b7be3038a674100373087449c7d03b52b038e562..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_1.j +++ /dev/null @@ -1,64 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x2_1.java -.class public dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 2 - - iconst_2 - iconst_3 - iconst_4 - iconst_5 ; 2 3 4 5 - dup2_x2 ; 4 5 2 3 4 5 - iconst_5 - if_icmpne Label5 ; 4 5 2 3 4 - iconst_4 - if_icmpne Label4 ; 4 5 2 3 - iconst_3 - if_icmpne Label3 ; 4 5 2 - iconst_2 - if_icmpne Label2 ; 4 5 - iconst_5 - if_icmpne Label1 ; 4 - iconst_4 - if_icmpne Label0 ; 4 - - iconst_1 - ireturn - -Label5: - pop -Label4: - pop -Label3: - pop -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_1.java deleted file mode 100644 index 3d02ff348d92961926773b8c7e009a4493daa8da..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2.jm; - -public class T_dup2_x2_1 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_2.j deleted file mode 100644 index aa231cf0999ba98e4ea57eb435d7283fcf59d42b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_2.j +++ /dev/null @@ -1,75 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x2_2.java -.class public dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 2 - - fconst_2 - ldc 3.0f - ldc 4.0f - ldc 5.0f ; 2 3 4 5 - dup2_x2 ; 4 5 2 3 4 5 - - ldc 5.0f - fcmpl ; 4 5 2 3 4 - ifne Label5 - - ldc 4.0f - fcmpl ; 4 5 2 3 - ifne Label4 - - ldc 3.0f - fcmpl ; 4 5 2 - ifne Label3 - - fconst_2 - fcmpl ; 4 5 - ifne Label2 - - ldc 5.0f - fcmpl ; 4 - ifne Label1 - - ldc 4.0f - fcmpl ; - ifne Label0 - - iconst_1 - ireturn - -Label5: - pop -Label4: - pop -Label3: - pop -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_2.java deleted file mode 100644 index 12f6dbd6616acc47c2ae6fccc724e9deb5545d23..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2.jm; - -public class T_dup2_x2_2 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_3.j deleted file mode 100644 index 6c42a29c72a932dd2716c1952090e0dfd2d8c40f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_3.j +++ /dev/null @@ -1,66 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x2_3.java -.class public dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 2 - - ldc2_w 3.0d - ldc 4.0f - iconst_5 ; [3] 4.0 5 - dup2_x2 ; 4.0 5 [3] 4.0 5 - - iconst_5 - if_icmpne Label4 ; 4.0 5 [3] 4.0 - - ldc 4.0f - fcmpl ; 4.0 5 [3] - ifne Label3 - - ldc2_w 3.0d - dcmpl ; 4.0 5 - ifne Label2 - - iconst_5 - if_icmpne Label1 ; 4.0 - - ldc 4.0f - fcmpl ; - ifne Label0 - - iconst_1 - ireturn - -Label4: - pop -Label3: - pop2 -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_3.java deleted file mode 100644 index e7140594357e87037de548674edde33ed6f0033a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2.jm; - -public class T_dup2_x2_3 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_4.j deleted file mode 100644 index 61533bf094fdcc9c6119682340e3ff057d2e411b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_4.j +++ /dev/null @@ -1,61 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x2_4.java -.class public dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 2 - - iconst_3 - ldc 4.0f - ldc2_w 5 ; 3 4.0 [5] - dup2_x2 ; [5] 3 4.0 [5] - - ldc2_w 5 - lcmp - ifne Label3 ; [5] 3 4.0 - - ldc 4.0f - fcmpl ; [5] 3 - ifne Label2 - - iconst_3 - if_icmpne Label1 ; [5] - - ldc2_w 5 - lcmp ; - ifne Label0 - - iconst_1 - ireturn - -Label3: - pop -Label2: - pop -Label1: - pop2 -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_4.java deleted file mode 100644 index 64f1368f94588e78b7371b4feef1786a33512468..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2.jm; - -public class T_dup2_x2_4 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_5.j deleted file mode 100644 index 58b4209621d9490e702f21917bb5979cc037d835..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_5.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x2_5.java -.class public dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 8 - .limit locals 2 - - ldc2_w 4.0d - ldc2_w 5 ; [4.] [5] - dup2_x2 ; [5] [4.] [5] - - ldc2_w 5 - lcmp - ifne Label2 ; [5] [4.] - - ldc2_w 4.0d - dcmpl ; [5] - ifne Label1 - - ldc2_w 5 - lcmp ; - ifne Label0 - - iconst_1 - ireturn - -Label2: - pop2 -Label1: - pop2 -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_5.java deleted file mode 100644 index e3ba641ca98006904379e3096fcffb2b4fd1fe29..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2.jm; - -public class T_dup2_x2_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_6.j deleted file mode 100644 index 1912e5eb3ca72d9d2227ce1309ea3c7e966a45a6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_6.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x2_6.java -.class public dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Z - .limit stack 8 - .limit locals 2 - iconst_2 - iconst_3 - iconst_4 - ;iconst_5 - dup2_x2 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_6.java deleted file mode 100644 index a38100d15b1b1a6424bf840e7f3aaf1dedfc097b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2.jm; - -public class T_dup2_x2_6 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_7.j b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_7.j deleted file mode 100644 index d4a70f212471ec588b3e5de2afee2a9d5796202c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_7.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup2_x2_7.java -.class public dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 5 - .limit locals 1 - - iconst_2 - iconst_3 - iconst_4 - iconst_5 - dup2_x2 - - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_7.java b/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_7.java deleted file mode 100644 index cf71ad1a9e1023e59a7e8a388fcfbb0aea73e38d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup2_x2/jm/T_dup2_x2_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup2_x2.jm; - -public class T_dup2_x2_7 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/Test_dup_x1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/Test_dup_x1.java deleted file mode 100644 index 6e3f57ea18347e414d7de26d6314665028a2e970..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/Test_dup_x1.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dup_x1.jm.T_dup_x1_1; -import dxc.junit.opcodes.dup_x1.jm.T_dup_x1_6; -import dxc.junit.opcodes.dup_x1.jm.T_dup_x1_7; -import dxc.junit.opcodes.dup_x1.jm.T_dup_x1_8; - -public class Test_dup_x1 extends DxTestCase { - - /** - * @title type of argument - int, int - */ - public void testN1() { - T_dup_x1_1 t = new T_dup_x1_1(); - assertTrue(t.run()); - } - - /** - * @title type of argument - float, float - */ - public void testN2() { - T_dup_x1_6 t = new T_dup_x1_6(); - assertTrue(t.run()); - } - - /** - * @title type of argument - float, int - */ - public void testN3() { - T_dup_x1_7 t = new T_dup_x1_7(); - assertTrue(t.run()); - } - - /** - * @title type of argument - reference - */ - public void testN4() { - T_dup_x1_8 t = new T_dup_x1_8(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dup_x1.jm.T_dup_x1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dup_x1.jm.T_dup_x1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dup_x1.jm.T_dup_x1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dup_x1.jm.T_dup_x1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_1.j deleted file mode 100644 index 4dc02d28c494ee7efe7ed61825555e8301ea5542..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_1.j +++ /dev/null @@ -1,53 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_1.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - .limit locals 2 - - iconst_4 - iconst_5 - dup_x1 - - iconst_5 - if_icmpne Label2 - - iconst_4 - if_icmpne Label1 - - iconst_5 - if_icmpne Label0 - - iconst_1 - ireturn - -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_1.java deleted file mode 100644 index 01af921806000196745f6d3d0d3212707e7177b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_1 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_2.j deleted file mode 100644 index fd6f37be4d169318f11e00a707b40721e2d3ea1b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_2.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Z - .limit stack 4 - .limit locals 2 - iconst_4 - ;iconst_5 - dup_x1 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_2.java deleted file mode 100644 index 8a21b44b4a707b5892ef147f0a93a168d7a7d97e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_2 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_3.j deleted file mode 100644 index f009a8168d1540dd66be6b148f1940169d413353..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_3.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 3 - .limit locals 3 - dconst_1 - dup_x1 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_3.java deleted file mode 100644 index 58ab4cf31389882de324200bc0ee1f59a9057b09..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_3 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_4.j deleted file mode 100644 index e6eaece1c6e54f313fd2c95b89bbed35b374b748..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_4.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 3 - .limit locals 3 - - lconst_1 - dup_x1 - - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_4.java deleted file mode 100644 index db5cbc3245b64de46289e095a86c273202329516..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_4 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_5.j deleted file mode 100644 index 79c3d8c181a7b855518d483f922b93136c126667..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_5.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 1 - - iconst_4 - iconst_5 - dup_x1 - - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_5.java deleted file mode 100644 index b1cc14a858bf814f53c2e340cbc00c4861b3504e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_6.j deleted file mode 100644 index 32d43ffd681a6c84cce3a21a7ad673eacba8a3bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_6.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_6.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - .limit locals 2 - - fconst_2 - fconst_1 - dup_x1 - - fconst_1 - fcmpl - ifne Label2 - - fconst_2 - fcmpl - ifne Label1 - - fconst_1 - fcmpl - ifne Label0 - - iconst_1 - ireturn - -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_6.java deleted file mode 100644 index 63d7511603f6d6150b4f4ba33be469baa6bb7d88..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_6 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_7.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_7.j deleted file mode 100644 index 6f28a6cd012fc3efcbc33e37bafb711d544c1e72..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_7.j +++ /dev/null @@ -1,54 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_7.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - .limit locals 2 - - fconst_2 - iconst_1 - dup_x1 - - iconst_1 - if_icmpne Label2 - - fconst_2 - fcmpl - ifne Label1 - - iconst_1 - if_icmpne Label0 - - iconst_1 - ireturn - -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn -.end method - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_7.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_7.java deleted file mode 100644 index ce0579d97568d638f876f7c4733d9d33e5f8c976..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_7 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_8.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_8.j deleted file mode 100644 index 726cc7c59827c7de33c1b508846378ff37977d7f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_8.j +++ /dev/null @@ -1,53 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x1_8.java -.class public dxc/junit/opcodes/dup_x1/jm/T_dup_x1_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - .limit locals 2 - - aload_0 - aconst_null - dup_x1 - - aconst_null - if_acmpne Label2 - - aload_0 - if_acmpne Label1 - - aconst_null - if_acmpne Label0 - - iconst_1 - ireturn - -Label2: - pop -Label1: - pop -Label0: - iconst_0 - ireturn -.end method - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_8.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_8.java deleted file mode 100644 index ed522281f42fb69586d05f3ef35eaf322488c985..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x1/jm/T_dup_x1_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x1.jm; - -public class T_dup_x1_8 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/Test_dup_x2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/Test_dup_x2.java deleted file mode 100644 index 38f165063cf05c83572e5129cab7644c0116e3b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/Test_dup_x2.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.dup_x2.jm.T_dup_x2_1; -import dxc.junit.opcodes.dup_x2.jm.T_dup_x2_6; -import dxc.junit.opcodes.dup_x2.jm.T_dup_x2_7; - -public class Test_dup_x2 extends DxTestCase { - - /** - * @title type of argument - int, int, int - */ - public void testN1() { - T_dup_x2_1 t = new T_dup_x2_1(); - assertTrue(t.run()); - } - - /** - * @title type of argument - float, float, float - */ - public void testN2() { - T_dup_x2_6 t = new T_dup_x2_6(); - assertTrue(t.run()); - } - - /** - * @title type of argument - double, int - */ - public void testN3() { - T_dup_x2_7 t = new T_dup_x2_7(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.dup_x2.jm.T_dup_x2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.dup_x2.jm.T_dup_x2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.dup_x2.jm.T_dup_x2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.dup_x2.jm.T_dup_x2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_1.j deleted file mode 100644 index 5c24e22eebe08834fa10dde4feb0ca0eb727bf32..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_1.j +++ /dev/null @@ -1,60 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x2_1.java -.class public dxc/junit/opcodes/dup_x2/jm/T_dup_x2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 5 - .limit locals 2 - - iconst_3 - iconst_4 - iconst_5 ; 3 4 5 - dup_x2 ; 5 3 4 5 - - iconst_5 ; 5 3 4 5 5 - if_icmpne Label3 ; 5 3 4 - - iconst_4 ; 5 3 4 4 - if_icmpne Label2 ; 5 3 - - iconst_3 ; 5 3 3 - if_icmpne Label1 ; 5 - - iconst_5 ; 5 5 - if_icmpne Label0 ; - - iconst_1 - ireturn - -Label3: - pop -Label2: - pop -Label1: - pop - -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_1.java deleted file mode 100644 index abeff61af912cded25f40c7d5f10ea8612604030..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2.jm; - -public class T_dup_x2_1 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_2.j deleted file mode 100644 index 6bf632864971a7ce5ee7e7ae86cb1893ffa4c5f0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x2_2.java -.class public dxc/junit/opcodes/dup_x2/jm/T_dup_x2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Z - .limit stack 4 - .limit locals 2 - iconst_4 - ;iconst_5 - dup_x2 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_2.java deleted file mode 100644 index b085559e34cab53a41759255731416fe14f0b6b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2.jm; - -public class T_dup_x2_2 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_3.j deleted file mode 100644 index 10a2800c8e6a0e6b125ade0ea75e8257f2e3c741..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x2_3.java -.class public dxc/junit/opcodes/dup_x2/jm/T_dup_x2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - .limit locals 3 - dconst_1 - dup_x2 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_3.java deleted file mode 100644 index ff5cd9db75a0d9d165a6a668fea2a97c64502286..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2.jm; - -public class T_dup_x2_3 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_4.j deleted file mode 100644 index db1f32b031c84cdd9465cba92b28631915b1ecc3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x2_4.java -.class public dxc/junit/opcodes/dup_x2/jm/T_dup_x2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - .limit locals 3 - - lconst_1 - dup_x2 - - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_4.java deleted file mode 100644 index 8a66e4234488e1a879e8850a29ff5f2cce389a54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2.jm; - -public class T_dup_x2_4 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_5.j deleted file mode 100644 index e952b56133471b4efe1f4eefaba76a7b14236dbd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_5.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x2_5.java -.class public dxc/junit/opcodes/dup_x2/jm/T_dup_x2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 3 - .limit locals 1 - - iconst_3 - iconst_4 - iconst_5 - dup_x2 - - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_5.java deleted file mode 100644 index c685f59715a5f76fc08857fc3adcfddde6ef27d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2.jm; - -public class T_dup_x2_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_6.j deleted file mode 100644 index f67f224910369191f25012c2bcc2786fd6581e2b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_6.j +++ /dev/null @@ -1,64 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x2_6.java -.class public dxc/junit/opcodes/dup_x2/jm/T_dup_x2_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 5 - .limit locals 2 - - fconst_0 - fconst_1 - fconst_2 ; 0 1 2 - dup_x2 ; 2 0 1 2 - - fconst_2 ; 2 0 1 2 2 - fcmpl ; 2 0 1 - ifne Label3 - - fconst_1 ; 2 0 1 1 - fcmpl ; 2 0 - ifne Label2 - - fconst_0 ; 2 0 0 - fcmpl ; 2 - ifne Label1 - - fconst_2 ; 2 2 - fcmpl ; - ifne Label0 - - iconst_1 - ireturn - -Label3: - pop -Label2: - pop -Label1: - pop - -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_6.java deleted file mode 100644 index 352f746cfcf2defd8f1a8478e418578617631a41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2.jm; - -public class T_dup_x2_6 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_7.j b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_7.j deleted file mode 100644 index 497fbca6c42fb6669e79bebd3da0544f70a60d0a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_7.j +++ /dev/null @@ -1,54 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_dup_x2_7.java -.class public dxc/junit/opcodes/dup_x2/jm/T_dup_x2_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 5 - .limit locals 2 - - dconst_1 - iconst_3 ; [1] 3 - dup_x2 ; 3 [1] 3 - - iconst_3 ; 3 [1] 3 3 - if_icmpne Label2 ; 3 [1] - - dconst_1 ; 3 [1] [1] - dcmpl ; 3 - ifne Label1 - - iconst_3 ; 0 - if_icmpne Label0 ; - - iconst_1 - ireturn - -Label2: - pop2 -Label1: - pop -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_7.java b/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_7.java deleted file mode 100644 index 342722255062a81a852c4e3065938d857667c162..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/dup_x2/jm/T_dup_x2_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.dup_x2.jm; - -public class T_dup_x2_7 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/Test_f2d.java b/tools/dx-tests/src/dxc/junit/opcodes/f2d/Test_f2d.java deleted file mode 100644 index af2a661d7bfea834c102b16c7e213479ce8d3a48..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/Test_f2d.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2d; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.f2d.jm.T_f2d_1; - -public class Test_f2d extends DxTestCase { - - /** - * @title Argument = 0.5 - */ - public void testN1() { - T_f2d_1 t = new T_f2d_1(); - assertEquals(0.5d, t.run(0.5f), 0d); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_f2d_1 t = new T_f2d_1(); - assertEquals(1d, t.run(1), 0d); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_f2d_1 t = new T_f2d_1(); - assertEquals(-1d, t.run(-1), 0d); - } - - /** - * @title Argument = Float.MAX_VALUE - */ - public void testB1() { - T_f2d_1 t = new T_f2d_1(); - double r = 0x1.fffffeP+127d; - assertEquals(r, t.run(Float.MAX_VALUE), 0d); - } - - /** - * @title Argument = Float.MIN_VALUE - */ - public void testB2() { - T_f2d_1 t = new T_f2d_1(); - double r = 0x0.000002P-126d; - assertEquals(r, t.run(Float.MIN_VALUE), 0d); - } - - /** - * @title Argument = -0 - */ - public void testB3() { - T_f2d_1 t = new T_f2d_1(); - assertEquals(-0d, t.run(-0), 0d); - } - - /** - * @title Argument = NaN - */ - public void testB4() { - T_f2d_1 t = new T_f2d_1(); - assertTrue(Double.isNaN(t.run(Float.NaN))); - } - - /** - * @title Argument = POSITIVE_INFINITY - */ - public void testB5() { - T_f2d_1 t = new T_f2d_1(); - assertTrue(Double.isInfinite(t.run(Float.POSITIVE_INFINITY))); - } - - /** - * @title Argument = NEGATIVE_INFINITY - */ - public void testB6() { - T_f2d_1 t = new T_f2d_1(); - assertTrue(Double.isInfinite(t.run(Float.NEGATIVE_INFINITY))); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.f2d.jm.T_f2d_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.f2d.jm.T_f2d_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.f2d.jm.T_f2d_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.f2d.jm.T_f2d_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.f2d.jm.T_f2d_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_1.j b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_1.j deleted file mode 100644 index 7c39854b8f97e6afa6400e0c48e1e4db11e9eb24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2d_1.java -.class public dxc/junit/opcodes/f2d/jm/T_f2d_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)D - .limit stack 2 - .limit locals 2 - fload_1 - f2d - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_1.java b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_1.java deleted file mode 100644 index 86f60246e7efeb3f70b3831c379e299c27577d3a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2d.jm; - -public class T_f2d_1 { - - public double run(float a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_2.j b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_2.j deleted file mode 100644 index 27d5ce9861c2e9ebfead5f3552b26a69b877ced0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2d_2.java -.class public dxc/junit/opcodes/f2d/jm/T_f2d_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(F)D - .limit stack 2 - .limit locals 2 - -; fload_1 - f2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_2.java b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_2.java deleted file mode 100644 index 92464dd5650404dcc4e499efc8e0be68703c6bc1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2d.jm; - -public class T_f2d_2 { - - public double run(float a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_3.j b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_3.j deleted file mode 100644 index 8bd52a7e96575892639d828dcb07796653c01052..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2d_3.java -.class public dxc/junit/opcodes/f2d/jm/T_f2d_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(D)D - .limit stack 2 - .limit locals 3 - - dload_1 - f2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_3.java b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_3.java deleted file mode 100644 index 7668c1909fc098bc931711dd16b616d4720c82e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2d.jm; - -public class T_f2d_3 { - - public double run(double a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_4.j b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_4.j deleted file mode 100644 index 0535199207af99762b859567f489d58b5a534591..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2d_4.java -.class public dxc/junit/opcodes/f2d/jm/T_f2d_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)D - .limit stack 2 - .limit locals 3 - - lload_1 -; l2f - f2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_4.java b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_4.java deleted file mode 100644 index 21cfd1a75b26a85c21544ccb450e27ca59fe128e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2d.jm; - -public class T_f2d_4 { - - public double run(long a) { - return (float) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_5.j b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_5.j deleted file mode 100644 index 4a25d44c5c39f62755e945e058bc194b19d29013..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2d_5.java -.class public dxc/junit/opcodes/f2d/jm/T_f2d_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(F)D - .limit stack 1 - .limit locals 2 - - fload_1 - f2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_5.java b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_5.java deleted file mode 100644 index b01c814f653183891fb3e1b2493454189f02a3fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2d.jm; - -public class T_f2d_5 { - - public double run(float a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_6.j b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_6.j deleted file mode 100644 index 2f90d81444b127b9a3437d7ccd6a46f88d921043..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2d_6.java -.class public dxc/junit/opcodes/f2d/jm/T_f2d_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)D - .limit stack 2 - .limit locals 2 - - aload_0 - f2d - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_6.java b/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_6.java deleted file mode 100644 index 8ac2102b65c66f47019ace687fa86be9e5fc4ce1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2d/jm/T_f2d_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2d.jm; - -public class T_f2d_6 { - - public double run(float a) { - return a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/Test_f2i.java b/tools/dx-tests/src/dxc/junit/opcodes/f2i/Test_f2i.java deleted file mode 100644 index 0968e9600af60d6ad22469a5ef4cf9a46d555eef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/Test_f2i.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2i; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.f2i.jm.T_f2i_1; - -public class Test_f2i extends DxTestCase { - - /** - * @title Argument = 2.999999f - */ - public void testN1() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(2, t.run(2.999999f)); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(1, t.run(1f)); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(-1, t.run(-1f)); - } - - /** - * @title Argument = -0f - */ - public void testB1() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(0, t.run(-0f)); - } - - /** - * @title Argument = Float.MAX_VALUE - */ - public void testB2() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(Integer.MAX_VALUE, t.run(Float.MAX_VALUE)); - } - - /** - * @title Argument = Float.MIN_VALUE - */ - public void testB3() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(0, t.run(Float.MIN_VALUE)); - } - - /** - * @title Argument = NaN - */ - public void testB4() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(0, t.run(Float.NaN)); - } - - /** - * @title Argument = POSITIVE_INFINITY - */ - public void testB5() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(Integer.MAX_VALUE, t.run(Float.POSITIVE_INFINITY)); - } - - /** - * @title Argument = NEGATIVE_INFINITY - */ - public void testB6() { - T_f2i_1 t = new T_f2i_1(); - assertEquals(Integer.MIN_VALUE, t.run(Float.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.f2i.jm.T_f2i_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.f2i.jm.T_f2i_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.f2i.jm.T_f2i_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.f2i.jm.T_f2i_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_1.j b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_1.j deleted file mode 100644 index ddc0dc01db51a878066980a5f12a858583e17542..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2i_1.java -.class public dxc/junit/opcodes/f2i/jm/T_f2i_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)I - .limit stack 2 - .limit locals 2 - fload_1 - f2i - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_1.java b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_1.java deleted file mode 100644 index b8ae3e2da4244ebdb168ddb987e0ab8b96ae1c22..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2i.jm; - -public class T_f2i_1 { - - public int run(float a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_2.j b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_2.j deleted file mode 100644 index 2676a82643b58689ca85f1757657f26ca1d273e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2i_2.java -.class public dxc/junit/opcodes/f2i/jm/T_f2i_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(F)I - .limit stack 2 - .limit locals 2 - -; fload_1 - f2i - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_2.java b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_2.java deleted file mode 100644 index 888f9a96db833f82400da0b00516d685f935fcb7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2i.jm; - -public class T_f2i_2 { - - public int run(float a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_3.j b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_3.j deleted file mode 100644 index 8a819ae687fc95847249891edbc1c77aff7f2efb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_3.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2i_3.java -.class public dxc/junit/opcodes/f2i/jm/T_f2i_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(D)I - .limit stack 2 - .limit locals 3 - - dload_1 - ; d2f - f2i - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_3.java b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_3.java deleted file mode 100644 index fb68cc89c17d131d7d062e89372b869fefbc6b57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2i.jm; - -public class T_f2i_3 { - - public int run(double a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_4.j b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_4.j deleted file mode 100644 index 9df3571e99524e6ee452b5ab8b676637072c4dba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2i_4.java -.class public dxc/junit/opcodes/f2i/jm/T_f2i_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(J)I - .limit stack 2 - .limit locals 3 - - lload_1 - - ;l2f - f2i - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_4.java b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_4.java deleted file mode 100644 index 7f487a5ca25faa6dc021f67ffc079853632156fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2i.jm; - -public class T_f2i_4 { - - public int run(long a) { - return (int)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_5.j b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_5.j deleted file mode 100644 index a18e6950deaf9239a6bf8642e339d68317ed95a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2i_5.java -.class public dxc/junit/opcodes/f2i/jm/T_f2i_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)I - .limit stack 1 - .limit locals 2 - - aload_0 - f2i - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_5.java b/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_5.java deleted file mode 100644 index d09408c9c76828936f803f4a1d9e5b7a0171da20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2i/jm/T_f2i_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2i.jm; - -public class T_f2i_5 { - - public int run(float a) { - return (int)a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/Test_f2l.java b/tools/dx-tests/src/dxc/junit/opcodes/f2l/Test_f2l.java deleted file mode 100644 index ae6f98fd7cd26e9463228c8a26ce45b5b4fcd08c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/Test_f2l.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2l; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.f2l.jm.T_f2l_1; - -public class Test_f2l extends DxTestCase { - - /** - * @title Argument = 2.999999f - */ - public void testN1() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(2l, t.run(2.999999f)); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(1l, t.run(1)); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(-1l, t.run(-1)); - } - - /** - * @title Argument = Float.MAX_VALUE - */ - public void testB1() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(Long.MAX_VALUE, t.run(Float.MAX_VALUE)); - } - - /** - * @title Argument = Float.MIN_VALUE - */ - public void testB2() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(0, t.run(Float.MIN_VALUE)); - } - - /** - * @title Argument = 0 - */ - public void testB3() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(0l, t.run(0)); - } - - /** - * @title Argument = NaN - */ - public void testB4() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(0l, t.run(Float.NaN)); - } - - /** - * @title Argument = POSITIVE_INFINITY - */ - public void testB5() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(Long.MAX_VALUE, t.run(Float.POSITIVE_INFINITY)); - } - - /** - * @title Argument = NEGATIVE_INFINITY - */ - public void testB6() { - T_f2l_1 t = new T_f2l_1(); - assertEquals(Long.MIN_VALUE, t.run(Float.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try - { - Class.forName("dxc.junit.opcodes.f2l.jm.T_f2l_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try - { - Class.forName("dxc.junit.opcodes.f2l.jm.T_f2l_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try - { - Class.forName("dxc.junit.opcodes.f2l.jm.T_f2l_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try - { - Class.forName("dxc.junit.opcodes.f2l.jm.T_f2l_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE5() { - try - { - Class.forName("dxc.junit.opcodes.f2l.jm.T_f2l_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_1.j b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_1.j deleted file mode 100644 index 0416969efeeab1e3b60acb628ab726c62a8003a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2l_1.java -.class public dxc/junit/opcodes/f2l/jm/T_f2l_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)J - .limit stack 2 - .limit locals 2 - fload_1 - f2l - lreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_1.java b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_1.java deleted file mode 100644 index 1aa20c1b9370127acf59730e33c5b1577e8bdb19..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2l.jm; - -public class T_f2l_1 { - - public long run(float a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_2.j b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_2.j deleted file mode 100644 index df4d9e013c87a00ab7b33430e825e1518b16a330..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2l_2.java -.class public dxc/junit/opcodes/f2l/jm/T_f2l_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(F)J - .limit stack 2 - .limit locals 2 - -; fload_1 - f2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_2.java b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_2.java deleted file mode 100644 index 61a830dd21fefad648fae8d81e17e911360d1c0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2l.jm; - -public class T_f2l_2 { - - public long run(float a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_3.j b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_3.j deleted file mode 100644 index 72ff8f11d8f49b013197135c7eeedbfa1f4a8d24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2l_3.java -.class public dxc/junit/opcodes/f2l/jm/T_f2l_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(D)J - .limit stack 2 - .limit locals 3 - - dload_1 - f2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_3.java b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_3.java deleted file mode 100644 index c755d866021e64fba2333a7d3180c15b81977238..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2l.jm; - -public class T_f2l_3 { - - public long run(double a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_4.j b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_4.j deleted file mode 100644 index 293a93841d4282185872a3438646c22e0099533b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2l_4.java -.class public dxc/junit/opcodes/f2l/jm/T_f2l_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)J - .limit stack 2 - .limit locals 3 - - lload_1 -; l2f - f2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_4.java b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_4.java deleted file mode 100644 index 1a822627ad41c81242b6aae58a848b5823ff99b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2l.jm; - -public class T_f2l_4 { - - public long run(long a) { - return (long)(float)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_5.j b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_5.j deleted file mode 100644 index 534ec84556b6d3e64a81dd37e4bd55bea5fee90e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2l_5.java -.class public dxc/junit/opcodes/f2l/jm/T_f2l_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(F)J - .limit stack 1 - .limit locals 2 - - fload_1 - f2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_5.java b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_5.java deleted file mode 100644 index ecc44b7503062eca8b41c6b2097dfd18fdb48b5b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2l.jm; - -public class T_f2l_5 { - - public long run(float a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_6.j b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_6.j deleted file mode 100644 index 55af8b4fb1a174f7dfc3e1a97a357f5a21c9c202..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_f2l_6.java -.class public dxc/junit/opcodes/f2l/jm/T_f2l_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)J - .limit stack 2 - .limit locals 2 - - aload_0 - f2l - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_6.java b/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_6.java deleted file mode 100644 index 998425520b7729f54356f016116b02c833f347d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/f2l/jm/T_f2l_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.f2l.jm; - -public class T_f2l_6 { - - public long run(float a) { - return (long)a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/Test_fadd.java b/tools/dx-tests/src/dxc/junit/opcodes/fadd/Test_fadd.java deleted file mode 100644 index a2fef55d0c154c3006f8e3771f64902dedd7b745..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/Test_fadd.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fadd; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fadd.jm.T_fadd_1; - -public class Test_fadd extends DxTestCase { - - /** - * @title Arguments = 2.7f, 3.14f - */ - public void testN1() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(5.84f, t.run(2.7f, 3.14f)); - } - - /** - * @title Arguments = 0, -3.14f - */ - public void testN2() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(-3.14f, t.run(0, -3.14f)); - } - - /** - * @title Arguments = -3.14f, -2.7f - */ - public void testN3() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(-5.84f, t.run(-3.14f, -2.7f)); - } - - - /** - * @title Arguments = Float.MAX_VALUE, Float.NaN - */ - public void testB1() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(3.3028235E38f, 0.11E38f)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.NEGATIVE_INFINITY - */ - public void testB2() { - T_fadd_1 t = new T_fadd_1(); - assertTrue(Float.isNaN(t.run(Float.POSITIVE_INFINITY, - Float.NEGATIVE_INFINITY))); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.POSITIVE_INFINITY - */ - public void testB3() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, - Float.POSITIVE_INFINITY)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, -2.7f - */ - public void testB4() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, - -2.7f)); - } - - /** - * @title Arguments = +0, -0f - */ - public void testB5() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(+0f, t.run(+0f, -0f)); - } - - /** - * @title Arguments = -0f, -0f - */ - public void testB6() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(-0f, t.run(-0f, -0f)); - } - - /** - * @title Arguments = -2.7f, 2.7f - */ - public void testB7() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(+0f, t.run(-2.7f, 2.7f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, Float.MAX_VALUE - */ - public void testB8() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.MAX_VALUE, - Float.MAX_VALUE)); - } - - /** - * @title Arguments = Float.MIN_VALUE, -1.4E-45f - */ - public void testB9() { - T_fadd_1 t = new T_fadd_1(); - assertEquals(0f, t.run(Float.MIN_VALUE, -1.4E-45f)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fadd.jm.T_fadd_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fadd.jm.T_fadd_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fadd.jm.T_fadd_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fadd.jm.T_fadd_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_1.j deleted file mode 100644 index 81aa01f27004a9b628355c8ac8f6d42aa3a5f99b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fadd_1.java -.class public dxc/junit/opcodes/fadd/jm/T_fadd_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - fload_2 - fadd - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_1.java deleted file mode 100644 index a0934072e1d43fe3d786a57086c8833f57df8a4a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fadd.jm; - -public class T_fadd_1 { - - public float run(float a, float b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_2.j deleted file mode 100644 index 57ee8d75985a1fb306eec6b768c5f64efe894a07..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fadd_2.java -.class public dxc/junit/opcodes/fadd/jm/T_fadd_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - ; fload_2 - fadd - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_2.java deleted file mode 100644 index 6dfb6869bee6d48857c2cd11cc905801eda2f004..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fadd.jm; - -public class T_fadd_2 { - - public float run(float a, float b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_3.j deleted file mode 100644 index dadd9e0ffd7d4240023030a7b96302580f54bea9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fadd_3.java -.class public dxc/junit/opcodes/fadd/jm/T_fadd_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)F - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - fadd - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_3.java deleted file mode 100644 index 3f26ebd5a0653072770596ba0e361af53a5b4dff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fadd.jm; - -public class T_fadd_3 { - - public float run(float a, double b) { - return a+(float)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_4.j deleted file mode 100644 index 6c6aac183c7f7bdc3ef3d18c7cee3a2235ba01f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fadd_4.java -.class public dxc/junit/opcodes/fadd/jm/T_fadd_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JF)F - .limit stack 3 - .limit locals 4 - - lload_1 -; l2f - fload_3 - fadd - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_4.java deleted file mode 100644 index 6224205d1c573154112f59019fe536a685bab957..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fadd.jm; - -public class T_fadd_4 { - - public float run(long a, float b) { - return (float)a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_5.j deleted file mode 100644 index e964fb453c0c8f5c53cf680c7cbb57ec7b34a863..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fadd_5.java -.class public dxc/junit/opcodes/fadd/jm/T_fadd_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - - fload_1 - aload_0 - fadd - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_5.java deleted file mode 100644 index 78855efe4b891d024b4a5fe3034b9328131ade19..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fadd/jm/T_fadd_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fadd.jm; - -public class T_fadd_5 { - - public float run(float a, float b) { - return a+b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/Test_faload.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/Test_faload.java deleted file mode 100644 index 6a04f7d1dc165daf2a4770dab66b18cdeb8e8118..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/Test_faload.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.faload.jm.T_faload_1; - -public class Test_faload extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_faload_1 t = new T_faload_1(); - float[] arr = new float[2]; - arr[1] = 3.1415f; - assertEquals(3.1415f, t.run(arr, 1)); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_faload_1 t = new T_faload_1(); - float[] arr = new float[2]; - arr[0] = 3.1415f; - assertEquals(3.1415f, t.run(arr, 0)); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_faload_1 t = new T_faload_1(); - float[] arr = new float[2]; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_faload_1 t = new T_faload_1(); - try { - t.run(null, 2); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_faload_1 t = new T_faload_1(); - float[] arr = new float[2]; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.faload.jm.T_faload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_1.j deleted file mode 100644 index 448ac410acfe8d994dd0bd378865fc9211409f8c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_1.java -.class public dxc/junit/opcodes/faload/jm/T_faload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FI)F - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - - faload - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_1.java deleted file mode 100644 index b8173a69d87953da75b15e71d808a67d8ae7ab6f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_1 { - public float run(float[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_2.j deleted file mode 100644 index 0f06fe45efbf42480e35f79dafa435860e37e797..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_2.java -.class public dxc/junit/opcodes/faload/jm/T_faload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FI)F - .limit stack 3 - .limit locals 4 - - aload_1 -; iload_2 - - faload - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_2.java deleted file mode 100644 index 4894ed948668f5515a427c325fc5495e5a2a691c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_2 { - - public float run(float[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_3.j deleted file mode 100644 index 14e2b64a7e0153eedfb48a217fb1702abfe62c83..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_3.java -.class public dxc/junit/opcodes/faload/jm/T_faload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FI)F - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - faload - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_3.java deleted file mode 100644 index 0ca882b474cbbe1dbf3d43e748bfb4a9b7d19039..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_3 { - - public float run(float[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_4.j deleted file mode 100644 index 12c6259e1e86135d9eb6b6f9833f5b87da669317..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_4.java -.class public dxc/junit/opcodes/faload/jm/T_faload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([FD)F - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 - faload - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_4.java deleted file mode 100644 index efff3d75e536ef1c857dd9253c7dbec54676d0f7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_4 { - - public float run(float[] arr, double idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_5.j deleted file mode 100644 index eb3e0d80198e68ad1d90a06d4ba3b4f97dfef222..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_5.java -.class public dxc/junit/opcodes/faload/jm/T_faload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([FJ)F - .limit stack 4 - .limit locals 5 - - aload_1 - lload_2 -; l2i - faload - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_5.java deleted file mode 100644 index d5a8738e991b070055ce6a42e9c5ff7f6f4a5348..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_5 { - - public float run(float[] arr, long idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_6.j deleted file mode 100644 index 2592e0d5a6dff4d41755386fa96c0a81b6ecf3f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_6.java -.class public dxc/junit/opcodes/faload/jm/T_faload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;[FI)F - .limit stack 3 - .limit locals 4 - - aload_1 - iload_3 - - faload - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_6.java deleted file mode 100644 index b70478fc7770dc67a956b1a770651bd5be1aedaa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_6 { - - public float run(Object a, float[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_7.j deleted file mode 100644 index 6ed18fc7fe6821cc91d8b975589a11362132ff34..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_7.java -.class public dxc/junit/opcodes/faload/jm/T_faload_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([D[FI)F - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - faload - - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_7.java deleted file mode 100644 index 401a9cb780f2d7557c7c6e60b0b51dd55a22eafe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_7 { - - public float run(double[] a, float[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_8.j deleted file mode 100644 index 5e94ca09b5ed5527fd1edde85347d555902ae2ee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_8.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_8.java -.class public dxc/junit/opcodes/faload/jm/T_faload_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([J[FI)F - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - faload - - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_8.java deleted file mode 100644 index 4b6d2359ddf7b59d23671d286468ab643ce744a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_8 { - - public float run(long[] a, float[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_9.j deleted file mode 100644 index 3a8e65cea0ff6689f0b0cad604bee723d35f525f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_faload_9.java -.class public dxc/junit/opcodes/faload/jm/T_faload_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FI)F - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - faload - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_9.java deleted file mode 100644 index a53e367ce6ff1d4f98ab3300f258971f22c435d2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/faload/jm/T_faload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.faload.jm; - -public class T_faload_9 { - - public float run(float[] arr, int idx) { - return arr[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/Test_fastore.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/Test_fastore.java deleted file mode 100644 index bf2a6c9842e31c3176e43cec40bde8b1c905b871..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/Test_fastore.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fastore.jm.T_fastore_1; - -public class Test_fastore extends DxTestCase { - - /** - * @title normal test. Trying different indexes - */ - public void testN1() { - T_fastore_1 t = new T_fastore_1(); - float[] arr = new float[2]; - t.run(arr, 1, 2.7f); - assertEquals(2.7f, arr[1]); - } - - /** - * @title normal test. Trying different indexes - */ - public void testN2() { - T_fastore_1 t = new T_fastore_1(); - float[] arr = new float[2]; - t.run(arr, 0, 2.7f); - assertEquals(2.7f, arr[0]); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_fastore_1 t = new T_fastore_1(); - float[] arr = new float[2]; - try { - t.run(arr, 2, 2.7f); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_fastore_1 t = new T_fastore_1(); - try { - t.run(null, 2, 2.7f); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_fastore_1 t = new T_fastore_1(); - float[] arr = new float[2]; - try { - t.run(arr, -1, 2.7f); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, - * float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, - * float - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int, - * float - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int, - * float - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, - * float - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.fastore.jm.T_fastore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_1.j deleted file mode 100644 index 82dc298f08315a7c097b79ae654f0a37fc88e998..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_1.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FIF)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - fload_3 - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_1.java deleted file mode 100644 index 9977fce0d35f7c337a203c1f8cc07b038c1f8c71..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_1 { - public void run(float[] arr, int idx, float value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_2.j deleted file mode 100644 index 09d9ee19864fbbb61aca61dbd342b39fd8a0edea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_2.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FIF)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - ;fload_3 - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_2.java deleted file mode 100644 index d9e901303ef98f36bfe7c3ef834b27a29d99c61a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_2 { - - public void run(float[] arr, int idx, float value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_3.j deleted file mode 100644 index 861cc0fa357a59550ff9f7b7e9b289e5972424eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_3.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FIF)V - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - fload_3 - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_3.java deleted file mode 100644 index 7d55003ddd94617ad9eec21a182e71b567c706d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_3 { - - public void run(float[] arr, int idx, float value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_4.j deleted file mode 100644 index 12318b4317f151441ab6e4ca3e34e1534bebed19..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_4.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([FDF)V - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - fload 4 - - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_4.java deleted file mode 100644 index 6d3b631d649fdb5860fba51dd6f8ef454ce369a6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_4 { - - public void run(float[] arr, double idx, float value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_5.j deleted file mode 100644 index 4c2325d43b43c9ab9b9d71f0c797d1de9fd807fe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_5.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([FIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload_3 -; l2f - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_5.java deleted file mode 100644 index 34e158afda65bdbe6c3e043d1980cf103d6fcc57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_5 { - - public void run(float[] arr, int idx, float value) { - arr[idx] = (float)value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_6.j deleted file mode 100644 index b1cabb88c60f8c4cb43ef8de1c40ce4acbef1b48..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_6.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;IF)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - fload_3 - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_6.java deleted file mode 100644 index 39d853964987f077c993bdb1ac503abc7430cab3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_6 { - - public void run(Object a, float[] arr, int idx, float value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_7.j deleted file mode 100644 index 3bf14f7f67be74a23f3bb2b41c477d5ad6d57469..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_7.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_7.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([D[FIF)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - fload 4 - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_7.java deleted file mode 100644 index 8766fd1d3e86abb181473b62417066dc8381a439..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_7 { - - public void run(double a[], float[] arr, int idx, float value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_8.j deleted file mode 100644 index 138ccc13324415d615c17d31cc8b5f94ea0ae3ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_8.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_8.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([J[FIF)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - fload 4 - fastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_8.java deleted file mode 100644 index 38264cf56b59546b107f85dbd6b2b3c23c217a2b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_8 { - - public void run(long a[], float[] arr, int idx, float value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_9.j deleted file mode 100644 index 66e8723d17c701d4809ff2ff870874995cda454f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fastore_9.java -.class public dxc/junit/opcodes/fastore/jm/T_fastore_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([FIF)V - .limit stack 3 - .limit locals 4 - - aload_1 - aload_0 - fload_3 - fastore - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_9.java deleted file mode 100644 index af77ce5b42cba108fa398a3ab573f3e66788ff64..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fastore/jm/T_fastore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fastore.jm; - -public class T_fastore_9 { - - public void run(float[] arr, int idx, float value) { - arr[idx] = value; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/Test_fcmpg.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/Test_fcmpg.java deleted file mode 100644 index 5af23b3ab5dbc2276303a3e4644fd143b773720a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/Test_fcmpg.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpg; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fcmpg.jm.T_fcmpg_1; - -public class Test_fcmpg extends DxTestCase { - - /** - * @title Arguments = 3.14f, 2.7f - */ - public void testN1() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(1, t.run(3.14f, 2.7f)); - } - - /** - * @title Arguments = -3.14f, 2.7f - */ - public void testN2() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(-1, t.run(-3.14f, 2.7f)); - } - - /** - * @title Arguments = 3.14, 3.14 - */ - public void testN3() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(0, t.run(3.14f, 3.14f)); - } - - /** - * @title Arguments = Float.NaN, Float.MAX_VALUE - */ - public void testB1() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(1, t.run(Float.NaN, Float.MAX_VALUE)); - } - - /** - * @title Arguments = +0, -0 - */ - public void testB2() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(0, t.run(+0f, -0f)); - } - - /** - * @title Arguments = Float.NEGATIVE_INFINITY, Float.MIN_VALUE - */ - public void testB3() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(-1, t.run(Float.NEGATIVE_INFINITY, Float.MIN_VALUE)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, Float.MAX_VALUE - */ - public void testB4() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.MAX_VALUE)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.NEGATIVE_INFINITY - */ - public void testB5() { - T_fcmpg_1 t = new T_fcmpg_1(); - assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fcmpg.jm.T_fcmpg_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fcmpg.jm.T_fcmpg_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fcmpg.jm.T_fcmpg_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fcmpg.jm.T_fcmpg_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_1.j deleted file mode 100644 index 557db8b9be55023a5a155093cdec97e416026e76..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_1.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpg_1.java -.class public dxc/junit/opcodes/fcmpg/jm/T_fcmpg_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)I - .limit stack 2 - .limit locals 3 - - fload_1 - fload_2 - - fcmpg - dup - ifeq Label0 - ifgt Label1 - - iconst_m1 - ireturn - - Label0: - iconst_0 - ireturn - - Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_1.java deleted file mode 100644 index 90916a41355684b6c50d2c057f709baeca1fe075..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_1.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpg.jm; - -public class T_fcmpg_1 { - - public int run(float a, float b) { - if(a > b) - return 1; - if(a == b) - return 0; - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_2.j deleted file mode 100644 index 98a5a14e4b29c7405a1dd6e2059a52e8681e1cf5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_2.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpg_2.java -.class public dxc/junit/opcodes/fcmpg/jm/T_fcmpg_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FF)Z - .limit stack 2 - .limit locals 3 - - fload_1 -; fload_2 - fcmpg - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_2.java deleted file mode 100644 index 76fc02e64fa7d9658739ff65fa325940af5a47bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpg.jm; - -public class T_fcmpg_2 { - - public boolean run(float a, float b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_3.j deleted file mode 100644 index 8404b13bc3fd12d04340ce3a5ba6f5673a5c68b4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpg_3.java -.class public dxc/junit/opcodes/fcmpg/jm/T_fcmpg_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(FF)Z - .limit stack 4 - .limit locals 3 - - fload_1 - dconst_1 - fcmpg - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_3.java deleted file mode 100644 index f559c7e5328d81c01e0311a0001d03f4733f0097..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpg.jm; - -public class T_fcmpg_3 { - - public boolean run(float a, float b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_4.j deleted file mode 100644 index f6ed9384f0a15d645344138e363d3cd6d9536085..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpg_4.java -.class public dxc/junit/opcodes/fcmpg/jm/T_fcmpg_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(FF)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - fload_1 - - fcmpg - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_4.java deleted file mode 100644 index b5405327214e68bac25d102fac6bce125df76b5e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpg.jm; - -public class T_fcmpg_4 { - - public boolean run(float a, float b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_5.j deleted file mode 100644 index cb0a3440ed6497c0d92491b1d9e969e57b38a034..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpg_5.java -.class public dxc/junit/opcodes/fcmpg/jm/T_fcmpg_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)Z - .limit stack 2 - .limit locals 3 - - aload_0 - fload_2 - fcmpl - ifle Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_5.java deleted file mode 100644 index 75872f7c23640d191f92cfcf5b82ad7fdf45ca45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpg/jm/T_fcmpg_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpg.jm; - -public class T_fcmpg_5 { - - public boolean run(float a, float b) { - return a > b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/Test_fcmpl.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/Test_fcmpl.java deleted file mode 100644 index 78c0b03088597412a22156e5d2189da746c81bd0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/Test_fcmpl.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpl; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fcmpl.jm.T_fcmpl_1; - -public class Test_fcmpl extends DxTestCase { - - /** - * @title Arguments = 3.14f, 2.7f - */ - public void testN1() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(1, t.run(3.14f, 2.7f)); - } - - /** - * @title Arguments = -3.14f, 2.7f - */ - public void testN2() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(-1, t.run(-3.14f, 2.7f)); - } - - /** - * @title Arguments = 3.14, 3.14 - */ - public void testN3() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(0, t.run(3.14f, 3.14f)); - } - - /** - * @title Arguments = Float.NaN, Float.MAX_VALUE - */ - public void testB1() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(-1, t.run(Float.NaN, Float.MAX_VALUE)); - } - - /** - * @title Arguments = +0, -0 - */ - public void testB2() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(0, t.run(+0f, -0f)); - } - - /** - * @title Arguments = Float.NEGATIVE_INFINITY, Float.MIN_VALUE - */ - public void testB3() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(-1, t.run(Float.NEGATIVE_INFINITY, Float.MIN_VALUE)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, Float.MAX_VALUE - */ - public void testB4() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.MAX_VALUE)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.NEGATIVE_INFINITY - */ - public void testB5() { - T_fcmpl_1 t = new T_fcmpl_1(); - assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fcmpl.jm.T_fcmpl_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fcmpl.jm.T_fcmpl_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fcmpl.jm.T_fcmpl_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fcmpl.jm.T_fcmpl_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_1.j deleted file mode 100644 index 3bf55338d37ef5016c06d7b13bfa22c461b087b4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_1.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpl_1.java -.class public dxc/junit/opcodes/fcmpl/jm/T_fcmpl_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)I - .limit stack 2 - .limit locals 3 - - fload_1 - fload_2 - - fcmpl - dup - ifeq Label0 - ifgt Label1 - - iconst_m1 - ireturn - - Label0: - iconst_0 - ireturn - - Label1: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_1.java deleted file mode 100644 index 2dd1c2684cfda6ee3fba2a7d6cc4ca17e32012f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_1.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpl.jm; - -public class T_fcmpl_1 { - - public int run(float a, float b) { - if(a > b) - return 1; - if(a == b) - return 0; - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_2.j deleted file mode 100644 index 01d6c1a2a9f6917e3ca454d7cae0e893dd5db520..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_2.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpl_2.java -.class public dxc/junit/opcodes/fcmpl/jm/T_fcmpl_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FF)Z - .limit stack 2 - .limit locals 3 - - fload_1 -; fload_2 - fcmpl - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_2.java deleted file mode 100644 index 12cb22f11b254e431dc388af6b9e212c679760d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpl.jm; - -public class T_fcmpl_2 { - - public boolean run(float a, float b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_3.j deleted file mode 100644 index f9443125baecb9094d6de327fe90e8b9e289f584..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpl_3.java -.class public dxc/junit/opcodes/fcmpl/jm/T_fcmpl_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(FF)Z - .limit stack 4 - .limit locals 3 - - fload_1 - dconst_1 - fcmpl - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_3.java deleted file mode 100644 index 984516a331799f202c4b45359584d5553597165c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpl.jm; - -public class T_fcmpl_3 { - - public boolean run(float a, float b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_4.j deleted file mode 100644 index 42a01618fff80822641833fa064117eeb472d708..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpl_4.java -.class public dxc/junit/opcodes/fcmpl/jm/T_fcmpl_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(FF)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - fload_1 - - fcmpl - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_4.java deleted file mode 100644 index ca79301064d0073deba4b3973a42548d0a2bc419..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpl.jm; - -public class T_fcmpl_4 { - - public boolean run(float a, float b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_5.j deleted file mode 100644 index 65742dba11e907804553d8cba78ef60a1c30e701..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fcmpl_5.java -.class public dxc/junit/opcodes/fcmpl/jm/T_fcmpl_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)Z - .limit stack 2 - .limit locals 3 - - aload_0 - fload_2 - fcmpl - ifle Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_5.java deleted file mode 100644 index 0a661b16b60c670520a45cb9d17cfeb63421b93d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fcmpl/jm/T_fcmpl_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fcmpl.jm; - -public class T_fcmpl_5 { - - public boolean run(float a, float b) { - return a > b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/Test_fconst_0.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/Test_fconst_0.java deleted file mode 100644 index cf2b492d12e168faac36ced6b4942ea6f315eba4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/Test_fconst_0.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fconst_0.jm.T_fconst_0_1; - -public class Test_fconst_0 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_fconst_0_1 t = new T_fconst_0_1(); - float b = 1234f; - float c = 1234f; - float d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fconst_0.jm.T_fconst_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_1.j deleted file mode 100644 index f96b07849e616f1332cc872cc6f3adf13e975bbb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fconst_0_1.java -.class public dxc/junit/opcodes/fconst_0/jm/T_fconst_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - fconst_0 - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_1.java deleted file mode 100644 index 976773d8655c34fa8f1ab31f6d18b02cf4dd409e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_0.jm; - -public class T_fconst_0_1 { - - public float run() { - return 0f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_2.j deleted file mode 100644 index 864b3596ae7f61fa4d2f9aa4a97eb09914e99101..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fconst_0_2.java -.class public dxc/junit/opcodes/fconst_0/jm/T_fconst_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - .limit stack 1 -; .limit locals 1 - - fconst_0 - fconst_0 - - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_2.java deleted file mode 100644 index 0f7267b70be0f1c6b38b5692d61a1d9f499e65a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_0/jm/T_fconst_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_0.jm; - -public class T_fconst_0_2 { - - public float run() { - return 0f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/Test_fconst_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/Test_fconst_1.java deleted file mode 100644 index 25ae549a4567d0eb3c1236c58c424c703cd33527..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/Test_fconst_1.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fconst_1.jm.T_fconst_1_1; - -public class Test_fconst_1 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_fconst_1_1 t = new T_fconst_1_1(); - float b = 1235f; - float c = 1234f; - float d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fconst_1.jm.T_fconst_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_1.j deleted file mode 100644 index af3a72309c812bf126af694285e95b39c73d44af..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fconst_1_1.java -.class public dxc/junit/opcodes/fconst_1/jm/T_fconst_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - fconst_1 - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_1.java deleted file mode 100644 index b9751a4edad6acf5d50efd609c35685a9eb2119e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_1.jm; - -public class T_fconst_1_1 { - - public float run() { - return 1f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_2.j deleted file mode 100644 index 98c41d40ecd2b04ab3ea450ad6e6f559438fe151..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fconst_1_2.java -.class public dxc/junit/opcodes/fconst_1/jm/T_fconst_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - .limit stack 1 -; .limit locals 1 - - fconst_1 - fconst_1 - - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_2.java deleted file mode 100644 index 6fa39d10d4d7dd07639d690d1fba9179193c2976..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_1/jm/T_fconst_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_1.jm; - -public class T_fconst_1_2 { - - public float run() { - return 1f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/Test_fconst_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/Test_fconst_2.java deleted file mode 100644 index 4aeaf8b95874ffee6b1938863c1e245b3b1edd72..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/Test_fconst_2.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fconst_2.jm.T_fconst_2_1; - -public class Test_fconst_2 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_fconst_2_1 t = new T_fconst_2_1(); - float b = 1236f; - float c = 1234f; - float d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fconst_2.jm.T_fconst_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_1.j deleted file mode 100644 index 2c7ef7f29d76ec6c05c22d1b4907f8d36e710281..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fconst_2_1.java -.class public dxc/junit/opcodes/fconst_2/jm/T_fconst_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - fconst_2 - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_1.java deleted file mode 100644 index 7ac0339662fea05ba71a9b3188e86030fcb48f3c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_2.jm; - -public class T_fconst_2_1 { - - public float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_2.j deleted file mode 100644 index 795fb7ec40bfe52d8235c6864d02b9d754c11c38..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fconst_2_2.java -.class public dxc/junit/opcodes/fconst_2/jm/T_fconst_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - .limit stack 1 -; .limit locals 1 - - fconst_2 - fconst_2 - - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_2.java deleted file mode 100644 index f91083136db1a54b9258a9b9fa595c8605f4e5b7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fconst_2/jm/T_fconst_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fconst_2.jm; - -public class T_fconst_2_2 { - - public float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/Test_fdiv.java b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/Test_fdiv.java deleted file mode 100644 index ce1f3d318ea6760556a70fa9c931c531576d389d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/Test_fdiv.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fdiv; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fdiv.jm.T_fdiv_1; - -public class Test_fdiv extends DxTestCase { - - /** - * @title Arguments = 2.7f, 3.14f - */ - public void testN1() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(0.8598726f, t.run(2.7f, 3.14f)); - } - - /** - * @title Dividend = 0 - */ - public void testN2() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(0f, t.run(0, 3.14f)); - } - - /** - * @title Dividend is negative - */ - public void testN3() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(-1.162963f, t.run(-3.14f, 2.7f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, Float.NaN - */ - public void testB1() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(Float.NaN, t.run(Float.MAX_VALUE, Float.NaN)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.NEGATIVE_INFINITY - */ - public void testB2() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY, - Float.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, -2.7f - */ - public void testB3() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, - -2.7f)); - } - - /** - * @title Arguments = -2.7f, Float.NEGATIVE_INFINITY - */ - public void testB4() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(0f, t.run(-2.7f, Float.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(Float.NaN, t.run(0, 0)); - } - - /** - * @title Arguments = 0, -2.7 - */ - public void testB6() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(-0f, t.run(0, -2.7f)); - } - - /** - * @title Arguments = -2.7, 0 - */ - public void testB7() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(Float.NEGATIVE_INFINITY, t.run(-2.7f, 0)); - } - - /** - * @title Arguments = 1, Float.MAX_VALUE - */ - public void testB8() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(1, Float.MIN_VALUE)); - } - - /** - * @title Arguments = Float.MAX_VALUE, -1E-9f - */ - public void testB9() { - T_fdiv_1 t = new T_fdiv_1(); - assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.MAX_VALUE, -1E-9f)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fdiv.jm.T_fdiv_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fdiv.jm.T_fdiv_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fdiv.jm.T_fdiv_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fdiv.jm.T_fdiv_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_1.j deleted file mode 100644 index a64d47fc7a905120aa53f687fd7c1476243efec9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fdiv_1.java -.class public dxc/junit/opcodes/fdiv/jm/T_fdiv_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - fload_2 - fdiv - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_1.java deleted file mode 100644 index 4d6c2e36d3b46b89c4d7ed5068911149d9c3efa8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fdiv.jm; - -public class T_fdiv_1 { - - public float run(float a, float b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_2.j deleted file mode 100644 index 6755eafb91040734c38f9e873989e9b0a002ac7e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fdiv_2.java -.class public dxc/junit/opcodes/fdiv/jm/T_fdiv_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - ; fload_2 - fdiv - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_2.java deleted file mode 100644 index 447fe1334d8a6622331b8f16ed93386cbf477fd9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fdiv.jm; - -public class T_fdiv_2 { - - public float run(float a, float b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_3.j deleted file mode 100644 index 06872a1149fd13f24eb85faddab38ea988a6dc63..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fdiv_3.java -.class public dxc/junit/opcodes/fdiv/jm/T_fdiv_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)F - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - fdiv - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_3.java deleted file mode 100644 index 24d8a091b1af60deb8970b2fa403d97a8ddcc881..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fdiv.jm; - -public class T_fdiv_3 { - - public float run(float a, double b) { - return a/(float)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_4.j deleted file mode 100644 index a8e98ab92e27668666c0d104a8189bb64e4d77ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fdiv_4.java -.class public dxc/junit/opcodes/fdiv/jm/T_fdiv_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JF)F - .limit stack 3 - .limit locals 4 - - lload_1 -; l2f - fload_3 - fdiv - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_4.java deleted file mode 100644 index 0c2cc97562cf35758b8745e7497d2da12ce7cd1d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fdiv.jm; - -public class T_fdiv_4 { - - public float run(long a, float b) { - return (float)a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_5.j deleted file mode 100644 index c273a5e000ee9edcc84a506a2d335ba83444e0ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fdiv_5.java -.class public dxc/junit/opcodes/fdiv/jm/T_fdiv_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - - aload_0 - fload_2 - fdiv - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_5.java deleted file mode 100644 index f93de7bde9bdfb37dd03812b2c4026dfd62e00ee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fdiv/jm/T_fdiv_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fdiv.jm; - -public class T_fdiv_5 { - - public float run(float a, float b) { - return a/b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/Test_fload.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/Test_fload.java deleted file mode 100644 index 736ebbbb5eb07b340e45b14ca0336a7610d919a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/Test_fload.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fload.jm.T_fload_1; -import dxc.junit.opcodes.fload.jm.T_fload_1_w; -import dxc.junit.opcodes.fload.jm.T_fload_2; -import dxc.junit.opcodes.fload.jm.T_fload_2_w; - -public class Test_fload extends DxTestCase { - - /* - * NORMAL fload VERSION - */ - - /** - * @title Test fload 1 - */ - public void testN1() { - T_fload_1 t = new T_fload_1(); - assertEquals(2f, t.run()); - } - - /** - * @title Test fload 255 - */ - public void testN2() { - T_fload_2 t = new T_fload_2(); - assertEquals(2f, t.run()); - } - - /** - * @constraint 4.8.1.21 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE fload VERSION - */ - - /** - * @title Test fload 257 - */ - public void testN3() { - T_fload_1_w t = new T_fload_1_w(); - assertEquals(2f, t.run()); - } - - /** - * @title Test fload_w 1 - */ - public void testN4() { - T_fload_2_w t = new T_fload_2_w(); - assertEquals(2f, t.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_5_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.fload.jm.T_fload_6_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1.j deleted file mode 100644 index d48d674f02b5581aca33df9dc40ad61a7117146b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1.java -.class public dxc/junit/opcodes/fload/jm/T_fload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()F - .limit stack 2 - .limit locals 6 - - fconst_2 - fstore 4 - fconst_1 - fload 4 - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1.java deleted file mode 100644 index 0659eb495fabd65c1e23fa3f2d26a57c58c7b53f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_1 { - - public float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1_w.j deleted file mode 100644 index 5c3e03ea9ba2ce74003e74e61a7832107247e8b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1_w.java -.class public dxc/junit/opcodes/fload/jm/T_fload_1_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()F - .limit stack 2 - .limit locals 300 - - fconst_2 - fstore 257 - fconst_1 - fload 257 - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1_w.java deleted file mode 100644 index 0a75402f279cc85ae4034bd581dbc22733dfe73c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_1_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_1_w { - - public float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2.j deleted file mode 100644 index affbbcca9be88b64aa9454e8a040afe8e75112f6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2.java -.class public dxc/junit/opcodes/fload/jm/T_fload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()F - .limit stack 2 - .limit locals 300 - - fconst_2 - fstore 255 - fconst_1 - fload 255 - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2.java deleted file mode 100644 index 5f955cffc5b286973db6686bbf578593119e7ae9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_2 { - - public float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2_w.j deleted file mode 100644 index 8cfd4b99bf2fcd2fd9890b467840bdcf7c977de1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2_w.java -.class public dxc/junit/opcodes/fload/jm/T_fload_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()F - .limit stack 2 - .limit locals 2 - - fconst_2 - fstore 1 - fconst_1 - fload_w 1 - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2_w.java deleted file mode 100644 index 06e678dc9d9b14ffaafae75dea18b41bb0749fcf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_2_w { - - public float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3.j deleted file mode 100644 index b46e1ae68a7b80a2fd763cc18dcbdaf1e786fb14..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3.java -.class public dxc/junit/opcodes/fload/jm/T_fload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - fload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3.java deleted file mode 100644 index 4a96c8da2c362f65d0b5feff66aeac5e4788fac2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_3 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3_w.j deleted file mode 100644 index ca096aa2b80a5e65557b7db864d8e0214332c888..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3_w.java -.class public dxc/junit/opcodes/fload/jm/T_fload_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 300 - - fload 300 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3_w.java deleted file mode 100644 index e097e189dab8eee4ab2b7a7912e812e92762cc39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_3_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_3_w { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4.j deleted file mode 100644 index 0fb25c9c0652febfe9454623547c480c64b327bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_4.java -.class public dxc/junit/opcodes/fload/jm/T_fload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_0 - - fload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4.java deleted file mode 100644 index 07f75b522514232b0a747d1f235b83a1766b9b80..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_4 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4_w.j deleted file mode 100644 index d58ae6a70158aefc910e9a7aaef6168ecb18dcef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_4_w.java -.class public dxc/junit/opcodes/fload/jm/T_fload_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore 260 - - fload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4_w.java deleted file mode 100644 index 8ae2258e93de2afe0de795db79b92483e5c831f8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_4_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_4_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5.j deleted file mode 100644 index 94dc078fac1ab0079c47771958a70118c855c824..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_5.java -.class public dxc/junit/opcodes/fload/jm/T_fload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_0 - - fload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5.java deleted file mode 100644 index 7f7dc3c84948b4944b2b57fbace6a7746ee3047c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_5 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5_w.j deleted file mode 100644 index dbffaa5df4ea7ddbc6e1ef4c8afa709d1f33a48d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_5_w.java -.class public dxc/junit/opcodes/fload/jm/T_fload_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 300 - - lconst_1 - lstore 260 - - fload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5_w.java deleted file mode 100644 index 0cabc57f3c726ae20b67e40dc6fd6534ddcb7c00..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_5_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_5_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6.j deleted file mode 100644 index b4c0270c7b3479969268e6badfb2b8a4b58d7888..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_6.java -.class public dxc/junit/opcodes/fload/jm/T_fload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - fconst_1 - fstore_0 - - fload 0 - fload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6.java deleted file mode 100644 index 8ce1234c8f891ba30b421a9b6f9677c7588dcd6f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_6 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6_w.j deleted file mode 100644 index 32e97950a2ca1816b0dc59429226b718af3c9eb4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_6_w.java -.class public dxc/junit/opcodes/fload/jm/T_fload_6_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 300 - - fconst_1 - fstore 260 - - fload_w 260 - fload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6_w.java deleted file mode 100644 index 5f6175367737e6bb79250b938502e67ccfe07244..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload/jm/T_fload_6_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload.jm; - -public class T_fload_6_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/Test_fload_0.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/Test_fload_0.java deleted file mode 100644 index b796eb7f238254990e7d3e9d7296a6377328e047..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/Test_fload_0.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fload_0.jm.T_fload_0_1; -import dxc.junit.opcodes.fload_0.jm.T_fload_0_6; - -public class Test_fload_0 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(2f, T_fload_0_1.run()); - } - - /** - * @title equality of fload_ and fload - */ - public void testN2() { - assertTrue(T_fload_0_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fload_0.jm.T_fload_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fload_0.jm.T_fload_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fload_0.jm.T_fload_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fload_0.jm.T_fload_0_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_1.j deleted file mode 100644 index c7b69ed4f3f75fe3adcf68b513e78cd343f01b6d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_0_1.java -.class public dxc/junit/opcodes/fload_0/jm/T_fload_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 1 - - fconst_2 - fstore_0 - fconst_1 - fload_0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_1.java deleted file mode 100644 index a577960a7ee02d6dd678fb24b419fe7ff2b4ab7d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_0.jm; - -public class T_fload_0_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_2.j deleted file mode 100644 index 6a795e3995eee83efebb9c5c66086ca4d4f5a44c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_0_2.java -.class public dxc/junit/opcodes/fload_0/jm/T_fload_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - fload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_2.java deleted file mode 100644 index 482b227e18b1a490c541f7ad33ff5f2e684d9a3f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_0.jm; - -public class T_fload_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_3.j deleted file mode 100644 index 4b378f5c0d86a4633f95319d81322aacff760071..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_0_3.java -.class public dxc/junit/opcodes/fload_0/jm/T_fload_0_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_0 - - fload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_3.java deleted file mode 100644 index 31db2e62d237e845041e97ebf897305f03e61516..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_0.jm; - -public class T_fload_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_4.j deleted file mode 100644 index 23f259736acad5a8c60fc4f9ad3c3b1e8a8f9c02..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_0_4.java -.class public dxc/junit/opcodes/fload_0/jm/T_fload_0_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_0 - - fload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_4.java deleted file mode 100644 index c812defca34e998f71a65e93b9069959966cf985..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_0.jm; - -public class T_fload_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_5.j deleted file mode 100644 index f767cfd9ac2f263ffcd392dd0dbdcfaa91e101eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_0_5.java -.class public dxc/junit/opcodes/fload_0/jm/T_fload_0_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - fconst_1 - fstore_0 - - fload_0 - fload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_5.java deleted file mode 100644 index 98ebafd0eb1602ccdc71e2c34628cb9e29dce4f1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_0.jm; - -public class T_fload_0_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_6.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_6.j deleted file mode 100644 index dd42b7e34ede851d77f9ac4ce473367277b44ba6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_0_6.java -.class public dxc/junit/opcodes/fload_0/jm/T_fload_0_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 1 - - fconst_2 - fstore_0 - - fload_0 - fload 0 - fcmpl - - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_6.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_6.java deleted file mode 100644 index 1a337b0168296987d20b0ae5b5d059d6a454584f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_0/jm/T_fload_0_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_0.jm; - -public class T_fload_0_6 { - - public static boolean run() { - float i = 2f; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/Test_fload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/Test_fload_1.java deleted file mode 100644 index 91a611299cbe51c85df4a8c3e1f89506f538b87d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/Test_fload_1.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fload_1.jm.T_fload_1_1; -import dxc.junit.opcodes.fload_1.jm.T_fload_1_6; - -public class Test_fload_1 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(2f, T_fload_1_1.run()); - } - - /** - * @title equality of fload_ and fload - */ - public void testN2() { - assertTrue(T_fload_1_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title (index must be no greater than the value - * of max_locals-1). - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fload_1.jm.T_fload_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fload_1.jm.T_fload_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fload_1.jm.T_fload_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fload_1.jm.T_fload_1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_1.j deleted file mode 100644 index 93f205ea2557e43ef72c55909f38027edc528327..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1_1.java -.class public dxc/junit/opcodes/fload_1/jm/T_fload_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 2 - - fconst_2 - fstore_1 - fconst_1 - fload_1 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_1.java deleted file mode 100644 index 7e2f5c40ec4d86bc620ac1feebe79df382b6f550..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_1.jm; - -public class T_fload_1_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_2.j deleted file mode 100644 index fabb478df07ed0e6e0b52b14ca12dc5efbf9bb03..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1_2.java -.class public dxc/junit/opcodes/fload_1/jm/T_fload_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 1 - - fload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_2.java deleted file mode 100644 index 6e54dd8b973aaca1fb7ce2490c59a3a298f3047f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_1.jm; - -public class T_fload_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_3.j deleted file mode 100644 index f28c5bf11f07d5abc726de91c63e929713c7cb09..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1_3.java -.class public dxc/junit/opcodes/fload_1/jm/T_fload_1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_1 - - fload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_3.java deleted file mode 100644 index 10e5e25e3f89cf1e67683bef15483299b321f8c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_1.jm; - -public class T_fload_1_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_4.j deleted file mode 100644 index f0154b953835a1936996ca8394dabb9d4802a22a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1_4.java -.class public dxc/junit/opcodes/fload_1/jm/T_fload_1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_1 - - fload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_4.java deleted file mode 100644 index cd6f66a8a9a9f9b8af18fa5144e669ed95c0c49c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_1.jm; - -public class T_fload_1_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_5.j deleted file mode 100644 index 6778df6b0d832ae65a1ccf7a4f787b81abe8357f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1_5.java -.class public dxc/junit/opcodes/fload_1/jm/T_fload_1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - fconst_1 - fstore_1 - - fload_1 - fload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_5.java deleted file mode 100644 index ba47f43e8f2b98d3f1c2da0bffcbd21be3fbbcb7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_1.jm; - -public class T_fload_1_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_6.j deleted file mode 100644 index 8557f82e71b5e2782fedbc5b1944f19f5165fda3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_1_6.java -.class public dxc/junit/opcodes/fload_1/jm/T_fload_1_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 2 - - fconst_2 - fstore_1 - - fload_1 - fload 1 - fcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_6.java deleted file mode 100644 index 31d567b758eca47309ac33a2249827714d136731..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_1/jm/T_fload_1_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_1.jm; - -public class T_fload_1_6 { - - public static boolean run() { - float i = 2f; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/Test_fload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/Test_fload_2.java deleted file mode 100644 index 7a5bb47049356cf0b1604451a17075e79e0f90c1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/Test_fload_2.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fload_2.jm.T_fload_2_1; -import dxc.junit.opcodes.fload_2.jm.T_fload_2_6; - -public class Test_fload_2 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(2f, T_fload_2_1.run()); - } - - /** - * @title equality of fload_ and fload - */ - public void testN2() { - assertTrue(T_fload_2_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title (index must be no greater than the value - * of max_locals-1). - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fload_2.jm.T_fload_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fload_2.jm.T_fload_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fload_2.jm.T_fload_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fload_2.jm.T_fload_2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_1.j deleted file mode 100644 index e6fcb7519039d79c593149d3aa6385ef2b452005..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2_1.java -.class public dxc/junit/opcodes/fload_2/jm/T_fload_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 3 - - fconst_2 - fstore_2 - fconst_1 - fload_2 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_1.java deleted file mode 100644 index c4b17903dd484f09dc1f70b7429a65516756c7b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_2.jm; - -public class T_fload_2_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_2.j deleted file mode 100644 index 1d44d0ebd135fe444e16aa976a24bab401808e78..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2_2.java -.class public dxc/junit/opcodes/fload_2/jm/T_fload_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - fload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_2.java deleted file mode 100644 index e86cd016ec56e12b300f861ef82b9f250a7bc413..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_2.jm; - -public class T_fload_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_3.j deleted file mode 100644 index 4cc8b980962ce188086f69b952b9dec46c56679b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2_3.java -.class public dxc/junit/opcodes/fload_2/jm/T_fload_2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_2 - - fload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_3.java deleted file mode 100644 index 09a7cdfb8acf4742c5b47014ff4c0f61f61c2dd5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_2.jm; - -public class T_fload_2_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_4.j deleted file mode 100644 index 9a1382d67160f4631566fefec9fc275c63f00b4f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2_4.java -.class public dxc/junit/opcodes/fload_2/jm/T_fload_2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_2 - - fload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_4.java deleted file mode 100644 index 082bc9e568091bc90508d63810519d788121aec9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_2.jm; - -public class T_fload_2_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_5.j deleted file mode 100644 index 8e37b39371474ad02bc4805a9edd0e00c9e4e358..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2_5.java -.class public dxc/junit/opcodes/fload_2/jm/T_fload_2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 3 - - fconst_1 - fstore_2 - - fload_2 - fload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_5.java deleted file mode 100644 index b3dcd24a6ca5370846e44b759856ae84804b8e32..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_2.jm; - -public class T_fload_2_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_6.j deleted file mode 100644 index 85d7c90f3fe62b5c14cca42d9ee8eb03b7e90d9c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_2_6.java -.class public dxc/junit/opcodes/fload_2/jm/T_fload_2_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 3 - - fconst_2 - fstore_2 - - fload_2 - fload 2 - fcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_6.java deleted file mode 100644 index a584e41367587d04cdcffb71109aadbea6f96a4e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_2/jm/T_fload_2_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_2.jm; - -public class T_fload_2_6 { - - public static boolean run() { - float i = 2f; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/Test_fload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/Test_fload_3.java deleted file mode 100644 index cd8d127ad5b1b961c1544e4128aac5a201ec99ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/Test_fload_3.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fload_3.jm.T_fload_3_1; -import dxc.junit.opcodes.fload_3.jm.T_fload_3_6; - -public class Test_fload_3 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(2f, T_fload_3_1.run()); - } - - /** - * @title equality of fload_ and fload - */ - public void testN2() { - assertTrue(T_fload_3_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title (index must be no greater than the value - * of max_locals-1). - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fload_3.jm.T_fload_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fload_3.jm.T_fload_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fload_3.jm.T_fload_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fload_3.jm.T_fload_3_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_1.j deleted file mode 100644 index abe83e0fc59bcf82f7267f5f21fcbf594a287586..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3_1.java -.class public dxc/junit/opcodes/fload_3/jm/T_fload_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 4 - - fconst_2 - fstore_3 - fconst_1 - fload_3 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_1.java deleted file mode 100644 index f4e434b59b4cb169028dfac2a04d0e59e4515526..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_3.jm; - -public class T_fload_3_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_2.j deleted file mode 100644 index 7b06437854aa953d603b3624dd5da32044cc5634..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3_2.java -.class public dxc/junit/opcodes/fload_3/jm/T_fload_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 3 - - fload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_2.java deleted file mode 100644 index 896396d6aee99376a15092149075d0eafd7b84e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_3.jm; - -public class T_fload_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_3.j deleted file mode 100644 index 157316a95e036c8d80316d22c0eb9a12175c92ec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3_3.java -.class public dxc/junit/opcodes/fload_3/jm/T_fload_3_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - dconst_1 - dstore_3 - - fload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_3.java deleted file mode 100644 index 040faf7419815b0639f39f08557f439baeb0b43a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_3.jm; - -public class T_fload_3_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_4.j deleted file mode 100644 index 8408f9eafc79edea5890887ab2b50c0b7d4dbfec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3_4.java -.class public dxc/junit/opcodes/fload_3/jm/T_fload_3_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - lconst_1 - lstore_3 - - fload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_4.java deleted file mode 100644 index 240b80168da881d3997482aafc176ba4f3b2d813..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_3.jm; - -public class T_fload_3_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_5.j deleted file mode 100644 index e99cf7ea364d7ecae3f759aeaad9b5900a03b81b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3_5.java -.class public dxc/junit/opcodes/fload_3/jm/T_fload_3_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 4 - - fconst_1 - fstore_3 - - fload_3 - fload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_5.java deleted file mode 100644 index c1a77541027208d5316cde996851e4ae3b3ed74b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_3.jm; - -public class T_fload_3_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_6.j b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_6.j deleted file mode 100644 index f61cdc8785f1b22440d58336cbb36d0b14cd3828..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fload_3_6.java -.class public dxc/junit/opcodes/fload_3/jm/T_fload_3_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 4 - - fconst_2 - fstore_3 - - fload_3 - fload 3 - fcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_6.java b/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_6.java deleted file mode 100644 index 8bbff07ec4360faf784f7167fcdeb925578ff280..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fload_3/jm/T_fload_3_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fload_3.jm; - -public class T_fload_3_6 { - - public static boolean run() { - float i = 2f; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/Test_fmul.java b/tools/dx-tests/src/dxc/junit/opcodes/fmul/Test_fmul.java deleted file mode 100644 index 0bbf1ee658cea05666c1a03a8b38148994c22b03..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/Test_fmul.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fmul; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fmul.jm.T_fmul_1; - -public class Test_fmul extends DxTestCase { - - /** - * @title Arguments = 2.7f, 3.14f - */ - public void testN1() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(8.478001f, t.run(2.7f, 3.14f)); - } - - /** - * @title Arguments = 0, -3.14f - */ - public void testN2() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(-0f, t.run(0, -3.14f)); - } - - /** - * @title Arguments = -2.7f, -3.14f - */ - public void testN3() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(8.478001f, t.run(-3.14f, -2.7f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, Float.NaN - */ - public void testB1() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(Float.NaN, t.run(Float.MAX_VALUE, Float.NaN)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, 0 - */ - public void testB2() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY, 0)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, -2.7f - */ - public void testB3() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, - -2.7f)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.NEGATIVE_INFINITY - */ - public void testB4() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, - Float.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = +0, -0f - */ - public void testB5() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(-0f, t.run(+0f, -0f)); - } - - /** - * @title Arguments = -0f, -0f - */ - public void testB6() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(+0f, t.run(-0f, -0f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, Float.MAX_VALUE - */ - public void testB7() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.MAX_VALUE, - Float.MAX_VALUE)); - } - - /** - * @title Arguments = Float.MIN_VALUE, -1.4E-45f - */ - public void testB8() { - T_fmul_1 t = new T_fmul_1(); - assertEquals(-0f, t.run(Float.MIN_VALUE, -1.4E-45f)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fmul.jm.T_fmul_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fmul.jm.T_fmul_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fmul.jm.T_fmul_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fmul.jm.T_fmul_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_1.j deleted file mode 100644 index 474a8c264407bbbbeab7771aea5bb7c901dea379..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fmul_1.java -.class public dxc/junit/opcodes/fmul/jm/T_fmul_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - fload_2 - fmul - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_1.java deleted file mode 100644 index 1a12d725bc0d0ac004ca1c6f04712339c56fa294..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fmul.jm; - -public class T_fmul_1 { - - public float run(float a, float b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_2.j deleted file mode 100644 index 35caf66281914d347fa1f1e75f413edfa8e7ca8d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fmul_2.java -.class public dxc/junit/opcodes/fmul/jm/T_fmul_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - ; fload_2 - fmul - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_2.java deleted file mode 100644 index 7927d378980ffdc857467e0c742022ee165e0741..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fmul.jm; - -public class T_fmul_2 { - - public float run(float a, float b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_3.j deleted file mode 100644 index e11cfe128ae6dc85b59f86f04ac9a91ae97af369..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fmul_3.java -.class public dxc/junit/opcodes/fmul/jm/T_fmul_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)F - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - fmul - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_3.java deleted file mode 100644 index 7474a9032f8c47f70bb55dfe0d798d04d3e37824..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fmul.jm; - -public class T_fmul_3 { - - public float run(float a, double b) { - return a*(float)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_4.j deleted file mode 100644 index 1455bb6a652edbe9c92daebb23fe68ea98b8df1a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fmul_4.java -.class public dxc/junit/opcodes/fmul/jm/T_fmul_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JF)F - .limit stack 3 - .limit locals 4 - - lload_1 -; l2f - fload_3 - fmul - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_4.java deleted file mode 100644 index 0e5200b2a75c01576be69a8ca3e0a460711af3bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fmul.jm; - -public class T_fmul_4 { - - public float run(long a, float b) { - return (float)a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_5.j deleted file mode 100644 index ce62cc06b3b7c1dc22a5bea9c4400ef6c674dd37..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fmul_5.java -.class public dxc/junit/opcodes/fmul/jm/T_fmul_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - - aload_0 - fload_2 - fmul - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_5.java deleted file mode 100644 index 9da82fa97b90724a6b8a086bbeb081ef62caa980..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fmul/jm/T_fmul_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fmul.jm; - -public class T_fmul_5 { - - public float run(float a, float b) { - return a*b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/Test_fneg.java b/tools/dx-tests/src/dxc/junit/opcodes/fneg/Test_fneg.java deleted file mode 100644 index d15f754beb70863c9f033ee7b7e5d178225268b4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/Test_fneg.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fneg; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fneg.jm.T_fneg_1; - -public class Test_fneg extends DxTestCase { - - /** - * @title Argument = 1 - */ - public void testN1() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(-1f, t.run(1f)); - } - - /** - * @title Argument = -1 - */ - public void testN2() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(1f, t.run(-1f)); - } - - /** - * @title Argument = +0 - */ - public void testN3() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(-0f, t.run(+0f)); - } - - /** - * @title Argument = -2.7 - */ - public void testN4() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(2.7f, t.run(-2.7f)); - } - - /** - * @title Argument = Float.NaN - */ - public void testB1() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(Float.NaN, t.run(Float.NaN)); - } - - /** - * @title Argument = Float.NEGATIVE_INFINITY - */ - public void testB2() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.NEGATIVE_INFINITY)); - } - - /** - * @title Argument = Float.POSITIVE_INFINITY - */ - public void testB3() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY)); - } - - /** - * @title Argument = Float.MAX_VALUE - */ - public void testB4() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(-3.4028235E38f, t.run(Float.MAX_VALUE)); - } - - /** - * @title Argument = Float.MIN - */ - public void testB5() { - T_fneg_1 t = new T_fneg_1(); - assertEquals(-1.4E-45f, t.run(Float.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fneg.jm.T_fneg_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fneg.jm.T_fneg_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fneg.jm.T_fneg_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fneg.jm.T_fneg_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_1.j deleted file mode 100644 index ee7b958acd9e78b20b45db9130ab236ea88aa368..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_1.java -.class public dxc/junit/opcodes/fneg/jm/T_fneg_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)F - .limit stack 1 - .limit locals 2 - fload_1 - fneg - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_1.java deleted file mode 100644 index ed652f0088bb99a929abb6f04e8a815987de3395..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fneg.jm; - -public class T_fneg_1 { - - public float run(float d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_2.j deleted file mode 100644 index 3d91051d8c801065d6a39157d290581bf0f14562..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_2.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fneg_2.java -.class public dxc/junit/opcodes/fneg/jm/T_fneg_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)F - .limit stack 1 - .limit locals 2 - ;fload_1 - fneg - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_2.java deleted file mode 100644 index 9872e071cad9abe179a03be33fc19178152d41c6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fneg.jm; - -public class T_fneg_2 { - - public float run(float d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_3.j deleted file mode 100644 index 0ef20fe55552563b5174db45de11945b69e8ac7d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fneg_3.java -.class public dxc/junit/opcodes/fneg/jm/T_fneg_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)F - .limit stack 2 - .limit locals 3 - ;fload_1 - dconst_1 - fneg - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_3.java deleted file mode 100644 index 8ebcf38d9fb7e354d8283db8a9c47fdc2a7323cb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fneg.jm; - -public class T_fneg_3 { - - public float run(float d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_4.j deleted file mode 100644 index 1e8eaadb7e79265c58e9b157bb055430dfd2307a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_4.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fneg_4.java -.class public dxc/junit/opcodes/fneg/jm/T_fneg_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)F - .limit stack 2 - .limit locals 3 - ;fload_1 - lconst_1 - fneg - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_4.java deleted file mode 100644 index 97504d382c1b5227e5da1208d578728126f2a447..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fneg.jm; - -public class T_fneg_4 { - - public float run(float d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_5.j deleted file mode 100644 index 48e5e3abc371960cc0dfd77a94c2e21d1e1fb856..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fneg_5.java -.class public dxc/junit/opcodes/fneg/jm/T_fneg_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(F)F - .limit stack 1 - .limit locals 2 - - aload_0 - fneg - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_5.java deleted file mode 100644 index c46a00275c4ebeec63a53ee69cc758da9b37a9d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fneg/jm/T_fneg_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fneg.jm; - -public class T_fneg_5 { - - public float run(float d) { - return -d; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/Test_frem.java b/tools/dx-tests/src/dxc/junit/opcodes/frem/Test_frem.java deleted file mode 100644 index 4cf0a68b0b06652acd7a2ee0f27d1b8a7633ad0d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/Test_frem.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.frem; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.frem.jm.T_frem_1; - -public class Test_frem extends DxTestCase { - - /** - * @title Arguments = 2.7f, 3.14f - */ - public void testN1() { - T_frem_1 t = new T_frem_1(); - assertEquals(2.7f, t.run(2.7f, 3.14f)); - } - - /** - * @title Dividend = 0 - */ - public void testN2() { - T_frem_1 t = new T_frem_1(); - assertEquals(0f, t.run(0, 3.14f)); - } - - /** - * @title Dividend is negative - */ - public void testN3() { - T_frem_1 t = new T_frem_1(); - assertEquals(-0.44000006f, t.run(-3.14f, 2.7f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, Float.NaN - */ - public void testB1() { - T_frem_1 t = new T_frem_1(); - assertEquals(Float.NaN, t.run(Float.MAX_VALUE, Float.NaN)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.NEGATIVE_INFINITY - */ - public void testB2() { - T_frem_1 t = new T_frem_1(); - assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY, - Float.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, -2.7f - */ - public void testB3() { - T_frem_1 t = new T_frem_1(); - assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY, -2.7f)); - } - - /** - * @title Arguments = -2.7f, Float.NEGATIVE_INFINITY - */ - public void testB4() { - T_frem_1 t = new T_frem_1(); - assertEquals(-2.7f, t.run(-2.7f, Float.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_frem_1 t = new T_frem_1(); - assertEquals(Float.NaN, t.run(0, 0)); - } - - /** - * @title Arguments = 0, -2.7 - */ - public void testB6() { - T_frem_1 t = new T_frem_1(); - assertEquals(0f, t.run(0, -2.7f)); - } - - /** - * @title Arguments = -2.7, 0 - */ - public void testB7() { - T_frem_1 t = new T_frem_1(); - assertEquals(Float.NaN, t.run(-2.7f, 0)); - } - - /** - * @title Arguments = 1, Float.MAX_VALUE - */ - public void testB8() { - T_frem_1 t = new T_frem_1(); - assertEquals(0f, t.run(1, Float.MIN_VALUE)); - } - - /** - * @title Arguments = Float.MAX_VALUE, -1E-9f - */ - public void testB9() { - T_frem_1 t = new T_frem_1(); - assertEquals(7.2584893E-10f, t.run(Float.MAX_VALUE, -1E-9f)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.frem.jm.T_frem_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.frem.jm.T_frem_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.frem.jm.T_frem_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.frem.jm.T_frem_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_1.j b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_1.j deleted file mode 100644 index f8bbda0581b9b26cb3c5a19a762dea07cab99c7f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_frem_1.java -.class public dxc/junit/opcodes/frem/jm/T_frem_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - fload_2 - frem - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_1.java b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_1.java deleted file mode 100644 index e96b4b06d4e1cd03ec8fc080a450a181104168a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.frem.jm; - -public class T_frem_1 { - - public float run(float a, float b) { - return a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_2.j b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_2.j deleted file mode 100644 index 80e3e218cc801db4a87df5ec1cbaeac00ccb1fae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_frem_2.java -.class public dxc/junit/opcodes/frem/jm/T_frem_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - ; fload_2 - frem - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_2.java b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_2.java deleted file mode 100644 index 86b123033ebf06e76c2204782d9402081b22c5d4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.frem.jm; - -public class T_frem_2 { - - public float run(float a, float b) { - return a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_3.j b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_3.j deleted file mode 100644 index 0c55f61cb6922d8854abf1375f5193401132d6f5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_frem_3.java -.class public dxc/junit/opcodes/frem/jm/T_frem_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)F - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - frem - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_3.java b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_3.java deleted file mode 100644 index 804735660aa9b74ea1df5c17d38d3294df97b492..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.frem.jm; - -public class T_frem_3 { - - public float run(float a, double b) { - return a%(float)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_4.j b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_4.j deleted file mode 100644 index d179b19e98dfcbb3bf000cfc08d0abeecb81f0a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_frem_4.java -.class public dxc/junit/opcodes/frem/jm/T_frem_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JF)F - .limit stack 3 - .limit locals 4 - - lload_1 -; l2f - fload_3 - frem - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_4.java b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_4.java deleted file mode 100644 index ff87ad6270af70d8cc01753a48826254a2d3eb20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.frem.jm; - -public class T_frem_4 { - - public float run(long a, float b) { - return (float)a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_5.j b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_5.j deleted file mode 100644 index c82332fefad189834230ae04d11b283faddf0afe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_frem_5.java -.class public dxc/junit/opcodes/frem/jm/T_frem_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - - aload_0 - fload_2 - frem - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_5.java b/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_5.java deleted file mode 100644 index 9f4f0550813ac225990a554d9a2cd525b6401ab6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/frem/jm/T_frem_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.frem.jm; - -public class T_frem_5 { - - public float run(float a, float b) { - return a%b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/Test_freturn.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/Test_freturn.java deleted file mode 100644 index a109dfd934b807b62b1787d45cdb292781a9a5e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/Test_freturn.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.freturn.jm.T_freturn_1; -import dxc.junit.opcodes.freturn.jm.T_freturn_6; -import dxc.junit.opcodes.freturn.jm.T_freturn_7; -import dxc.junit.opcodes.freturn.jm.T_freturn_8; -import dxc.junit.opcodes.freturn.jm.T_freturn_9; - -public class Test_freturn extends DxTestCase { - - /** - * @title simple - */ - public void testN1() { - T_freturn_1 t = new T_freturn_1(); - assertEquals(123456f, t.run()); - } - - /** - * @title check that frames are discarded and reinstananted correctly - */ - public void testN2() { - T_freturn_6 t = new T_freturn_6(); - assertEquals(123456f, t.run()); - } - - /** - * @title check that monitor is released by freturn - */ - public void testN3() { - assertTrue(T_freturn_7.execute()); - } - - /** - * @title Method is synchronized but thread is not monitor owner - */ - public void testE1() { - T_freturn_8 t = new T_freturn_8(); - try { - assertTrue(t.run()); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title Lock structural rule 1 is violated - */ - public void testE2() { - T_freturn_9 t = new T_freturn_9(); - try { - assertEquals(1f, t.run()); - // the JVM spec says that it is optional to implement the structural - // lock rules, see JVM spec 8.13 and monitorenter/exit opcodes. - System.out.print("dvmvfe:"); - //fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - - /** - * @constraint 4.8.2.14 - * @title method's return type - void - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.freturn.jm.T_freturn_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.freturn.jm.T_freturn_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.freturn.jm.T_freturn_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.freturn.jm.T_freturn_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.freturn.jm.T_freturn_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.freturn.jm.T_freturn_11"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_1.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_1.j deleted file mode 100644 index e194867358a577786a3692bbdffdb6554ffae2a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_1.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - ldc 123456.0f - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_1.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_1.java deleted file mode 100644 index cbc1490d824d40dd657f80f3d2fbd5271c7153d1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_1 { - - public float run() { - return 123456f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_10.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_10.j deleted file mode 100644 index 0f73349b699aed8ba3dd42b0f69527c8618dab6d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_10.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_10.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private static test()F - .limit stack 1 - .limit locals 0 - fconst_1 - freturn -.end method - - - -.method public run()F - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/freturn/jm/T_freturn_10/test()F - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_10.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_10.java deleted file mode 100644 index caa1933eb9f683e3f25fa07f31ca38bffffc54ff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_10.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_10 { - - private static float test() { - return 1f; - } - - public float run() { - return test(); - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_11.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_11.j deleted file mode 100644 index 8143890a0aa7baae82b55eab1e3cf41b08544824..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_11.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_11.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - .limit stack 1 - .limit locals 1 - - aload_0 - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_11.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_11.java deleted file mode 100644 index 303e93929a5a106d23e84218a4bd9df1fdaf31fb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_11 { - - public float run() { - return 0f; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_2.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_2.j deleted file mode 100644 index 685f3f1442b9153aa1cef223d5213c30741800ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_2.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 1 - - fconst_0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_2.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_2.java deleted file mode 100644 index 6589925c53b3d39b65e1ad35f04ddb0bab50e855..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_2 { - - public float run() { - return 0f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_3.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_3.j deleted file mode 100644 index b1109da57fb86b00349d04a813eea0bd556c2d3d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_3.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()D - .limit stack 1 - .limit locals 1 - - fconst_0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_3.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_3.java deleted file mode 100644 index 202091dd3bc0ff9414e20220b96cdb3f46a2217b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_3 { - - public float run() { - return 0f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_4.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_4.j deleted file mode 100644 index 7da6dfb066740f17385aa7213fc75a9338a173a3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_4.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - .limit stack 1 - .limit locals 1 - - ;fconst_0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_4.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_4.java deleted file mode 100644 index e0503e770620cb9416d7b2039d4dfdd9695e9b0d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_4 { - - public float run() { - return 0f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_5.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_5.j deleted file mode 100644 index 21c85b8b2d8cbcf5b1febe7ee229403e2781b3fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_5.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - .limit stack 2 - .limit locals 1 - - dconst_0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_5.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_5.java deleted file mode 100644 index e5018c97f1a6561683412f1ec32a07a3edc3d4fb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_5 { - - public float run() { - return 0f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_6.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_6.j deleted file mode 100644 index 7e7ba2c3ffdefd256e5829a09866520ae8fa67c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_6.j +++ /dev/null @@ -1,90 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_6.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - .limit locals 6 - .limit stack 6 - - fconst_1 - fstore_1 - fconst_2 - fstore_2 - ldc 3.0f - fstore 3 - - ldc 4.0f - - invokestatic dxc/junit/opcodes/freturn/jm/T_freturn_6/test()F - - ldc 4444.0f - fcmpl - ifne Label1 - - ldc 4.0f - fcmpl - ifne Label0 - - fload_1 - fconst_1 - fcmpl - ifne Label0 - - fload_2 - fconst_2 - fcmpl - ifne Label0 - - fload_3 - ldc 3.0f - fcmpl - ifne Label0 - - ldc 123456.0f - freturn - -Label1: - pop -Label0: - fconst_0 - freturn - -.end method - -.method private static test()F - .limit locals 4 - .limit stack 4 - - ldc 1111.0f - fstore_1 - ldc 2222.0f - fstore_2 - ldc 3333.0f - fstore_3 - - ldc 5555.0f - - ldc 4444.0f - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_6.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_6.java deleted file mode 100644 index a6fad356116e14c8dc1067c84a33cd15379c1324..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_6.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_6 { - - public float run() { - return 123456f; - } - - private static float test() { - float a = 1111f; - float b = 2222f; - float c = 3333f; - return 4444f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_7.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_7.j deleted file mode 100644 index afa8119103d5ded64ab0d51ddcecbb5ea85b4494..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_7.j +++ /dev/null @@ -1,166 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_7.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_7 -.super java/lang/Object -.implements java/lang/Runnable - -.field value F -.field failed Z - -.method public ()V - .limit stack 3 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - fconst_0 - putfield dxc.junit.opcodes.freturn.jm.T_freturn_7.value F - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.freturn.jm.T_freturn_7.failed Z - - return - -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label4: - iload_1 - sipush 1000 - if_icmpge Label3 - - aload_0 - invokespecial dxc/junit/opcodes/freturn/jm/T_freturn_7/test()F - pop - - iinc 1 1 - - goto Label4 - - -Label3: - return - -.end method - - - -.method private synchronized test()F - .limit stack 3 - .limit locals 2 - -.line 16 - aload_0 - dup - getfield dxc.junit.opcodes.freturn.jm.T_freturn_7.value F - dup - fstore_1 - - fconst_1 - fadd - putfield dxc.junit.opcodes.freturn.jm.T_freturn_7.value F - - fload_1 - fconst_1 - fadd - fstore_1 - - invokestatic java/lang/Thread/yield()V - - fload_1 - aload_0 - getfield dxc.junit.opcodes.freturn.jm.T_freturn_7.value F - fcmpl - ifeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.freturn.jm.T_freturn_7.failed Z - -Label0: - fload_1 - freturn -.end method - - - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/freturn/jm/T_freturn_7 - dup - invokespecial dxc/junit/opcodes/freturn/jm/T_freturn_7/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: ; exception handler - astore_3 - goto Label3 - -Label0: - aload_0 - getfield dxc.junit.opcodes.freturn.jm.T_freturn_7.value F - ldc 2000.0f - fcmpl - ifne Label3 - - aload_0 - getfield dxc.junit.opcodes.freturn.jm.T_freturn_7.failed Z - ifne Label3 - - iconst_1 - ireturn - -Label3: - iconst_0 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_7.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_7.java deleted file mode 100644 index af11cd1f0b49005d2061e2b9ca4a7ab06b31f958..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_7.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_7 implements Runnable { - public final static int CNT = 1000; - float value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized float test() { - value++; - float c = value; - Thread.yield(); - if(c != value) - failed = true; - return c; - } - - public static boolean execute() { - T_freturn_7 test = new T_freturn_7(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_8.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_8.j deleted file mode 100644 index e1e6f78d5c0ebd759f88b13d42aa420f39849c2d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_8.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_8.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private synchronized test()F - .limit stack 1 - aload_0 - monitorexit - fconst_0 - freturn -.end method - - - -.method public run()Z - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/freturn/jm/T_freturn_8/test()F - pop - - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_8.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_8.java deleted file mode 100644 index 230931d15dfa74bd52223007c6b414f9737e71d5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_8.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_8 { - - private synchronized float test() { - return 0f; - } - - public boolean run() { - test(); - return true; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_9.j b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_9.j deleted file mode 100644 index e492ac212bfb43c441c25ca700b4427d24e9a230..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_freturn_9.java -.class public dxc/junit/opcodes/freturn/jm/T_freturn_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - .limit stack 1 - .limit locals 1 - - aload_0 - monitorenter - - fconst_1 - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_9.java b/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_9.java deleted file mode 100644 index d32b8a6a3f5c66f5ebbf7430998aceea1022d104..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/freturn/jm/T_freturn_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.freturn.jm; - -public class T_freturn_9 { - - public float run() { - return 1f; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/Test_fstore.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/Test_fstore.java deleted file mode 100644 index 1c074f0a7b2cabc327cc5e5146384861058ce95d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/Test_fstore.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fstore.jm.T_fstore_1; -import dxc.junit.opcodes.fstore.jm.T_fstore_1_w; -import dxc.junit.opcodes.fstore.jm.T_fstore_5; -import dxc.junit.opcodes.fstore.jm.T_fstore_5_w; - -public class Test_fstore extends DxTestCase { - - /* - * NORMAL fstore VERSION - */ - - /** - * @title fstore 0 - */ - public void testN1() { - assertEquals(2f, T_fstore_1.run()); - } - - /** - * @title fstore 255 - */ - public void testN2() { - assertEquals(2f, T_fstore_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1) - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fstore.jm.T_fstore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fstore.jm.T_fstore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fstore.jm.T_fstore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE fstore VERSION - */ - - /** - * @title fstore_w 0 - */ - public void testN3() { - assertEquals(2f, T_fstore_1_w.run()); - } - - /** - * @title fstore 257 - */ - public void testN4() { - assertEquals(2f, T_fstore_5_w.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fstore.jm.T_fstore_2_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.fstore.jm.T_fstore_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.fstore.jm.T_fstore_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1.j deleted file mode 100644 index ddbbeaa9435ffb85605ef8de585e04bae26a3a41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_1.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 1 - - fconst_2 - fstore 0 - fconst_1 - fload 0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1.java deleted file mode 100644 index 546394b278e0b89c3250d08dc6e233b499dc513d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_1 { - - public static float run() { - return 2; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1_w.j deleted file mode 100644 index f3a2c2ba38835bc8a4eaf2e3722b11db341835ff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_1_w.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_1_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 1 - - fconst_2 - fstore_w 0 - fconst_1 - fload 0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1_w.java deleted file mode 100644 index cba5c82c8abafcf90231ac45d0fa5e40f320138d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_1_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_1_w { - - public static float run() { - return 2; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2.j deleted file mode 100644 index 6eb7c7d226bd824bb277a0ec09ff2e9f11617e76..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_2.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - fstore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2.java deleted file mode 100644 index c535d34e91da5d277d22daeb1414d49799a9eee4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2_w.j deleted file mode 100644 index 20933b4bf027ac60a7e0f098a5b3b58254bd1eba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_2_w.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - fstore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2_w.java deleted file mode 100644 index 0664597db4331484db1b1f30202730842fb07f32..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_2_w { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3.j deleted file mode 100644 index 75bc312fe77e17d23cd74283026e8cdfd1c073d6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_3.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - fstore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3.java deleted file mode 100644 index 9fe4d51468500fa7d5153a9011431fa8180ce4a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3_w.j deleted file mode 100644 index a401cf024685e262009cd8679b3a0e3e055f399f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_3_w.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - fstore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3_w.java deleted file mode 100644 index 7b32dfeddcf0484c3edd5a0283e29409d1fab2b5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_3_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_3_w { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4.j deleted file mode 100644 index 7a7ad92e97be0e80e96885b79ea8278a67d4c9e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_4.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - fstore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4.java deleted file mode 100644 index 97b94bc52e312c6abc6c0cfec40c12975892bed9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4_w.j deleted file mode 100644 index afbd8e46652fbf4eae714d8c51da7d0f17c701d2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_4_w.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - fstore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4_w.java deleted file mode 100644 index 0e658e053f591085533ebf5d0d895fcd06610861..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_4_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_4_w { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5.j deleted file mode 100644 index 818c41f8b8b68be8450bc18e27587c0c1119acc7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_5.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 300 - - fconst_2 - fstore 255 - fconst_1 - fload 255 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5.java deleted file mode 100644 index 9b768878db3dee35eec1a90adfc7e722f9727676..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_5 { - - public static float run() { - return 2; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5_w.j deleted file mode 100644 index ccc6f4c7adeeb74567ebfdbd8209dd3ea5d21855..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_5_w.java -.class public dxc/junit/opcodes/fstore/jm/T_fstore_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 300 - - fconst_2 - fstore_w 257 - fconst_1 - fload 257 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5_w.java deleted file mode 100644 index 119ad9c80caa1f0d31d1b2affad9aca592043336..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore/jm/T_fstore_5_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore.jm; - -public class T_fstore_5_w { - - public static float run() { - return 2; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/Test_fstore_0.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/Test_fstore_0.java deleted file mode 100644 index e512d4e582b054ad0138b7d7d22fb382bd32b391..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/Test_fstore_0.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fstore_0.jm.T_fstore_0_1; -import dxc.junit.opcodes.fstore_0.jm.T_fstore_0_5; - -public class Test_fstore_0 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(2f, T_fstore_0_1.run()); - } - - /** - * @title equality of fstore_ and fstore - */ - public void testN2() { - assertTrue(T_fstore_0_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fstore_0.jm.T_fstore_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fstore_0.jm.T_fstore_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fstore_0.jm.T_fstore_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_1.j deleted file mode 100644 index 288c55ea607e76054207ab7d04a74992248f0872..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_0_1.java -.class public dxc/junit/opcodes/fstore_0/jm/T_fstore_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 1 - - fconst_2 - fstore_0 - fconst_1 - fload_0 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_1.java deleted file mode 100644 index a098e2cff8f47be939b0b9442b570786fdebae2c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_0.jm; - -public class T_fstore_0_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_2.j deleted file mode 100644 index 85b0dd878ee4eb09ed976c405ec94b584a21e625..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_0_2.java -.class public dxc/junit/opcodes/fstore_0/jm/T_fstore_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - fstore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_2.java deleted file mode 100644 index 60d69323026546e0aa453cb9c70361ecbe818ff6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_0.jm; - -public class T_fstore_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_3.j deleted file mode 100644 index 7f0a48aef0338505aa52db7a84e37047d537ccec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_0_3.java -.class public dxc/junit/opcodes/fstore_0/jm/T_fstore_0_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - fstore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_3.java deleted file mode 100644 index 28ae501cb45a0c1448b846402094db3854ccf78d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_0.jm; - -public class T_fstore_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_4.j deleted file mode 100644 index daeb3028e17b9aa8ac5a2a6b1874dc0a6f02ea70..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_0_4.java -.class public dxc/junit/opcodes/fstore_0/jm/T_fstore_0_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - fstore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_4.java deleted file mode 100644 index 9ddb0f51b164de81a1a0755a1ca616f5d2317b5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_0.jm; - -public class T_fstore_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_5.j deleted file mode 100644 index bc5488f6e191c175504984fa3ad5d5c410fbec61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_0_5.java -.class public dxc/junit/opcodes/fstore_0/jm/T_fstore_0_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 2 - - fconst_2 - fstore_0 - fload_0 - - fconst_2 - fstore 0 - fload_0 - - fcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_5.java deleted file mode 100644 index caf98c1590a7564f899ba21e1fadd26ab48aafed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_0/jm/T_fstore_0_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_0.jm; - -public class T_fstore_0_5 { - - public static boolean run() { - float i = 2; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/Test_fstore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/Test_fstore_1.java deleted file mode 100644 index 1cd18659d117628a3e2d37747533d0427756bd7c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/Test_fstore_1.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fstore_1.jm.T_fstore_1_1; -import dxc.junit.opcodes.fstore_1.jm.T_fstore_1_5; - -public class Test_fstore_1 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(2f, T_fstore_1_1.run()); - } - - /** - * @title equality of fstore_ and fstore - */ - public void testN2() { - assertTrue(T_fstore_1_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fstore_1.jm.T_fstore_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fstore_1.jm.T_fstore_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fstore_1.jm.T_fstore_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_1.j deleted file mode 100644 index 4f5183e9757b0bcac6a449a414ac5e10f4139c14..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_1_1.java -.class public dxc/junit/opcodes/fstore_1/jm/T_fstore_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 2 - - fconst_2 - fstore_1 - fconst_1 - fload_1 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_1.java deleted file mode 100644 index 1f479a2f8f01f85e07cf3ae181f7121acaba51a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_1.jm; - -public class T_fstore_1_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_2.j deleted file mode 100644 index 438637a6bfb55695c5d90f3d567993e6ce130621..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_1_2.java -.class public dxc/junit/opcodes/fstore_1/jm/T_fstore_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 1 - - fstore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_2.java deleted file mode 100644 index 612dead8f2353672c49a917e847de6905571f89a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_1.jm; - -public class T_fstore_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_3.j deleted file mode 100644 index 17895adf10f29e5a6674bc9ec30f73ba6561d3ec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_1_3.java -.class public dxc/junit/opcodes/fstore_1/jm/T_fstore_1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - fstore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_3.java deleted file mode 100644 index f202684b98de5d265d96a3c7f4057462cac08100..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_1.jm; - -public class T_fstore_1_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_4.j deleted file mode 100644 index 54b2fce414b377e70ca5d5cdca80fdc951e5acf9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_1_4.java -.class public dxc/junit/opcodes/fstore_1/jm/T_fstore_1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - fstore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_4.java deleted file mode 100644 index 2aac2d3f8e830d8c11c7b4ad255480c7922b7d90..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_1.jm; - -public class T_fstore_1_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_5.j deleted file mode 100644 index 8f3a4cc4b400d12f5694dba521e2caa022e2c527..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_1_5.java -.class public dxc/junit/opcodes/fstore_1/jm/T_fstore_1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 2 - - fconst_2 - fstore_1 - fload_1 - - fconst_2 - fstore 1 - fload_1 - - fcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_5.java deleted file mode 100644 index f7aacea1a56f59930337164c4ce15cdcca7d8cb8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_1/jm/T_fstore_1_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_1.jm; - -public class T_fstore_1_5 { - - public static boolean run() { - float i = 2; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/Test_fstore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/Test_fstore_2.java deleted file mode 100644 index 02956aa4147d9bb08dcce0d0376b84b66500b840..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/Test_fstore_2.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fstore_2.jm.T_fstore_2_1; -import dxc.junit.opcodes.fstore_2.jm.T_fstore_2_5; - -public class Test_fstore_2 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(2f, T_fstore_2_1.run()); - } - - /** - * @title equality of fstore_ and fstore - */ - public void testN2() { - assertTrue(T_fstore_2_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fstore_2.jm.T_fstore_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fstore_2.jm.T_fstore_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fstore_2.jm.T_fstore_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_1.j deleted file mode 100644 index 544718bb2a709419c613d01217057d3287e8d993..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_2_1.java -.class public dxc/junit/opcodes/fstore_2/jm/T_fstore_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 3 - - fconst_2 - fstore_2 - fconst_1 - fload_2 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_1.java deleted file mode 100644 index af93f5149b5babb97110c78a4153df00c1645973..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_2.jm; - -public class T_fstore_2_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_2.j deleted file mode 100644 index 9ef2c53edc9f6357aa63e9250503124d1b5f66c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_2_2.java -.class public dxc/junit/opcodes/fstore_2/jm/T_fstore_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 2 - - fstore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_2.java deleted file mode 100644 index ad6e1394dd729a5a3557858a2ef313ccd59f4f40..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_2.jm; - -public class T_fstore_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_3.j deleted file mode 100644 index 931c9cd3129f06822d3b7658b956ee1fa4f02726..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_2_3.java -.class public dxc/junit/opcodes/fstore_2/jm/T_fstore_2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - fstore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_3.java deleted file mode 100644 index fef360e70f33565d5c75a8a77c44715694317ef5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_2.jm; - -public class T_fstore_2_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_4.j deleted file mode 100644 index 1a28180fc6011215008f15647e5c6034fe62cb74..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_2_4.java -.class public dxc/junit/opcodes/fstore_2/jm/T_fstore_2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - fstore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_4.java deleted file mode 100644 index b16418061aa743f6ee5d25175f397a36b1f3be20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_2.jm; - -public class T_fstore_2_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_5.j deleted file mode 100644 index 51e53ec18a296c960fa5fb1b6dc7ff750871b8c9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_2_5.java -.class public dxc/junit/opcodes/fstore_2/jm/T_fstore_2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 3 - - fconst_2 - fstore_2 - fload_2 - - fconst_2 - fstore 2 - fload_2 - - fcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_5.java deleted file mode 100644 index 28956f214b03048567cd0fb59c8c0b7b0a059ce5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_2/jm/T_fstore_2_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_2.jm; - -public class T_fstore_2_5 { - - public static boolean run() { - float i = 2; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/Test_fstore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/Test_fstore_3.java deleted file mode 100644 index ef6d0a5e21e31b5b3832a9dfdecb96086962cc46..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/Test_fstore_3.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fstore_3.jm.T_fstore_3_1; -import dxc.junit.opcodes.fstore_3.jm.T_fstore_3_5; - -public class Test_fstore_3 extends DxTestCase { - - /** - * @title value is stored - */ - public void testN1() { - assertEquals(2f, T_fstore_3_1.run()); - } - - /** - * @title equality of fstore_ and fstore - */ - public void testN2() { - assertTrue(T_fstore_3_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fstore_3.jm.T_fstore_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fstore_3.jm.T_fstore_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fstore_3.jm.T_fstore_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_1.j deleted file mode 100644 index 4aba4f0dc22fe4eab34b6cb80125a10ac22d9b0f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_3_1.java -.class public dxc/junit/opcodes/fstore_3/jm/T_fstore_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()F - .limit stack 2 - .limit locals 4 - - fconst_2 - fstore_3 - fconst_1 - fload_3 - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_1.java deleted file mode 100644 index 5d763a73da3a4c6825a1509c8dce140cebd9e97f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_3.jm; - -public class T_fstore_3_1 { - - public static float run() { - return 2f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_2.j deleted file mode 100644 index 554ba649af403998d37cae1b6b0d08251a697e95..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_3_2.java -.class public dxc/junit/opcodes/fstore_3/jm/T_fstore_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 3 - - fstore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_2.java deleted file mode 100644 index 54afaa203e815fe4eab4939c86489ada15ad69e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_3.jm; - -public class T_fstore_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_3.j deleted file mode 100644 index 3b3c30e65386016b44ac697aa8163ac8589d0e1f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_3_3.java -.class public dxc/junit/opcodes/fstore_3/jm/T_fstore_3_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - dconst_1 - fstore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_3.java deleted file mode 100644 index 17de90e2681611e4ae01cd23985bc86b15bb3350..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_3.jm; - -public class T_fstore_3_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_4.j deleted file mode 100644 index 05eb66e91f8829e4c569c23bd400f95252194d54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_3_4.java -.class public dxc/junit/opcodes/fstore_3/jm/T_fstore_3_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 5 - - lconst_1 - fstore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_4.java deleted file mode 100644 index 145fc22db5b41c45c053d3d63020e7c5bb99aa39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_3.jm; - -public class T_fstore_3_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_5.j deleted file mode 100644 index 2904eddea354c3fc438b2d17bb9f46b4289dbaf2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fstore_3_5.java -.class public dxc/junit/opcodes/fstore_3/jm/T_fstore_3_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 4 - - fconst_2 - fstore_3 - fload_3 - - fconst_2 - fstore 3 - fload_3 - - fcmpl - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_5.java deleted file mode 100644 index 1bf3a265b3008a7573cc4d2f6be5cac4d00cb018..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fstore_3/jm/T_fstore_3_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fstore_3.jm; - -public class T_fstore_3_5 { - - public static boolean run() { - float i = 2; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/Test_fsub.java b/tools/dx-tests/src/dxc/junit/opcodes/fsub/Test_fsub.java deleted file mode 100644 index 897cd58a938764eb251318c8d2ee9a814a008da7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/Test_fsub.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fsub; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.fsub.jm.T_fsub_1; - -public class Test_fsub extends DxTestCase { - - /** - * @title Arguments = 2.7f, 3.14f - */ - public void testN1() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(-0.44000006f, t.run(2.7f, 3.14f)); - } - - /** - * @title Arguments = 0, -3.14f - */ - public void testN2() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(3.14f, t.run(0, -3.14f)); - } - - /** - * @title Arguments = -3.14f, -2.7f - */ - public void testN3() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(-0.44000006f, t.run(-3.14f, -2.7f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, Float.NaN - */ - public void testB1() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(Float.NaN, t.run(Float.MAX_VALUE, Float.NaN)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.NEGATIVE_INFINITY - */ - public void testB2() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, - Float.NEGATIVE_INFINITY)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, - * Float.POSITIVE_INFINITY - */ - public void testB3() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY, - Float.POSITIVE_INFINITY)); - } - - /** - * @title Arguments = Float.POSITIVE_INFINITY, -2.7f - */ - public void testB4() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, - -2.7f)); - } - - /** - * @title Arguments = +0, -0f - */ - public void testB5() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(+0f, t.run(+0f, -0f)); - } - - /** - * @title Arguments = -0f, -0f - */ - public void testB6() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(0f, t.run(-0f, -0f)); - } - - /** - * @title Arguments = +0f, +0f - */ - public void testB7() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(+0f, t.run(+0f, +0f)); - } - - /** - * @title Arguments = 2.7f, 2.7f - */ - public void testB8() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(0f, t.run(2.7f, 2.7f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, Float.MAX_VALUE - */ - public void testB9() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(0f, t.run(Float.MAX_VALUE, Float.MAX_VALUE)); - } - - /** - * @title Arguments = Float.MIN_VALUE, -1.4E-45f - */ - public void testB10() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(0f, t.run(Float.MIN_VALUE, 1.4E-45f)); - } - - /** - * @title Arguments = Float.MAX_VALUE, -Float.MAX_VALUE - */ - public void testB11() { - T_fsub_1 t = new T_fsub_1(); - assertEquals(Float.POSITIVE_INFINITY, t.run(Float.MAX_VALUE, - -3.402823E+38F)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.fsub.jm.T_fsub_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.fsub.jm.T_fsub_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.fsub.jm.T_fsub_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.fsub.jm.T_fsub_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_1.j b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_1.j deleted file mode 100644 index 649dee4739c9701b00b7038292a53eceac8eb353..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fsub_1.java -.class public dxc/junit/opcodes/fsub/jm/T_fsub_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - fload_2 - fsub - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_1.java b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_1.java deleted file mode 100644 index 2038dfa271051e25471d9e65abf1f1650cd57c0a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fsub.jm; - -public class T_fsub_1 { - - public float run(float a, float b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_2.j b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_2.j deleted file mode 100644 index e4afbf1a7fce0962c3dbdca24dd540b67950e575..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fsub_2.java -.class public dxc/junit/opcodes/fsub/jm/T_fsub_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - fload_1 - ; fload_2 - fsub - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_2.java b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_2.java deleted file mode 100644 index 7971658b75ba300c4d440d1c79d617168444cca7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fsub.jm; - -public class T_fsub_2 { - - public float run(float a, float b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_3.j b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_3.j deleted file mode 100644 index 02633be23b7151997b3013eaa40dfa10aede7ad7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fsub_3.java -.class public dxc/junit/opcodes/fsub/jm/T_fsub_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FD)F - .limit stack 3 - .limit locals 5 - fload_1 - dload_2 - fsub - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_3.java b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_3.java deleted file mode 100644 index 9cdbf974b72ae7a5f46e580fe4f8c63aa8f4bceb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fsub.jm; - -public class T_fsub_3 { - - public float run(float a, double b) { - return a-(float)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_4.j b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_4.j deleted file mode 100644 index 47c7ba9d427782d9d5133b33e7e2db2af8d5f05f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fsub_4.java -.class public dxc/junit/opcodes/fsub/jm/T_fsub_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JF)F - .limit stack 3 - .limit locals 4 - - lload_1 -; l2f - fload_3 - fsub - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_4.java b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_4.java deleted file mode 100644 index 86de9bc7ee098fe3faf32e9f527d207fa8ad1479..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fsub.jm; - -public class T_fsub_4 { - - public float run(long a, float b) { - return (float)a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_5.j b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_5.j deleted file mode 100644 index 26bb80522d1a72746afa61d4c1edbd3f6c4d1f3e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_fsub_5.java -.class public dxc/junit/opcodes/fsub/jm/T_fsub_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(FF)F - .limit stack 2 - .limit locals 3 - - aload_0 - fload_2 - fsub - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_5.java b/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_5.java deleted file mode 100644 index 7687dc3d0ad6501dcf87143f8e8ce4b2bbe7708d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/fsub/jm/T_fsub_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.fsub.jm; - -public class T_fsub_5 { - - public float run(float a, float b) { - return a-b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/Test_getfield.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/Test_getfield.java deleted file mode 100644 index 39f925f3cacf63fdefeb2f5bf097459247ac4ac2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/Test_getfield.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.getfield.jm.T_getfield_1; -import dxc.junit.opcodes.getfield.jm.T_getfield_10; -import dxc.junit.opcodes.getfield.jm.T_getfield_11; -import dxc.junit.opcodes.getfield.jm.T_getfield_12; -import dxc.junit.opcodes.getfield.jm.T_getfield_14; -import dxc.junit.opcodes.getfield.jm.T_getfield_16; -import dxc.junit.opcodes.getfield.jm.T_getfield_17; -import dxc.junit.opcodes.getfield.jm.T_getfield_2; -import dxc.junit.opcodes.getfield.jm.T_getfield_5; -import dxc.junit.opcodes.getfield.jm.T_getfield_6; -import dxc.junit.opcodes.getfield.jm.T_getfield_7; -import dxc.junit.opcodes.getfield.jm.T_getfield_8; -import dxc.junit.opcodes.getfield.jm.T_getfield_9; -import dxc.junit.opcodes.getfield.jm.TestStubs; - -public class Test_getfield extends DxTestCase { - private int TestStubField = 123; - protected int TestStubFieldP = 0; - - private int privateInt = 456; - - /** - * @title type - int - */ - public void testN1() { - T_getfield_1 t = new T_getfield_1(); - assertEquals(5, t.run()); - } - - /** - * @title type - double - */ - public void testN2() { - T_getfield_2 t = new T_getfield_2(); - assertEquals(123d, t.run()); - } - - /** - * @title access protected field from subclass - */ - public void testN3() { - // @uses dxc.junit.opcodes.getfield.jm.T_getfield_1 - T_getfield_11 t = new T_getfield_11(); - assertEquals(10, t.run()); - } - - /** - * @title assignment compatible references - */ - public void testN4() { - // @uses dxc.junit.opcodes.getfield.jm.TChild - // @uses dxc.junit.opcodes.getfield.jm.TSuper - T_getfield_14 t = new T_getfield_14(); - assertEquals(0, t.run().compareTo("abc")); - } - - /** - * @title attempt to access static field - */ - public void testE1() { - // @uses dxc.junit.opcodes.getstatic.jm.T_getstatic_1 - try { - T_getfield_5 t = new T_getfield_5(); - t.run(); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title attempt to access of non-accessible private field - */ - public void testE2() { - try { - T_getfield_6 t = new T_getfield_6(); - int res = t.run(); - System.out.println("res:"+res); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE3() { - try { - // need to include the constructor call into the try-catch block, - // since class resolution can take place at any time. - // (not only when t.run() is called - T_getfield_7 t = new T_getfield_7(); - t.run(); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoSuchFieldError - */ - public void testE4() { - try { - T_getfield_8 t = new T_getfield_8(); - t.run(); - fail("expected NoSuchFieldError"); - } catch (NoSuchFieldError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title attempt to get int from float field - */ - public void testE5() { - try { - T_getfield_10 t = new T_getfield_10(); - t.run(); - fail("expected NoSuchFieldError"); - } catch (NoSuchFieldError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NullPointerException - */ - public void testE6() { - T_getfield_9 t = new T_getfield_9(); - try { - t.run(); - fail("expected NullPointerException"); - } catch (NullPointerException e) { - // expected - } - } - - //FIXME: "fail" commented out temporarily - check - /** - * @title attempt to read superclass' private field from subclass - * in same package - * - * FIXME: this seems to be a bug in JDK 1.5? - */ - public void testE7() { - // @uses dxc.junit.opcodes.getfield.jm.T_getfield_1 - try { - T_getfield_12 t = new T_getfield_12(); - //fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title attempt to read private field of a class which was passed - * as argument - */ - public void testE9() { - // @uses dxc.junit.opcodes.getfield.jm.TestStubs - try { - T_getfield_17 t = new T_getfield_17(); - t.run(new dxc.junit.opcodes.getfield.jm.TestStubs()); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - - - /** - * @title attempt to access of non-accessible protected field - */ - public void testE8() { - try { - T_getfield_16 t = new T_getfield_16(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.12 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.getfield.jm.T_getfield_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.getfield.jm.T_getfield_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.12 - * @title constant pool type - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.getfield.jm.T_getfield_13"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.16 - * @title assignment incompatible references - */ - public void testVFE4() { - // @uses dxc.junit.opcodes.getfield.jm.TChild - // @uses dxc.junit.opcodes.getfield.jm.TSuper - try { - Class.forName("dxc.junit.opcodes.getfield.jm.T_getfield_15"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_1.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_1.j deleted file mode 100644 index a669ff4203c7bf03dd33ecb98f9bab73bf38bca3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_1.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_1.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_1 -.super java/lang/Object - -.field public i1 I -.field protected p1 I -.field private pvt1 I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_5 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_1.i1 I - - aload_0 - bipush 10 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_1.p1 I - - aload_0 - bipush 20 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_1.pvt1 I - - return - -.end method - - - -.method public run()I - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_1.i1 I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_1.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_1.java deleted file mode 100644 index 2d0b7507685fc2cc851987349aacdf98aeeffad3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_1.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_1 { - public int i1 = 5; - protected int p1 = 10; - private int pvt1 = 20; - - public int run(){ - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_10.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_10.j deleted file mode 100644 index 0790ed3e94e393a6f393d9b6580f12e534fab74e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_10.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_10.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_10 -.super java/lang/Object - -.field public i1 F - - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - fconst_1 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_10.i1 F - - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_10.i1N I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_10.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_10.java deleted file mode 100644 index ba7aa3d0c07f61f7b1ef756541a680cbaabdbf81..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_10 { - public int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_11.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_11.j deleted file mode 100644 index 6f16f55a05e10e167196696a102bfcfee576612b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_11.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_11.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_11 -.super dxc/junit/opcodes/getfield/jm/T_getfield_1 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/getfield/jm/T_getfield_1/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_1.p1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_11.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_11.java deleted file mode 100644 index 1fefaa27a75aea8ecebf607b71596e840799cb7b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_11 extends T_getfield_1 { - - public int run(){ - return p1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_12.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_12.j deleted file mode 100644 index 5c535f44d8c01bd277c199b6029bd87ec57d3313..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_12.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_12.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_12 -.super dxc/junit/opcodes/getfield/jm/T_getfield_1 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/getfield/jm/T_getfield_1/()V - return -.end method - -.method public run()I - .limit stack 2 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_1.pvt1 I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_12.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_12.java deleted file mode 100644 index 6d92fceb5b5240e37d6a7155766ff366bc2786bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_12.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_12 extends T_getfield_1 { - - public int run(){ - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.cfh b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.cfh deleted file mode 100644 index 6ab79064b822d6009c03a2e26329f61bcdcc499a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.cfh +++ /dev/null @@ -1,234 +0,0 @@ -//@class:dxc/junit/opcodes/getfield/jm/T_getfield_13 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0013 -// . . - 00 13 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 19, h: 0001: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 29, len 5, h: 0002: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 34, len 9, h: 0003: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 43, len 3, h: 0004: type{java.lang.Object} - // . . . - 07 00 01 - // parsed:, offset 46, len 5, h: 0005: nat{:()V} - // . . . . . - 0c 00 03 00 06 - // parsed:, offset 51, len 6, h: 0006: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 57, len 7, h: 0007: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 64, len 4, h: 0008: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 68, len 13, h: 0009: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 81, len 3, h: 000a: type{dxc.junit.opcodes.getfield.jm.T_getfield_13} - // . . . - 07 00 11 - // parsed:, offset 84, len 5, h: 000b: nat{i1:I} - // . . . . . - 0c 00 0f 00 08 - // parsed:, offset 89, len 6, h: 000c: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 95, len 6, h: 000d: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 101, len 5, h: 000e: method{java.lang.Object.:()V} - // . . . . . - 0a 00 04 00 05 - // parsed:, offset 106, len 5, h: 000f: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 111, len 21, h: 0010: utf8{"T_getfield_13.java"} - // . . . T _ g e t f i e l d _ 1 3 . j a v a - 01 00 12 54 5f 67 65 74 66 69 65 6c 64 5f 31 33 2e 6a 61 76 61 - // parsed:, offset 132, len 46, h: 0011: utf8{"dxc/junit/opcodes/getfield/jm/T_getfield_13"} - // . . + d x c / j u n i t / o p c o d e s / g e t f i e l d / j m / T _ g e t f i e l d _ 1 3 - 01 00 2b 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 67 65 74 66 69 65 6c 64 2f 6a 6d 2f 54 5f 67 65 74 66 69 65 6c 64 5f 31 33 - // parsed:, offset 178, len 5, h: 0012: field{dxc.junit.opcodes.getfield.jm.T_getfield_13.i1:I} - // . . . . . - 09 00 0a 00 0b -// parsed:, offset 183, len 0, h: end constant_pool -// parsed:, offset 183, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 185, len 2, h: this_class: type{dxc.junit.opcodes.getfield.jm.T_getfield_13} -// . . - 00 0a -// parsed:, offset 187, len 2, h: super_class: type{java.lang.Object} -// . . - 00 04 -// parsed:, offset 189, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 191, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 193, len:91,desc: I -// parsed:, offset 193, len 0, h: fields[0]: - // parsed:, offset 193, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 195, len 2, h: name: i1 - // . . - 00 0f - // parsed:, offset 197, len 2, h: descriptor: I - // . . - 00 08 - // parsed:, offset 199, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 201, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 201, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 203, len:81,desc: ()V -// parsed:, offset 203, len 0, h: methods[0]: - // parsed:, offset 203, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 205, len 2, h: name: - // . . - 00 03 - // parsed:, offset 207, len 2, h: descriptor: ()V - // . . - 00 06 - // parsed:, offset 209, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 211, len 0, h: attributes[0]: - // parsed:, offset 211, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 213, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 217, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 219, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 221, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 0e - // parsed:, offset 4, len 1, h: 0004: aload_0 // 00 - // * - 2a - // parsed:, offset 5, len 1, h: 0005: iconst_5 // #+05 - // . - 08 - // parsed:, offset 6, len 3, h: 0006: putfield field{dxc.junit.opcodes.getfield.jm.T_getfield_13.i1:I} - // . . . - b5 00 12 - // parsed:, offset 9, len 1, h: 0009: return - // . - b1 - // parsed:, offset 10, len 1, h: 000a: return - // . - b1 - // parsed:, offset 236, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 238, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 240, len:44,desc: ()I -// parsed:, offset 240, len 0, h: methods[1]: - // parsed:, offset 240, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 242, len 2, h: name: run - // . . - 00 0d - // parsed:, offset 244, len 2, h: descriptor: ()I - // . . - 00 0c - // parsed:, offset 246, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 248, len 0, h: attributes[0]: - // parsed:, offset 248, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 250, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 254, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 256, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 258, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 2, h: 0000: ldc #4048f5c3 // 3.14 - // . . - 12 02 - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 1, h: 0003: aload_0 // 00 - // * - 2a - // parsed:, offset 4, len 3, h: 0004: getfield field{dxc.junit.opcodes.getfield.jm.T_getfield_13.i1:I} - // . . . -//@mod b4 00 12 - b4 00 02 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 270, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 272, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 274, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 276, len 0, h: attributes[0]: - // parsed:, offset 276, len 2, h: name: SourceFile - // . . - 00 09 - // parsed:, offset 278, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 282, len 2, h: source: utf8{"T_getfield_13.java"} - // . . - 00 10 -// parsed:, offset 284, len 0, h: end attributes[0] -// parsed:, offset 284, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.j deleted file mode 100644 index de3b816f9b55fa64436299611e52acf103072e86..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.j +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_13.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_13 -.super java/lang/Object - -.field public i1 I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_5 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_13.i1 I - return - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - ldc 3.14 - pop - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_13.i1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.java deleted file mode 100644 index 308734139492cd88e67dafbb48e7acda38efc0dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_13.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_13 { - - public int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_14.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_14.j deleted file mode 100644 index 1b8b562c697c070287d8014c8b768d1aaeb37a7d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_14.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_14.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_14 -.super java/lang/Object - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/String; - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/getfield/jm/TChild - dup - invokespecial dxc/junit/opcodes/getfield/jm/TChild/()V - astore_1 - - aload_1 - getfield dxc.junit.opcodes.getfield.jm.TSuper.s Ljava/lang/String; - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_14.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_14.java deleted file mode 100644 index ec06180494feddcf53be1b25460de7c13f73f194..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_14.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_14 { - - public String run() { - //TChild c = new TChild(); - return null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_15.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_15.j deleted file mode 100644 index 5c5d5a8ef3e2cb4764558ad580502b5c284f98bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_15.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_15.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_15 -.super java/lang/Object - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/getfield/jm/TSuper - dup - invokespecial dxc/junit/opcodes/getfield/jm/TSuper/()V - astore_1 - - aload_1 - getfield dxc.junit.opcodes.getfield.jm.TChild.o Ljava/lang/Object; - - areturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_15.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_15.java deleted file mode 100644 index 7424e02265a3211fdae8a108ff265dab9082c33e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_15.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_15 { - - public Object run() { - TChild s = new TChild(); - return s.o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_16.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_16.j deleted file mode 100644 index 9c17d05cc92b345599bda961a8ce35dbac48d19a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_16.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_16.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_16 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 2 - - new dxc/junit/opcodes/getfield/Test_getfield - dup - invokespecial dxc/junit/opcodes/getfield/Test_getfield/()V - - getfield dxc.junit.opcodes.getfield.Test_getfield.TestStubFieldP I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_16.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_16.java deleted file mode 100644 index b7114d71f8ac3048596bbf2c4dbdf197c1457772..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_16.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_16 { - - public int run() { - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_17.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_17.j deleted file mode 100644 index 2ef0aa47deb7d42d6e139604aa944a5d566d3c59..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_17.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_17.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_17 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ldxc/junit/opcodes/getfield/jm/TestStubs;)I - .limit locals 2 - aload_1 - getfield dxc.junit.opcodes.getfield.jm.TestStubs.privateInt I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_17.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_17.java deleted file mode 100644 index 95d4f75b611c26c8b3a161f0a8eb5e1983bb3a55..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_17.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - - -public class T_getfield_17 { - - public int run(TestStubs t) { - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_2.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_2.j deleted file mode 100644 index 9082c3f45dfa1c660a3a1c70d370c9b002d80fa4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_2.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_2.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_2 -.super java/lang/Object - -.field public val D - -.method public ()V - .limit stack 3 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - ldc2_w 123.0 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_2.val D - - return -.end method - - - -.method public run()D - .limit stack 3 - .limit locals 1 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_2.val D - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_2.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_2.java deleted file mode 100644 index 36c976a1cfaa8fe367ccb55af0e29c890d90a2d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_2 { - - public double val = 123.0d; - - public double run() { - return val; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_3.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_3.j deleted file mode 100644 index 12c523e9ec65a644bea0e1d64273f4a10a2aa74a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_3.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_3.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_3 -.super java/lang/Object - -.field public val D - -.method public ()V - .limit stack 3 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - ldc2_w 123.0 - putstatic dxc.junit.opcodes.getfield.jm.T_getfield_3.val D - - return -.end method - - - -.method public run()D - .limit stack 1 - .limit locals 1 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_3.val D - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_3.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_3.java deleted file mode 100644 index 7b914291e47e755c4782e938d883d96dfaefd9db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_3.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_3 { - - public double val = 123.0d; - - public double run() { - return val; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.cfh deleted file mode 100644 index e6a6403d6d26194f05f2d75c6aeb465bd0d357ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.cfh +++ /dev/null @@ -1,225 +0,0 @@ -//@class:dxc/junit/opcodes/getfield/jm/T_getfield_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 62, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 68, len 20, h: 0007: utf8{"T_getfield_4.java"} - // . . . T _ g e t f i e l d _ 4 . j a v a - 01 00 11 54 5f 67 65 74 66 69 65 6c 64 5f 34 2e 6a 61 76 61 - // parsed:, offset 88, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 04 00 0e - // parsed:, offset 93, len 5, h: 0009: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 98, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 105, len 45, h: 000b: utf8{"dxc/junit/opcodes/getfield/jm/T_getfield_4"} - // . . * d x c / j u n i t / o p c o d e s / g e t f i e l d / j m / T _ g e t f i e l d _ 4 - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 67 65 74 66 69 65 6c 64 2f 6a 6d 2f 54 5f 67 65 74 66 69 65 6c 64 5f 34 - // parsed:, offset 150, len 3, h: 000c: type{dxc.junit.opcodes.getfield.jm.T_getfield_4} - // . . . - 07 00 0b - // parsed:, offset 153, len 5, h: 000d: field{dxc.junit.opcodes.getfield.jm.T_getfield_4.i1:I} - // . . . . . - 09 00 0c 00 11 - // parsed:, offset 158, len 6, h: 000e: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 164, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 167, len 4, h: 0010: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 171, len 5, h: 0011: nat{i1:I} - // . . . . . - 0c 00 09 00 10 -// parsed:, offset 176, len 0, h: end constant_pool -// parsed:, offset 176, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 178, len 2, h: this_class: type{dxc.junit.opcodes.getfield.jm.T_getfield_4} -// . . - 00 0c -// parsed:, offset 180, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 182, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 184, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 186, len:88,desc: I -// parsed:, offset 186, len 0, h: fields[0]: - // parsed:, offset 186, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 188, len 2, h: name: i1 - // . . - 00 09 - // parsed:, offset 190, len 2, h: descriptor: I - // . . - 00 10 - // parsed:, offset 192, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 194, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 194, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 196, len:78,desc: ()V -// parsed:, offset 196, len 0, h: methods[0]: - // parsed:, offset 196, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 198, len 2, h: name: - // . . - 00 04 - // parsed:, offset 200, len 2, h: descriptor: ()V - // . . - 00 0e - // parsed:, offset 202, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 204, len 0, h: attributes[0]: - // parsed:, offset 204, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 206, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 210, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 212, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 214, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: aload_0 // 00 - // * - 2a - // parsed:, offset 5, len 1, h: 0005: iconst_5 // #+05 - // . - 08 - // parsed:, offset 6, len 3, h: 0006: putfield field{dxc.junit.opcodes.getfield.jm.T_getfield_4.i1:I} - // . . . - b5 00 0d - // parsed:, offset 9, len 1, h: 0009: return - // . - b1 - // parsed:, offset 10, len 1, h: 000a: return - // . - b1 - // parsed:, offset 229, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 231, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 233, len:41,desc: ()I -// parsed:, offset 233, len 0, h: methods[1]: - // parsed:, offset 233, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 235, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 237, len 2, h: descriptor: ()I - // . . - 00 05 - // parsed:, offset 239, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 241, len 0, h: attributes[0]: - // parsed:, offset 241, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 243, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 247, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 249, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 251, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: getfield field{dxc.junit.opcodes.getfield.jm.T_getfield_4.i1:I} - // . . . -//@mod b4 00 0d - b4 01 0d - // parsed:, offset 4, len 1, h: 0004: ireturn - // . - ac - // parsed:, offset 260, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 262, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 264, len 0, h: end attributes[0] -// parsed:, offset 264, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 264, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 266, len 0, h: attributes[0]: - // parsed:, offset 266, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 268, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 272, len 2, h: source: utf8{"T_getfield_4.java"} - // . . - 00 07 -// parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.j deleted file mode 100644 index 815e7a8bffa711ccaac3b9383cf71e6cdf3ade34..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_4.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_4 -.super java/lang/Object - -.field public i1 I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_5 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_4.i1 I - return - - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_4.i1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.java deleted file mode 100644 index 2c9c301eb66d4dff171655d7df2911d983e6826c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_4 { - - public int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_5.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_5.j deleted file mode 100644 index 172f7911d72d01155ba90f8d0f810d6f4b4df159..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_5.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_5.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_5 -.super java/lang/Object - -.field public static i1 I - -.method static ()V - .limit stack 1 - .limit locals 0 - - iconst_5 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_1.i1 I - - return -.end method - -.method public ()V - .limit stack 2 - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_5.i1 I - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_5.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_5.java deleted file mode 100644 index 34ca78332cf4fc74ba6e609dd0a55465d73dd231..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_5.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_5 { - - public static int i1 = 5; - public int run(){ - return i1; - } -} - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_6.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_6.j deleted file mode 100644 index dcf9a086c73bc8e1bff7eea1969713ea38baec0c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_6.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 2 - - new dxc/junit/opcodes/getfield/Test_getfield - dup - invokespecial dxc/junit/opcodes/getfield/Test_getfield/()V - - getfield dxc.junit.opcodes.getfield.Test_getfield.TestStubField I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_6.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_6.java deleted file mode 100644 index 07ab1b02544b5928dcdeffc399509d5150ee9dcd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_6 { - - public int run() { - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_7.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_7.j deleted file mode 100644 index ebffccc75592a211280cc16e19ce723c4fd19927..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_7.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_7.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_7 -.super java/lang/Object - -.field public i1 I - -.method public ()V - .limit stack 2 - - aload_0 - invokespecial java/lang/Object/()V - aload_0 - iconst_5 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_7.i1 I - return -.end method - -.method public run()I - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_7abc.i1 I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_7.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_7.java deleted file mode 100644 index ad0b3a610036362ca0986ac6efd41f074e31e695..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_7 { - public int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_8.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_8.j deleted file mode 100644 index 1d3e3d78347b2e1ed9002c681cf62f24663dc161..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_8.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_8.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_8 -.super java/lang/Object - -.field public i1 I - - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_5 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_8.i1 I - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - getfield dxc.junit.opcodes.getfield.jm.T_getfield_8.i1N I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_8.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_8.java deleted file mode 100644 index 884d068dca4525ae2a0d90772cf019494a83aa03..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_8 { - public int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_9.j b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_9.j deleted file mode 100644 index b2fd59d24b1acd175a60b412fc411688654d8c4f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_9.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getfield_9.java -.class public dxc/junit/opcodes/getfield/jm/T_getfield_9 -.super java/lang/Object - -.field public i1 I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_5 - putfield dxc.junit.opcodes.getfield.jm.T_getfield_9.i1 I - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - -; aload_0 - aconst_null - getfield dxc.junit.opcodes.getfield.jm.T_getfield_9.i1 I - - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_9.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_9.java deleted file mode 100644 index f2868dbb2bbdcb02847602296d3b643a10249c5e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/T_getfield_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - -public class T_getfield_9 { - public int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/TestStubs.java deleted file mode 100644 index 09b654f0984fd0a5817a057f796e72c9d39ceedf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getfield/jm/TestStubs.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getfield.jm; - - - -class TSuper { - public String s = "abc"; -} - -class TChild extends TSuper { - public Object o = null; -} - -public class TestStubs { - private int privateInt = 456; -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/TestStubs.java deleted file mode 100644 index b681d915c2282faeee121aba5021447355d86500..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/TestStubs.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic; - -public class TestStubs { - private static int TestStubField = 50; -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/Test_getstatic.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/Test_getstatic.java deleted file mode 100644 index 290cc0e038b7e82551864c90870643611441fb72..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/Test_getstatic.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_1; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_10; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_11; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_12; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_2; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_5; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_6; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_7; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_8; -import dxc.junit.opcodes.getstatic.jm.T_getstatic_9; - -public class Test_getstatic extends DxTestCase { - - /** - * @title type - int - */ - public void testN1() { - T_getstatic_1 t = new T_getstatic_1(); - assertEquals(5, t.run()); - } - - /** - * @title type - double - */ - public void testN2() { - T_getstatic_2 t = new T_getstatic_2(); - assertEquals(123d, t.run()); - } - - /** - * @title access protected field from subclass - */ - public void testN3() { - // @uses dxc.junit.opcodes.getstatic.jm.T_getstatic_1 - T_getstatic_11 t = new T_getstatic_11(); - assertEquals(10, t.run()); - } - - /** - * @title attempt to access non-static field - */ - public void testE1() { - T_getstatic_5 t = new T_getstatic_5(); - try { - t.run(); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError e) { - // expected - } - } - - /** - * @title attempt to access of non-accessible field - */ - public void testE2() { - // @uses dxc.junit.opcodes.getstatic.TestStubs - try { - T_getstatic_6 t = new T_getstatic_6(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE3() { - try { - T_getstatic_7 t = new T_getstatic_7(); - t.run(); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoSuchFieldError - */ - public void testE4() { - try { - T_getstatic_8 t = new T_getstatic_8(); - t.run(); - fail("expected NoSuchFieldError"); - } catch (NoSuchFieldError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title attempt to get int from float field - */ - public void testE5() { - try { - T_getstatic_10 t = new T_getstatic_10(); - t.run(); - fail("expected NoSuchFieldError"); - } catch (NoSuchFieldError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title initialization of referenced class throws exception - */ - public void testE6() { - // @uses dxc.junit.opcodes.getstatic.jm.StubInitError - T_getstatic_9 t = new T_getstatic_9(); - try { - t.run(); - fail("expected Error"); - } catch (Error e) { - // expected - } - } - - // FIXME: "fail" commented out temporarily - check - /** - * @title attempt to read superclass' private field from subclass - * - * FIXME: is this a JVM bug? - */ - public void testE7() { - // @uses dxc.junit.opcodes.getstatic.jm.T_getstatic_1 - try { - T_getstatic_12 t = new T_getstatic_12(); - t.run(); - //fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.12 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.getstatic.jm.T_getstatic_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.getstatic.jm.T_getstatic_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.12 - * @title constant pool type - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.getstatic.jm.T_getstatic_13"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_1.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_1.j deleted file mode 100644 index 3143fda887c3334e60e48d7684a4a85c2d281d16..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_1.j +++ /dev/null @@ -1,60 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_1.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_1 -.super java/lang/Object - -.field public static i1 I -.field protected static p1 I -.field private static pvt1 I - -.method static ()V - .limit stack 1 - .limit locals 0 - - iconst_5 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_1.i1 I - - ldc 10 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_1.p1 I - - ldc 20 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_1.pvt1 I - return - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_1.i1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_1.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_1.java deleted file mode 100644 index 052182e04a0e74a962880972f98ccf8a48246ce3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_1.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_1 { - public static int i1 = 5; - protected static int p1 = 10; - private static int pvt1 = 20; - - public int run(){ - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_10.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_10.j deleted file mode 100644 index 29880ed5335a8735e661a39ba9290a66b01d3632..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_10.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_10.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_10 -.super java/lang/Object - -.field public static i1 F - -.method static ()V - .limit stack 1 - .limit locals 0 - - fconst_1 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_10.i1 F - return - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_10.i1N I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_10.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_10.java deleted file mode 100644 index 0dda175d5f98d81b14d2ea76010e2a7adf6f9d5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_10 { - public static int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_11.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_11.j deleted file mode 100644 index aaa565bebac758cb2d19843515871245f5b9f64c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_11.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_11.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_11 -.super dxc/junit/opcodes/getstatic/jm/T_getstatic_1 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/getstatic/jm/T_getstatic_1/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_1.p1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_11.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_11.java deleted file mode 100644 index 25923d422bb9103d89ca9324a331ad8e36392918..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_11 extends T_getstatic_1 { - - public int run(){ - return p1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_12.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_12.j deleted file mode 100644 index 72385f802208794307cf1e5a7a379e5f8a767c10..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_12.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_12.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_12 -.super dxc/junit/opcodes/getstatic/jm/T_getstatic_1 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/getstatic/jm/T_getstatic_1/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_1.pvt1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_12.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_12.java deleted file mode 100644 index ee091a2f0386f986e79a16d6962937879100c304..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_12.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_12 extends T_getstatic_1 { - - public int run(){ - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.cfh b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.cfh deleted file mode 100644 index 92ad1945055c466083b6f60fccf907f9a2706328..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.cfh +++ /dev/null @@ -1,270 +0,0 @@ -//@class:dxc/junit/opcodes/getstatic/jm/T_getstatic_13 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0014 -// . . - 00 14 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 19, h: 0001: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 29, len 5, h: 0002: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 34, len 9, h: 0003: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 43, len 3, h: 0004: type{java.lang.Object} - // . . . - 07 00 01 - // parsed:, offset 46, len 5, h: 0005: nat{:()V} - // . . . . . - 0c 00 03 00 07 - // parsed:, offset 51, len 11, h: 0006: utf8{""} - // . . . < c l i n i t > - 01 00 08 3c 63 6c 69 6e 69 74 3e - // parsed:, offset 62, len 6, h: 0007: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 68, len 5, h: 0008: field{dxc.junit.opcodes.getstatic.jm.T_getstatic_13.i1:I} - // . . . . . - 09 00 11 00 0d - // parsed:, offset 73, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 80, len 13, h: 000a: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 93, len 4, h: 000b: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 97, len 48, h: 000c: utf8{"dxc/junit/opcodes/getstatic/jm/T_getstatic_13"} - // . . - d x c / j u n i t / o p c o d e s / g e t s t a t i c / j m / T _ g e t s t a t i c _ 1 3 - 01 00 2d 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 67 65 74 73 74 61 74 69 63 2f 6a 6d 2f 54 5f 67 65 74 73 74 61 74 69 63 5f 31 33 - // parsed:, offset 145, len 5, h: 000d: nat{i1:I} - // . . . . . - 0c 00 12 00 0b - // parsed:, offset 150, len 6, h: 000e: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 156, len 6, h: 000f: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 162, len 5, h: 0010: method{java.lang.Object.:()V} - // . . . . . - 0a 00 04 00 05 - // parsed:, offset 167, len 3, h: 0011: type{dxc.junit.opcodes.getstatic.jm.T_getstatic_13} - // . . . - 07 00 0c - // parsed:, offset 170, len 5, h: 0012: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 175, len 22, h: 0013: utf8{"T_getstatic_13.java"} - // . . . T _ g e t s t a t i c _ 1 3 . j a v a - 01 00 13 54 5f 67 65 74 73 74 61 74 69 63 5f 31 33 2e 6a 61 76 61 -// parsed:, offset 197, len 0, h: end constant_pool -// parsed:, offset 197, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 199, len 2, h: this_class: type{dxc.junit.opcodes.getstatic.jm.T_getstatic_13} -// . . - 00 11 -// parsed:, offset 201, len 2, h: super_class: type{java.lang.Object} -// . . - 00 04 -// parsed:, offset 203, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 205, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 207, len:115,desc: I -// parsed:, offset 207, len 0, h: fields[0]: - // parsed:, offset 207, len 2, h: access_flags: public|static - // . . - 00 09 - // parsed:, offset 209, len 2, h: name: i1 - // . . - 00 12 - // parsed:, offset 211, len 2, h: descriptor: I - // . . - 00 0b - // parsed:, offset 213, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 215, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 215, len 2, h: methods_count: 0003 -// . . - 00 03 -// ========== start-ParseMember:, offset 217, len:105,desc: ()V -// parsed:, offset 217, len 0, h: methods[0]: - // parsed:, offset 217, len 2, h: access_flags: static - // . . - 00 08 - // parsed:, offset 219, len 2, h: name: - // . . - 00 06 - // parsed:, offset 221, len 2, h: descriptor: ()V - // . . - 00 07 - // parsed:, offset 223, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 225, len 0, h: attributes[0]: - // parsed:, offset 225, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 227, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 231, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 233, len 2, h: max_locals: 0000 - // . . - 00 00 - // parsed:, offset 235, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: iconst_5 // #+05 - // . - 08 - // parsed:, offset 1, len 3, h: 0001: putstatic field{dxc.junit.opcodes.getstatic.jm.T_getstatic_13.i1:I} - // . . . - b3 00 08 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 244, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 246, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 248, len 0, h: end attributes[0] -// parsed:, offset 248, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:, offset 248, len:74,desc: ()V -// parsed:, offset 248, len 0, h: methods[1]: - // parsed:, offset 248, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 250, len 2, h: name: - // . . - 00 03 - // parsed:, offset 252, len 2, h: descriptor: ()V - // . . - 00 07 - // parsed:, offset 254, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 256, len 0, h: attributes[0]: - // parsed:, offset 256, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 258, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 262, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 264, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 266, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 10 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 275, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 277, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 279, len 0, h: end attributes[0] -// parsed:, offset 279, len 0, h: end methods[1] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 279, len:43,desc: ()I -// parsed:, offset 279, len 0, h: methods[2]: - // parsed:, offset 279, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 281, len 2, h: name: run - // . . - 00 0f - // parsed:, offset 283, len 2, h: descriptor: ()I - // . . - 00 0e - // parsed:, offset 285, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 287, len 0, h: attributes[0]: - // parsed:, offset 287, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 289, len 4, h: length: 00000013 - // . . . . - 00 00 00 13 - // parsed:, offset 293, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 295, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 297, len 4, h: code_length: 00000007 - // . . . . - 00 00 00 07 - // parsed:, offset 0, len 2, h: 0000: ldc #4048f5c3 // 3.14 - // . . - 12 02 - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 3, h: 0003: getstatic field{dxc.junit.opcodes.getstatic.jm.T_getstatic_13.i1:I} - // . . . -//@mod b2 00 08 - b2 00 02 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 308, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 310, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 312, len 0, h: end attributes[0] -// parsed:, offset 312, len 0, h: end methods[2] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 312, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 314, len 0, h: attributes[0]: - // parsed:, offset 314, len 2, h: name: SourceFile - // . . - 00 0a - // parsed:, offset 316, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 320, len 2, h: source: utf8{"T_getstatic_13.java"} - // . . - 00 13 -// parsed:, offset 322, len 0, h: end attributes[0] -// parsed:, offset 322, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.j deleted file mode 100644 index 7d3769a4b64d1d033c7cf22c34054dcfe744ec90..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_13.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_13 -.super java/lang/Object - -.field public static i1 I - -.method static ()V - .limit stack 1 - .limit locals 0 - - iconst_5 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_13.i1 I - return - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - ldc 3.14 - pop - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_13.i1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.java deleted file mode 100644 index 37f5811e9bd1671f81f23b959ba46ca5eac382d1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_13.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_13 { - - public static int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_2.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_2.j deleted file mode 100644 index dcd43221d7292da0fd41f8b7ec991623c95ae85a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_2.j +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_2.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_2 -.super java/lang/Object - -.field public static val D - -.method static ()V - .limit stack 2 - .limit locals 0 - - ldc2_w 123.0 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_2.val D - - return -.end method - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()D - .limit stack 2 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_2.val D - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_2.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_2.java deleted file mode 100644 index f9f2d230a75dd24cdbb9e9af44d108c28e1c3554..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_2 { - - public static double val = 123.0d; - - public double run() { - return val; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_3.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_3.j deleted file mode 100644 index cb47889343300aa48a74e94d468f655ce8d2040e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_3.j +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_3.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_3 -.super java/lang/Object - -.field public static val D - -.method static ()V - .limit stack 2 - .limit locals 0 - - ldc2_w 123.0 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_3.val D - - return -.end method - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()D - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_3.val D - - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_3.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_3.java deleted file mode 100644 index 98d1f15154e9816a69aff3f955c252074774a97b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_3.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_3 { - - public static double val = 123.0d; - - public double run() { - return val; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.cfh deleted file mode 100644 index b384bf3d8adcbba528dd965c002b092f51a8e6e7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.cfh +++ /dev/null @@ -1,261 +0,0 @@ -//@class:dxc/junit/opcodes/getstatic/jm/T_getstatic_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0013 -// . . - 00 13 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: nat{i1:I} - // . . . . . - 0c 00 11 00 0c - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 9, h: 0003: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 43, len 47, h: 0004: utf8{"dxc/junit/opcodes/getstatic/jm/T_getstatic_4"} - // . . , d x c / j u n i t / o p c o d e s / g e t s t a t i c / j m / T _ g e t s t a t i c _ 4 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 67 65 74 73 74 61 74 69 63 2f 6a 6d 2f 54 5f 67 65 74 73 74 61 74 69 63 5f 34 - // parsed:, offset 90, len 3, h: 0005: type{dxc.junit.opcodes.getstatic.jm.T_getstatic_4} - // . . . - 07 00 04 - // parsed:, offset 93, len 6, h: 0006: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 99, len 7, h: 0007: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 106, len 11, h: 0008: utf8{""} - // . . . < c l i n i t > - 01 00 08 3c 63 6c 69 6e 69 74 3e - // parsed:, offset 117, len 13, h: 0009: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 130, len 5, h: 000a: nat{:()V} - // . . . . . - 0c 00 03 00 06 - // parsed:, offset 135, len 3, h: 000b: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 138, len 4, h: 000c: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 142, len 6, h: 000d: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 148, len 6, h: 000e: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 154, len 5, h: 000f: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0b 00 0a - // parsed:, offset 159, len 5, h: 0010: field{dxc.junit.opcodes.getstatic.jm.T_getstatic_4.i1:I} - // . . . . . - 09 00 05 00 01 - // parsed:, offset 164, len 5, h: 0011: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 169, len 21, h: 0012: utf8{"T_getstatic_4.java"} - // . . . T _ g e t s t a t i c _ 4 . j a v a - 01 00 12 54 5f 67 65 74 73 74 61 74 69 63 5f 34 2e 6a 61 76 61 -// parsed:, offset 190, len 0, h: end constant_pool -// parsed:, offset 190, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 192, len 2, h: this_class: type{dxc.junit.opcodes.getstatic.jm.T_getstatic_4} -// . . - 00 05 -// parsed:, offset 194, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0b -// parsed:, offset 196, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 198, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 200, len:112,desc: I -// parsed:, offset 200, len 0, h: fields[0]: - // parsed:, offset 200, len 2, h: access_flags: public|static - // . . - 00 09 - // parsed:, offset 202, len 2, h: name: i1 - // . . - 00 11 - // parsed:, offset 204, len 2, h: descriptor: I - // . . - 00 0c - // parsed:, offset 206, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 208, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 208, len 2, h: methods_count: 0003 -// . . - 00 03 -// ========== start-ParseMember:, offset 210, len:102,desc: ()V -// parsed:, offset 210, len 0, h: methods[0]: - // parsed:, offset 210, len 2, h: access_flags: static - // . . - 00 08 - // parsed:, offset 212, len 2, h: name: - // . . - 00 08 - // parsed:, offset 214, len 2, h: descriptor: ()V - // . . - 00 06 - // parsed:, offset 216, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 218, len 0, h: attributes[0]: - // parsed:, offset 218, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 220, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 224, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 226, len 2, h: max_locals: 0000 - // . . - 00 00 - // parsed:, offset 228, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: iconst_5 // #+05 - // . - 08 - // parsed:, offset 1, len 3, h: 0001: putstatic field{dxc.junit.opcodes.getstatic.jm.T_getstatic_4.i1:I} - // . . . - b3 00 10 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 237, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 239, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 241, len 0, h: end attributes[0] -// parsed:, offset 241, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:, offset 241, len:71,desc: ()V -// parsed:, offset 241, len 0, h: methods[1]: - // parsed:, offset 241, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 243, len 2, h: name: - // . . - 00 03 - // parsed:, offset 245, len 2, h: descriptor: ()V - // . . - 00 06 - // parsed:, offset 247, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 249, len 0, h: attributes[0]: - // parsed:, offset 249, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 251, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 255, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 257, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 259, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 0f - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 268, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 270, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 272, len 0, h: end attributes[0] -// parsed:, offset 272, len 0, h: end methods[1] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 272, len:40,desc: ()I -// parsed:, offset 272, len 0, h: methods[2]: - // parsed:, offset 272, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 274, len 2, h: name: run - // . . - 00 0e - // parsed:, offset 276, len 2, h: descriptor: ()I - // . . - 00 0d - // parsed:, offset 278, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 280, len 0, h: attributes[0]: - // parsed:, offset 280, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 282, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 286, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 288, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 290, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 3, h: 0000: getstatic field{dxc.junit.opcodes.getstatic.jm.T_getstatic_4.i1:I} - // . . . -//@mod b2 00 10 - b2 01 10 - // parsed:, offset 3, len 1, h: 0003: ireturn - // . - ac - // parsed:, offset 298, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 300, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 302, len 0, h: end attributes[0] -// parsed:, offset 302, len 0, h: end methods[2] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 302, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 304, len 0, h: attributes[0]: - // parsed:, offset 304, len 2, h: name: SourceFile - // . . - 00 09 - // parsed:, offset 306, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 310, len 2, h: source: utf8{"T_getstatic_4.java"} - // . . - 00 12 -// parsed:, offset 312, len 0, h: end attributes[0] -// parsed:, offset 312, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.j deleted file mode 100644 index 349b2171a7579faa79e05de8b6f4bf7279bb457e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_4.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_4 -.super java/lang/Object - -.field public static i1 I - -.method static ()V - .limit stack 1 - .limit locals 0 - - iconst_5 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_4.i1 I - return - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_4.i1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.java deleted file mode 100644 index 2fa815d3490550a69e1e1dd65ae2ff6fe8986490..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_4 { - - public static int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_5.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_5.j deleted file mode 100644 index 0f26e2807dab81dfbb0639a3aedf93f57c2f55e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_5.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_5.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_5 -.super java/lang/Object - -.field public i1 I - -.method public ()V - .limit stack 2 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_5 - putfield dxc.junit.opcodes.getstatic.jm.T_getstatic_5.i1 I - - return -.end method - - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_5.i1 I - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_5.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_5.java deleted file mode 100644 index d183ca487bc5ba42617dafabbc7da984e9ba2e7b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_5.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_5 { - - public int i1 = 5; - public int run(){ - return i1; - } -} - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_6.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_6.j deleted file mode 100644 index ba60eb9234666bd62b3ba96932d0c2f681a266e3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_6.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_6.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - getstatic dxc.junit.opcodes.getstatic.TestStubs.TestStubField I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_6.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_6.java deleted file mode 100644 index 746d6a7f488c216c91211756cb3ec463270d8a42..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_6 { - - public int run() { - throw new UnsupportedOperationException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_7.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_7.j deleted file mode 100644 index ecb55efe4b988f18b8306d6291bfe9455d7e4e8c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_7.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_7.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_7 -.super java/lang/Object - -.field public static i1 I - -.method static ()V - .limit stack 1 - .limit locals 0 - - iconst_5 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_7.i1 I - return - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_71.i1 I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_7.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_7.java deleted file mode 100644 index 362759e4c90c834f8167ab5be0b18e778114e83c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_7 { - public static int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_8.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_8.j deleted file mode 100644 index 5391bedc0d7dabd3181fbd0fd8f3fbac58781b77..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_8.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_8.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_8 -.super java/lang/Object - -.field public static i1 I - -.method static ()V - .limit stack 1 - .limit locals 0 - - iconst_5 - putstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_8.i1 I - return - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.T_getstatic_8.i1N I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_8.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_8.java deleted file mode 100644 index d187e345439b70317db66a1dca624e1cae93c635..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_8 { - public static int i1 = 5; - public int run(){ - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_9.j b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_9.j deleted file mode 100644 index f7a7c9f671d0848a0a4a1d3d5866ad9d13d19659..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_9.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_getstatic_9.java -.class public dxc/junit/opcodes/getstatic/jm/T_getstatic_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.getstatic.jm.StubInitError.value I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_9.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_9.java deleted file mode 100644 index e5699358c7293c812d6465376c834bf9f5e4b8c5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/T_getstatic_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - -public class T_getstatic_9 { - - public int run(){ - return -99; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/TestStubs.java deleted file mode 100644 index 97c647ff65725ae936cf2bcf3fed53a370c91889..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/getstatic/jm/TestStubs.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.getstatic.jm; - - -class StubInitError{ - public static int value = 5 / 0; -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/Test_goto_w.java b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/Test_goto_w.java deleted file mode 100644 index 4cac33dc734dbda21634d91e3cc490c04531b76e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/Test_goto_w.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.goto_w; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.goto_w.jm.T_goto_w_1; -import dxc.junit.opcodes.goto_w.jm.T_goto_w_5; - -public class Test_goto_w extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_goto_w_1 t = new T_goto_w_1(); - assertEquals(0, t.run(20)); - } - - /** - * @title normal test - */ - public void testN2() { - T_goto_w_1 t = new T_goto_w_1(); - assertEquals(-20, t.run(-20)); - } - - /** - * @title negative offset - */ - public void testN3() { - T_goto_w_5 t = new T_goto_w_5(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.1.7 - * @title branch target is inside instruction - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.goto_w.jm.T_goto_w_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.goto_w.jm.T_goto_w_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.goto_w.jm.T_goto_w_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_1.j b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_1.j deleted file mode 100644 index e7b623b79f19d41c114e870c1e307ea5d9d23a85..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_1.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_goto_w_1.java -.class public dxc/junit/opcodes/goto_w/jm/T_goto_w_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - goto_w Label0 - - Label1: - iinc 1 -1 - - Label0: - iload_1 - ifgt Label1 - - iload_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_1.java b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_1.java deleted file mode 100644 index d0a8e94bc4a351b7e9983d62f822ceba94397ba1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_1.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.goto_w.jm; - -public class T_goto_w_1 { - - public int run(int a) { - while (a > 0) { - a--; - } - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.cfh b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.cfh deleted file mode 100644 index 4abb7c64f4d1b1de476aace3e8ba313f6b99ad35..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.cfh +++ /dev/null @@ -1,193 +0,0 @@ -//@class:dxc/junit/opcodes/goto_w/jm/T_goto_w_2 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000f -// . . - 00 0f -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 3, h: 0004: string{"a"} - // . . . - 08 00 0c - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 18, h: 0006: utf8{"T_goto_w_2.java"} - // . . . T _ g o t o _ w _ 2 . j a v a - 01 00 0f 54 5f 67 6f 74 6f 5f 77 5f 32 2e 6a 61 76 61 - // parsed:, offset 77, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 83, len 3, h: 0008: type{dxc.junit.opcodes.goto_w.jm.T_goto_w_2} - // . . . - 07 00 0e - // parsed:, offset 86, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 91, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 98, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 104, len 4, h: 000c: utf8{"a"} - // . . . a - 01 00 01 61 - // parsed:, offset 108, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 111, len 41, h: 000e: utf8{"dxc/junit/opcodes/goto_w/jm/T_goto_w_2"} - // . . & d x c / j u n i t / o p c o d e s / g o t o _ w / j m / T _ g o t o _ w _ 2 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 67 6f 74 6f 5f 77 2f 6a 6d 2f 54 5f 67 6f 74 6f 5f 77 5f 32 -// parsed:, offset 152, len 0, h: end constant_pool -// parsed:, offset 152, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 154, len 2, h: this_class: type{dxc.junit.opcodes.goto_w.jm.T_goto_w_2} -// . . - 00 08 -// parsed:, offset 156, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 158, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 160, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 162, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 164, len:76,desc: ()V -// parsed:, offset 164, len 0, h: methods[0]: - // parsed:, offset 164, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 166, len 2, h: name: - // . . - 00 05 - // parsed:, offset 168, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 170, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 172, len 0, h: attributes[0]: - // parsed:, offset 172, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 174, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 178, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 180, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 182, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 191, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 193, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 195, len 0, h: end attributes[0] -// parsed:, offset 195, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 195, len:45,desc: ()V -// parsed:, offset 195, len 0, h: methods[1]: - // parsed:, offset 195, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 197, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 199, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 201, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 203, len 0, h: attributes[0]: - // parsed:, offset 203, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 205, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 209, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 211, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 213, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 5, h: 0000: goto_w 00000006 - // . . . . . -//@mod: c8 00 00 00 06 -// we jump to the parameter of a byte code (was: ldc, now: string "a"), so this -// must be rejected by the verifier - c8 00 00 00 07 - // parsed:, offset 5, len 1, h: 0005: return - // . - b1 - // parsed:, offset 6, len 2, h: 0006: ldc string{"a"} - // . . - 12 04 - // parsed:, offset 8, len 1, h: 0008: return - // . - b1 - // parsed:, offset 226, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 228, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 230, len 0, h: end attributes[0] -// parsed:, offset 230, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 230, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 232, len 0, h: attributes[0]: - // parsed:, offset 232, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 234, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 238, len 2, h: source: utf8{"T_goto_w_2.java"} - // . . - 00 06 -// parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.j b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.j deleted file mode 100644 index d2c8771af247913df80e0db65cf5adb690408439..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_goto_w_2.java -.class public dxc/junit/opcodes/goto_w/jm/T_goto_w_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - goto_w Label0 - return -Label0: - ldc "a" - return -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.java b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.java deleted file mode 100644 index 89e57add983af06242ee5d78ea61eca20b647411..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.goto_w.jm; - -public class T_goto_w_2 { - - public void run() { - String a = "a"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.cfh deleted file mode 100644 index 4a45a9c50618d3edc48ec87dc94ac67daf977043..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.cfh +++ /dev/null @@ -1,191 +0,0 @@ -//@class:dxc/junit/opcodes/goto_w/jm/T_goto_w_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000f -// . . - 00 0f -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 3, h: 0004: string{"a"} - // . . . - 08 00 0c - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 65, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 70, len 3, h: 0008: type{dxc.junit.opcodes.goto_w.jm.T_goto_w_3} - // . . . - 07 00 0e - // parsed:, offset 73, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 80, len 18, h: 000a: utf8{"T_goto_w_3.java"} - // . . . T _ g o t o _ w _ 3 . j a v a - 01 00 0f 54 5f 67 6f 74 6f 5f 77 5f 33 2e 6a 61 76 61 - // parsed:, offset 98, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 104, len 4, h: 000c: utf8{"a"} - // . . . a - 01 00 01 61 - // parsed:, offset 108, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 111, len 41, h: 000e: utf8{"dxc/junit/opcodes/goto_w/jm/T_goto_w_3"} - // . . & d x c / j u n i t / o p c o d e s / g o t o _ w / j m / T _ g o t o _ w _ 3 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 67 6f 74 6f 5f 77 2f 6a 6d 2f 54 5f 67 6f 74 6f 5f 77 5f 33 -// parsed:, offset 152, len 0, h: end constant_pool -// parsed:, offset 152, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 154, len 2, h: this_class: type{dxc.junit.opcodes.goto_w.jm.T_goto_w_3} -// . . - 00 08 -// parsed:, offset 156, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 158, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 160, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 162, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 164, len:76,desc: ()V -// parsed:, offset 164, len 0, h: methods[0]: - // parsed:, offset 164, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 166, len 2, h: name: - // . . - 00 05 - // parsed:, offset 168, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 170, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 172, len 0, h: attributes[0]: - // parsed:, offset 172, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 174, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 178, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 180, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 182, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 191, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 193, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 195, len 0, h: end attributes[0] -// parsed:, offset 195, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 195, len:45,desc: ()V -// parsed:, offset 195, len 0, h: methods[1]: - // parsed:, offset 195, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 197, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 199, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 201, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 203, len 0, h: attributes[0]: - // parsed:, offset 203, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 205, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 209, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 211, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 213, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 5, h: 0000: goto_w 00000006 - // . . . . . -//@mod c8 00 00 00 06 - c8 00 ff 00 06 - // parsed:, offset 5, len 1, h: 0005: return - // . - b1 - // parsed:, offset 6, len 2, h: 0006: ldc string{"a"} - // . . - 12 04 - // parsed:, offset 8, len 1, h: 0008: return - // . - b1 - // parsed:, offset 226, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 228, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 230, len 0, h: end attributes[0] -// parsed:, offset 230, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 230, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 232, len 0, h: attributes[0]: - // parsed:, offset 232, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 234, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 238, len 2, h: source: utf8{"T_goto_w_3.java"} - // . . - 00 0a -// parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.j b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.j deleted file mode 100644 index 040e7ed094adb0dfbbb9b1d2b641df69c5d2dfdd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_goto_w_3.java -.class public dxc/junit/opcodes/goto_w/jm/T_goto_w_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - goto_w Label0 - return -Label0: - ldc "a" - return -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.java b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.java deleted file mode 100644 index a32670d4d95d6bb84ebc8830b665924d04f65f0b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.goto_w.jm; - -public class T_goto_w_3 { - - public void run() { - String a = "a"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.cfh deleted file mode 100644 index e02cd4602a192072db22858ed6b220ae37ae6f66..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.cfh +++ /dev/null @@ -1,182 +0,0 @@ -//@class:dxc/junit/opcodes/goto_w/jm/T_goto_w_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0a 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 09 - // parsed:, offset 67, len 3, h: 0007: type{dxc.junit.opcodes.goto_w.jm.T_goto_w_4} - // . . . - 07 00 0b - // parsed:, offset 70, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 77, len 6, h: 0009: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 83, len 3, h: 000a: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 86, len 41, h: 000b: utf8{"dxc/junit/opcodes/goto_w/jm/T_goto_w_4"} - // . . & d x c / j u n i t / o p c o d e s / g o t o _ w / j m / T _ g o t o _ w _ 4 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 67 6f 74 6f 5f 77 2f 6a 6d 2f 54 5f 67 6f 74 6f 5f 77 5f 34 - // parsed:, offset 127, len 18, h: 000c: utf8{"T_goto_w_4.java"} - // . . . T _ g o t o _ w _ 4 . j a v a - 01 00 0f 54 5f 67 6f 74 6f 5f 77 5f 34 2e 6a 61 76 61 -// parsed:, offset 145, len 0, h: end constant_pool -// parsed:, offset 145, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 147, len 2, h: this_class: type{dxc.junit.opcodes.goto_w.jm.T_goto_w_4} -// . . - 00 07 -// parsed:, offset 149, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0a -// parsed:, offset 151, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 153, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 155, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 157, len:77,desc: ()V -// parsed:, offset 157, len 0, h: methods[0]: - // parsed:, offset 157, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 159, len 2, h: name: - // . . - 00 04 - // parsed:, offset 161, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 163, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 165, len 0, h: attributes[0]: - // parsed:, offset 165, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 167, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 171, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 173, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 175, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 184, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 186, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 188, len 0, h: end attributes[0] -// parsed:, offset 188, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 188, len:46,desc: ()V -// parsed:, offset 188, len 0, h: methods[1]: - // parsed:, offset 188, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 190, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 192, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 194, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 196, len 0, h: attributes[0]: - // parsed:, offset 196, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 198, len 4, h: length: 00000016 - // . . . . - 00 00 00 16 - // parsed:, offset 202, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 204, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 206, len 4, h: code_length: 0000000a - // . . . . - 00 00 00 0a - // parsed:, offset 0, len 5, h: 0000: goto_w 00000005 - // . . . . . -//@mod c8 00 00 00 05 - c8 00 00 00 06 - // parsed:, offset 5, len 4, h: 0005: wide aload 0000 - // . . . . - c4 19 00 00 - // parsed:, offset 9, len 1, h: 0009: return - // . - b1 - // parsed:, offset 220, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 222, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 224, len 0, h: end attributes[0] -// parsed:, offset 224, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 224, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 226, len 0, h: attributes[0]: - // parsed:, offset 226, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 228, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 232, len 2, h: source: utf8{"T_goto_w_4.java"} - // . . - 00 0c -// parsed:, offset 234, len 0, h: end attributes[0] -// parsed:, offset 234, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.j b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.j deleted file mode 100644 index 1c0b768a7bbb0e70eb4a944415be4e03c6f8e56c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_goto_w_4.java -.class public dxc/junit/opcodes/goto_w/jm/T_goto_w_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - goto_w Label0 -Label0: - aload_w 0 - return -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.java b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.java deleted file mode 100644 index 391467566ffa54df7b8b3bcbbd9c1b4ca454c91e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.goto_w.jm; - -public class T_goto_w_4 { - - public void run() { - String a = "a"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_5.j b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_5.j deleted file mode 100644 index 97309d90cae4641b8e0efdd32448ecacffde72b9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_goto_w_5.java -.class public dxc/junit/opcodes/goto_w/jm/T_goto_w_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - goto_w Label1 -Label0: - nop - nop - nop - iconst_1 - ireturn -Label1: - goto_w Label0 - iconst_0 - ireturn -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_5.java b/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_5.java deleted file mode 100644 index 82daea84954c0ac1003c14ce38163f3e626f34ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/goto_w/jm/T_goto_w_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.goto_w.jm; - -public class T_goto_w_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/Test_i2b.java b/tools/dx-tests/src/dxc/junit/opcodes/i2b/Test_i2b.java deleted file mode 100644 index 096b453e73a22139872549879a6d63ee1bd82ed4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/Test_i2b.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2b; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.i2b.jm.T_i2b_1; - -public class Test_i2b extends DxTestCase { - - /** - * @title Argument = 1 - */ - public void testN1() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(1, t.run(1)); - } - - /** - * @title Argument = -1 - */ - public void testN2() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(-1, t.run(-1)); - } - - /** - * @title Argument = 16 - */ - public void testN3() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(16, t.run(16)); - } - - /** - * @title Argument = -32 - */ - public void testN4() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(-32, t.run(-32)); - } - - /** - * @title Argument = 134 - */ - public void testN5() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(-122, t.run(134)); - } - - /** - * @title Argument = -134 - */ - public void testN6() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(122, t.run(-134)); - } - - /** - * @title s. Argument = 127 - */ - public void testB1() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(127, t.run(127)); - } - - /** - * @title s. Argument = 128 - */ - public void testB2() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(-128, t.run(128)); - } - - /** - * @title s. Argument = 0 - */ - public void testB3() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(0, t.run(0)); - } - - /** - * @title s. Argument = -128 - */ - public void testB4() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(-128, t.run(-128)); - } - - /** - * @title s. Argument = -129 - */ - public void testB5() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(127, t.run(-129)); - } - - /** - * @title s. Argument = Integer.MAX_VALUE - */ - public void testB6() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(-1, t.run(Integer.MAX_VALUE)); - } - - /** - * @title s. Argument = Integer.MIN_VALUE - */ - public void testB7() { - T_i2b_1 t = new T_i2b_1(); - assertEquals(0, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.i2b.jm.T_i2b_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.i2b.jm.T_i2b_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.i2b.jm.T_i2b_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.i2b.jm.T_i2b_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_1.j b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_1.j deleted file mode 100644 index 6beef3b9c7dccb7510998831cbac36cf589a88c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2b_1.java -.class public dxc/junit/opcodes/i2b/jm/T_i2b_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)B - .limit stack 1 - .limit locals 2 - iload_1 - i2b - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_1.java b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_1.java deleted file mode 100644 index ad3dd2ba8bba69c4b13a73a3fc0b35ce0c0c7e65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2b.jm; - -public class T_i2b_1 { - - public byte run(int a) { - return (byte) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_2.j b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_2.j deleted file mode 100644 index eb7c2c61fb903d010fdc0915dacf34925433d0a9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2b_2.java -.class public dxc/junit/opcodes/i2b/jm/T_i2b_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)B - .limit stack 1 - .limit locals 2 - ; iload_1 - i2b - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_2.java b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_2.java deleted file mode 100644 index 0a6f16f123ebc8f4897c477d02ae8aca06683819..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2b.jm; - -public class T_i2b_2 { - - public byte run(int a) { - return (byte) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_3.j b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_3.j deleted file mode 100644 index 3c2b8dd3e2fffa01af82814365a08da5ade0c02b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_3.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2b_3.java -.class public dxc/junit/opcodes/i2b/jm/T_i2b_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(D)B - .limit stack 2 - .limit locals 3 - dload_1 - i2b - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_3.java b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_3.java deleted file mode 100644 index f16d916037a3afb53620cbadcbfedcbab4173cc7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2b.jm; - -public class T_i2b_3 { - - public byte run(double a) { - return (byte) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_4.j b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_4.j deleted file mode 100644 index 93653fa68df5a65cbfb97ed8d3fa960b7917c846..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2b_4.java -.class public dxc/junit/opcodes/i2b/jm/T_i2b_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)B - .limit stack 2 - .limit locals 3 - - lload_1 - i2b - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_4.java b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_4.java deleted file mode 100644 index 10aa70d8e075dd3ee32cb873d6d74ac5765d23da..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2b.jm; - -public class T_i2b_4 { - - public byte run(long a) { - return (byte) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_5.j b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_5.j deleted file mode 100644 index 85ee24361235677c0818d85597843a5865804ccb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2b_5.java -.class public dxc/junit/opcodes/i2b/jm/T_i2b_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)B - .limit stack 1 - .limit locals 2 - - aload_0 - i2b - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_5.java b/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_5.java deleted file mode 100644 index a77b9c36fee8cbe000e9fc62a9b219d6f0ba333d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2b/jm/T_i2b_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2b.jm; - -public class T_i2b_5 { - - public byte run(int a) { - return (byte) a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/Test_i2c.java b/tools/dx-tests/src/dxc/junit/opcodes/i2c/Test_i2c.java deleted file mode 100644 index c610a6cc495481664303cc7ce3bb53e0a4ff5b78..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/Test_i2c.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2c; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.i2c.jm.T_i2c_1; - -public class Test_i2c extends DxTestCase { - - /** - * @title Argument = 65 - */ - public void testN1() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('A', t.run(65)); - } - - /** - * @title Argument = 65537 - */ - public void testN2() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('\u0001', t.run(65537)); - } - - /** - * @title Argument = -2 - */ - public void testN3() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('\ufffe', t.run(-2)); - } - - /** - * @title Argument = 0x110000 - */ - public void testN4() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('\u0000', t.run(0x110000)); - } - - /** - * @title Argument = 0 - */ - public void testB1() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('\u0000', t.run(0)); - } - - /** - * @title Argument = 65535 - */ - public void testB2() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('\uffff', t.run(65535)); - } - - /** - * @title Argument = Integer.MAX_VALUE - */ - public void testB3() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('\uffff', t.run(Integer.MAX_VALUE)); - } - - /** - * @title Argument = Integer.MIN_VALUE - */ - public void testB4() { - T_i2c_1 t = new T_i2c_1(); - assertEquals('\u0000', t.run(Integer.MIN_VALUE)); - } - - /** - * verify test - */ - /** - * @constraint 4.8.2 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.i2c.jm.T_i2c_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.i2c.jm.T_i2c_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.i2c.jm.T_i2c_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.i2c.jm.T_i2c_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_1.j b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_1.j deleted file mode 100644 index e15178df72dbc0047700387af7903a94daf4918f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2c_1.java -.class public dxc/junit/opcodes/i2c/jm/T_i2c_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)C - .limit stack 1 - .limit locals 2 - iload_1 - i2c - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_1.java b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_1.java deleted file mode 100644 index a255f60a11debab1b0c2e44cce416e1b0a0fffe7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2c.jm; - -public class T_i2c_1 { - - public char run(int a) { - return (char) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_2.j b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_2.j deleted file mode 100644 index e6dcb12f368c3af5530f375f72d90e1482e623ed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2c_2.java -.class public dxc/junit/opcodes/i2c/jm/T_i2c_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)C - .limit stack 1 - .limit locals 2 - -; iload_1 - i2c - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_2.java b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_2.java deleted file mode 100644 index 6ee574cc53a67da070ed54fd977c3459ea0a3057..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2c.jm; - -public class T_i2c_2 { - - public char run(int a) { - return (char) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_3.j b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_3.j deleted file mode 100644 index af0e0983a00257bc2e90d1bc587241151abad69b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2c_3.java -.class public dxc/junit/opcodes/i2c/jm/T_i2c_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(D)C - .limit stack 2 - .limit locals 3 - - dload_1 -; d2i - i2c - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_3.java b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_3.java deleted file mode 100644 index 12e7e707c3657cb491edef7a3f7b01c99c8d6a14..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2c.jm; - -public class T_i2c_3 { - - public char run(double a) { - return (char) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_4.j b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_4.j deleted file mode 100644 index 0ac45034738f4d4f9dd0382ff160313346430e06..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2c_4.java -.class public dxc/junit/opcodes/i2c/jm/T_i2c_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(J)C - .limit stack 2 - .limit locals 3 - - lload_1 -; l2i - i2c - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_4.java b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_4.java deleted file mode 100644 index 0583ce8201ed570b8b1065598016cab441a190d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2c.jm; - -public class T_i2c_4 { - - public char run(long a) { - return (char) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_5.j b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_5.j deleted file mode 100644 index 54e6ad33e0ad738d8b4b58927a4620ffa5de3699..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2c_5.java -.class public dxc/junit/opcodes/i2c/jm/T_i2c_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)C - .limit stack 1 - .limit locals 2 - - aload_0 - i2c - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_5.java b/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_5.java deleted file mode 100644 index a1d485d317a5e207e0fd6a88206cc11fa2d69050..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2c/jm/T_i2c_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2c.jm; - -public class T_i2c_5 { - - public char run(int a) { - return (char) a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/Test_i2d.java b/tools/dx-tests/src/dxc/junit/opcodes/i2d/Test_i2d.java deleted file mode 100644 index c6e57d354a6770d91fe6a3ab59b1feb2abba23bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/Test_i2d.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2d; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.i2d.jm.T_i2d_1; - -public class Test_i2d extends DxTestCase { - - /** - * @title Argument = 300000000 - */ - public void testN1() { - T_i2d_1 t = new T_i2d_1(); - assertEquals(300000000d, t.run(300000000), 0d); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_i2d_1 t = new T_i2d_1(); - assertEquals(1d, t.run(1), 0d); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_i2d_1 t = new T_i2d_1(); - assertEquals(-1d, t.run(-1), 0d); - } - - - /** - * @title Argument = Integer.MAX_VALUE - */ - public void testB1() { - T_i2d_1 t = new T_i2d_1(); - assertEquals(2147483647d, t.run(Integer.MAX_VALUE), 0d); - } - - /** - * @title Argument = Integer.MIN_VALUE - */ - public void testB2() { - T_i2d_1 t = new T_i2d_1(); - assertEquals(-2147483648d, t.run(Integer.MIN_VALUE), 0d); - } - - /** - * @title Argument = 0 - */ - public void testB3() { - T_i2d_1 t = new T_i2d_1(); - assertEquals(0d, t.run(0), 0d); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.i2d.jm.T_i2d_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.i2d.jm.T_i2d_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.i2d.jm.T_i2d_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.i2d.jm.T_i2d_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.i2d.jm.T_i2d_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_1.j b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_1.j deleted file mode 100644 index d44d272ba8496f40be4650af0968d427ff3e3be8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2d_1.java -.class public dxc/junit/opcodes/i2d/jm/T_i2d_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)D - .limit stack 2 - .limit locals 2 - iload_1 - i2d - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_1.java b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_1.java deleted file mode 100644 index 0375f9d9cb4b259cdbc2ab55a287d03ead1748fe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2d.jm; - -public class T_i2d_1 { - - public double run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_2.j b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_2.j deleted file mode 100644 index abd492b4535c1b90a5e9fa9eff91d0ff2f234b11..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2d_2.java -.class public dxc/junit/opcodes/i2d/jm/T_i2d_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)D - .limit stack 2 - .limit locals 2 - -; iload_1 - i2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_2.java b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_2.java deleted file mode 100644 index 0b2112d01256193f792d0047b0ab62c0b08c4970..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2d.jm; - -public class T_i2d_2 { - - public double run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_3.j b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_3.j deleted file mode 100644 index 7396e0cda9c4aad7accc0bb0d9bee3a215a596fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2d_3.java -.class public dxc/junit/opcodes/i2d/jm/T_i2d_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(F)D - .limit stack 2 - .limit locals 2 - - fload_1 -; f2i - i2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_3.java b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_3.java deleted file mode 100644 index 39125cf0989ee86fc0cd8c32f19f240d6f656c95..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2d.jm; - -public class T_i2d_3 { - - public double run(float a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_4.j b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_4.j deleted file mode 100644 index 041aa6c0ece1f3e257b842993ee659229e61397b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2d_4.java -.class public dxc/junit/opcodes/i2d/jm/T_i2d_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)D - .limit stack 2 - .limit locals 3 - - lload_1 -; l2i - i2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_4.java b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_4.java deleted file mode 100644 index 7386ba906dbdd3f09a15190cf95471ac951e65dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2d.jm; - -public class T_i2d_4 { - - public double run(long a) { - return (double) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_5.j b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_5.j deleted file mode 100644 index e9ca3acbab6b9dd5e37f238325eb30d07bc8c605..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2d_5.java -.class public dxc/junit/opcodes/i2d/jm/T_i2d_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)D - .limit stack 1 - .limit locals 2 - - iload_1 - i2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_5.java b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_5.java deleted file mode 100644 index 5af85bd7923c75dbc956a75c0a0c8354d89a78f0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2d.jm; - -public class T_i2d_5 { - - public double run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_6.j b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_6.j deleted file mode 100644 index 00a7b78e53c5f132e1205917c75712ab40495fbb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2d_6.java -.class public dxc/junit/opcodes/i2d/jm/T_i2d_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)D - .limit stack 2 - .limit locals 2 - - aload_0 - i2d - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_6.java b/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_6.java deleted file mode 100644 index a003adde067a28f25c1e929d45a4718559882491..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2d/jm/T_i2d_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2d.jm; - -public class T_i2d_6 { - - public double run(int a) { - return a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/Test_i2f.java b/tools/dx-tests/src/dxc/junit/opcodes/i2f/Test_i2f.java deleted file mode 100644 index 4a5bcec938c125e8bc4a0025eb33360c206b72a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/Test_i2f.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2f; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.i2f.jm.T_i2f_1; - -public class Test_i2f extends DxTestCase { - - /** - * @title Argument = 123456 - */ - public void testN1() { - T_i2f_1 t = new T_i2f_1(); - assertEquals(123456f, t.run(123456), 0f); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_i2f_1 t = new T_i2f_1(); - assertEquals(1f, t.run(1), 0f); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_i2f_1 t = new T_i2f_1(); - assertEquals(-1f, t.run(-1), 0f); - } - - /** - * @title Argument = 33564439 - */ - public void testN4() { - T_i2f_1 t = new T_i2f_1(); - assertEquals(3.356444E7f, t.run(33564439), 0f); - } - - /** - * @title Argument = 0 - */ - public void testB1() { - T_i2f_1 t = new T_i2f_1(); - assertEquals(0f, t.run(0), 0f); - } - - /** - * @title Argument = Argument = Integer.MAX_VALUE - */ - public void testB2() { - T_i2f_1 t = new T_i2f_1(); - assertEquals(2147483650f, t.run(Integer.MAX_VALUE), 0f); - } - - /** - * @title Argument = Integer.MIN_VALUE - */ - public void testB3() { - T_i2f_1 t = new T_i2f_1(); - assertEquals(-2147483650f, t.run(Integer.MIN_VALUE), 0f); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.i2f.jm.T_i2f_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.i2f.jm.T_i2f_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.i2f.jm.T_i2f_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.i2f.jm.T_i2f_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_1.j b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_1.j deleted file mode 100644 index e77cc6dc81b33aac60bbec659cc56d0a3ee90528..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2f_1.java -.class public dxc/junit/opcodes/i2f/jm/T_i2f_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)F - .limit stack 1 - .limit locals 2 - iload_1 - i2f - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_1.java b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_1.java deleted file mode 100644 index e985e19e4b607e925e6ca5439c009b8a2d37e610..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2f.jm; - -public class T_i2f_1 { - - public float run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_2.j b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_2.j deleted file mode 100644 index f1e729f0326b3b6e4ed6155b62f0c8ab1a702587..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2f_2.java -.class public dxc/junit/opcodes/i2f/jm/T_i2f_2 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)F - .limit stack 1 - .limit locals 2 - -; iload_1 - i2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_2.java b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_2.java deleted file mode 100644 index ae113edf21eef244493fde9519ce589e097e0422..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2f.jm; - -public class T_i2f_2 { - - public float run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_3.j b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_3.j deleted file mode 100644 index fac0ac4a077486529e5756596a51030ba5b15ad7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2f_3.java -.class public dxc/junit/opcodes/i2f/jm/T_i2f_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(D)F - .limit stack 2 - .limit locals 3 - - dload_1 -; d2i - i2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_3.java b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_3.java deleted file mode 100644 index a4f17272c8f24f661eb7a8ca1d332659331e6b79..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2f.jm; - -public class T_i2f_3 { - - public float run(double a) { - return (float)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_4.j b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_4.j deleted file mode 100644 index 31942748da62908418856900f5913e8aea2034a3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2f_4.java -.class public dxc/junit/opcodes/i2f/jm/T_i2f_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(J)F - .limit stack 2 - .limit locals 3 - - lload_1 - ;l2i - i2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_4.java b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_4.java deleted file mode 100644 index 5aad4ad2f6a5703c0b514d12866a7e2402e44152..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2f.jm; - -public class T_i2f_4 { - - public float run(long a) { - return (float) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_5.j b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_5.j deleted file mode 100644 index 9dfed0cec81a090b050d6ddea1f3c07297bd5cc1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2f_5.java -.class public dxc/junit/opcodes/i2f/jm/T_i2f_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)F - .limit stack 1 - .limit locals 2 - - aload_0 - i2f - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_5.java b/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_5.java deleted file mode 100644 index fcbe7e202414025c6b86e9d6e0eda647e96dad0a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2f/jm/T_i2f_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2f.jm; - -public class T_i2f_5 { - - public float run(int a) { - return a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/Test_i2l.java b/tools/dx-tests/src/dxc/junit/opcodes/i2l/Test_i2l.java deleted file mode 100644 index 8bd6a89030391ec110790a8facee9d159bfe4d86..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/Test_i2l.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2l; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.i2l.jm.T_i2l_1; - -public class Test_i2l extends DxTestCase { - - /** - * @title Argument = 123456 - */ - public void testN1() { - T_i2l_1 t = new T_i2l_1(); - assertEquals(123456l, t.run(123456)); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_i2l_1 t = new T_i2l_1(); - assertEquals(1l, t.run(1)); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_i2l_1 t = new T_i2l_1(); - assertEquals(-1l, t.run(-1)); - } - - /** - * @title Argument = 0 - */ - public void testB1() { - T_i2l_1 t = new T_i2l_1(); - assertEquals(0l, t.run(0)); - } - - /** - * @title Argument = Integer.MAX_VALUE - */ - public void testB2() { - T_i2l_1 t = new T_i2l_1(); - assertEquals(2147483647l, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Argument = Integer.MIN_VALUE - */ - public void testB3() { - T_i2l_1 t = new T_i2l_1(); - assertEquals(-2147483648l, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.i2l.jm.T_i2l_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.i2l.jm.T_i2l_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.i2l.jm.T_i2l_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.i2l.jm.T_i2l_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.i2l.jm.T_i2l_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_1.j b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_1.j deleted file mode 100644 index 49660c428374c580b99e5ac7505b1ff0a2134a08..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2l_1.java -.class public dxc/junit/opcodes/i2l/jm/T_i2l_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)J - .limit stack 2 - .limit locals 2 - iload_1 - i2l - lreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_1.java b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_1.java deleted file mode 100644 index 5b03ca0cb8056914f9654b7d1f94d30611df9d51..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2l.jm; - -public class T_i2l_1 { - - public long run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_2.j b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_2.j deleted file mode 100644 index 0435fb46d86c923d8ad94ad3d14d92861490fd33..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2l_2.java -.class public dxc/junit/opcodes/i2l/jm/T_i2l_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)J - .limit stack 2 - .limit locals 2 - -; iload_1 - i2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_2.java b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_2.java deleted file mode 100644 index 4209cad616d5575d4bc16b21fb746d01e4409566..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2l.jm; - -public class T_i2l_2 { - - public long run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_3.j b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_3.j deleted file mode 100644 index ed8c96a520827195b2efa1800a0fbb040a934452..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_3.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2l_3.java -.class public dxc/junit/opcodes/i2l/jm/T_i2l_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(D)J - .limit stack 2 - .limit locals 3 - - dload_1 - ; d2i - i2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_3.java b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_3.java deleted file mode 100644 index c8b87040cdbb5de3fa1df071ff8212a2e5311ae7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2l.jm; - -public class T_i2l_3 { - - public long run(double a) { - return (long)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_4.j b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_4.j deleted file mode 100644 index a172ce4bee456fec781de2c585b812295ffd0b63..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2l_4.java -.class public dxc/junit/opcodes/i2l/jm/T_i2l_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(J)J - .limit stack 2 - .limit locals 3 - - lload_1 - - i2l - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_4.java b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_4.java deleted file mode 100644 index cc27bc274334d99ceebcf051f77d840a0d822c96..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2l.jm; - -public class T_i2l_4 { - - public long run(long a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_5.j b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_5.j deleted file mode 100644 index 8dcd4810325784b5b07a76113ced3ab5f15ea559..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2l_5.java -.class public dxc/junit/opcodes/i2l/jm/T_i2l_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)J - .limit stack 1 - .limit locals 2 - - iload_1 - i2l - - lreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_5.java b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_5.java deleted file mode 100644 index 407650d5744cfefdce01d017a44ba56945b3fb03..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2l.jm; - -public class T_i2l_5 { - - public long run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_6.j b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_6.j deleted file mode 100644 index 75c969319f516a354530d3e04104fb15172e669b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2l_6.java -.class public dxc/junit/opcodes/i2l/jm/T_i2l_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)J - .limit stack 2 - .limit locals 2 - - aload_0 - i2l - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_6.java b/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_6.java deleted file mode 100644 index 9f2d674e88b7adc1978ce6a98b4c5f8945ce3c4d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2l/jm/T_i2l_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2l.jm; - -public class T_i2l_6 { - - public long run(int a) { - return a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/Test_i2s.java b/tools/dx-tests/src/dxc/junit/opcodes/i2s/Test_i2s.java deleted file mode 100644 index f0ae1f24a3b79f206f50cb6ca5558b583b880e60..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/Test_i2s.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2s; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.i2s.jm.T_i2s_1; - -public class Test_i2s extends DxTestCase { - - /** - * @title Argument = 1 - */ - public void testN1() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(1, t.run(1)); - } - - /** - * @title Argument = -1 - */ - public void testN2() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(-1, t.run(-1)); - } - - /** - * @title Argument = 32767 - */ - public void testN3() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(32767, t.run(32767)); - } - - /** - * @title Argument = -32768 - */ - public void testN4() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(-32768, t.run(-32768)); - } - - /** - * @title Argument = -32769 - */ - public void testN5() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(32767, t.run(-32769)); - } - - /** - * @title Argument = 32768 - */ - public void testN6() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(-32768, t.run(32768)); - } - - /** - * @title Argument = 0x10fedc; - */ - public void testN7() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(0xfffffedc, t.run(0x10fedc)); - } - - /** - * @title Argument = 0 - */ - public void testB1() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(0, t.run(0)); - } - - /** - * @title Argument = Integer.MAX_VALUE - */ - public void testB2() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(-1, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Argument = Integer.MIN_VALUE - */ - public void testB3() { - T_i2s_1 t = new T_i2s_1(); - assertEquals(0, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.i2s.jm.T_i2s_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.i2s.jm.T_i2s_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.i2s.jm.T_i2s_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.i2s.jm.T_i2s_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_1.j b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_1.j deleted file mode 100644 index 2224057a55fcc1eb205954617b43d63c3768e2c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2s_1.java -.class public dxc/junit/opcodes/i2s/jm/T_i2s_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)S - .limit stack 1 - .limit locals 2 - iload_1 - i2s - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_1.java b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_1.java deleted file mode 100644 index f01646d104bfc07f4fe8e23a316101bff5549d75..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2s.jm; - -public class T_i2s_1 { - - public short run(int a) { - return (short)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_2.j b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_2.j deleted file mode 100644 index c62c56f6c1ae108e294fd71bf9724e3e0ed516d3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2s_2.java -.class public dxc/junit/opcodes/i2s/jm/T_i2s_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)S - .limit stack 1 - .limit locals 2 - -; iload_1 - i2s - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_2.java b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_2.java deleted file mode 100644 index 73e31343bb82ddb35e011cb253ff2150fd500c8e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2s.jm; - -public class T_i2s_2 { - - public short run(int a) { - return (short)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_3.j b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_3.j deleted file mode 100644 index 05b14f7fae896585aec077f367dd8911a5b4c129..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2s_3.java -.class public dxc/junit/opcodes/i2s/jm/T_i2s_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(D)S - .limit stack 2 - .limit locals 3 - - dload_1 -; d2i - i2s - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_3.java b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_3.java deleted file mode 100644 index 92d6144c6b5c98f5cc5caedcde6f75fd24a59b5e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2s.jm; - -public class T_i2s_3 { - - public short run(double a) { - return (short)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_4.j b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_4.j deleted file mode 100644 index 927254c7399ef4b13379798371b76d56d43b954c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2s_4.java -.class public dxc/junit/opcodes/i2s/jm/T_i2s_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(J)S - .limit stack 2 - .limit locals 3 - - lload_1 -; l2i - i2s - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_4.java b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_4.java deleted file mode 100644 index 703e103f10ee00b769a0a5a5eda1a29aa2693b8f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2s.jm; - -public class T_i2s_4 { - - public short run(long a) { - return (short)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_5.j b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_5.j deleted file mode 100644 index 6ee161e1d17aede2a5f37ac3e102288c8a68fc5c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_i2s_5.java -.class public dxc/junit/opcodes/i2s/jm/T_i2s_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)S - .limit stack 1 - .limit locals 2 - - aload_0 - i2s - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_5.java b/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_5.java deleted file mode 100644 index 85dde1d636dc252f3879b1f7eded9a08a9773e73..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/i2s/jm/T_i2s_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.i2s.jm; - -public class T_i2s_5 { - - public short run(int a) { - return (short)a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/Test_iadd.java b/tools/dx-tests/src/dxc/junit/opcodes/iadd/Test_iadd.java deleted file mode 100644 index 4e6502331b1dbc8e88410572ddf092eb6c365f4c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/Test_iadd.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iadd; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iadd.jm.T_iadd_1; - -public class Test_iadd extends DxTestCase { - - /** - * @title Arguments = 8, 4 - */ - public void testN1() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(12, t.run(8, 4)); - } - - /** - * @title Arguments = 0, 255 - */ - public void testN2() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(255, t.run(0, 255)); - } - - /** - * @title Arguments = 0, -65536 - */ - public void testN3() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(-65536, t.run(0, -65536)); - } - - /** - * @title Arguments = 0, -2147483647 - */ - public void testN4() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(-2147483647, t.run(0, -2147483647)); - } - - /** - * @title Arguments = 0x7ffffffe, 2 - */ - public void testN5() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(-2147483648, t.run(0x7ffffffe, 2)); - } - - /** - * @title Arguments = -1, 1 - */ - public void testN6() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(0, t.run(-1, 1)); - } - - /** - * @title Arguments = 0, Integer.MAX_VALUE - */ - public void testB1() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(Integer.MAX_VALUE, t.run(0, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB2() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(-2, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, 1 - */ - public void testB3() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, 1 - */ - public void testB4() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(-2147483647, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(0, t.run(0, 0)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MIN_VALUE - */ - public void testB6() { - T_iadd_1 t = new T_iadd_1(); - assertEquals(0, t.run(Integer.MIN_VALUE, Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iadd.jm.T_iadd_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iadd.jm.T_iadd_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iadd.jm.T_iadd_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iadd.jm.T_iadd_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_1.j deleted file mode 100644 index 7d5ab14204c564e41098e04f0e59797cda15a112..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iadd_1.java -.class public dxc/junit/opcodes/iadd/jm/T_iadd_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - iadd - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_1.java deleted file mode 100644 index 63e35c9963c94b376aa21c815a99856fc793626b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iadd.jm; - -public class T_iadd_1 { - - public int run(int a, int b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_2.j deleted file mode 100644 index 40001674b13db3300ffad3ae22dec05f18195e11..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iadd_2.java -.class public dxc/junit/opcodes/iadd/jm/T_iadd_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - ; iload_2 - iadd - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_2.java deleted file mode 100644 index 249c9de0461140483cd2d9319a438f52f1668297..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iadd.jm; - -public class T_iadd_2 { - - public int run(int a, int b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_3.j deleted file mode 100644 index 61a788fce265797b071c59c96af0076285a5f431..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iadd_3.java -.class public dxc/junit/opcodes/iadd/jm/T_iadd_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(ID)I - .limit stack 3 - .limit locals 5 - iload_1 - dload_2 - iadd - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_3.java deleted file mode 100644 index 98ac7807285c160f2af31f1c59c26201a6e90027..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iadd.jm; - -public class T_iadd_3 { - - public int run(int a, double b) { - return a+(int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_4.j deleted file mode 100644 index b80dbca3b8a6f58885009a05662d9db591ac9d3f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iadd_4.java -.class public dxc/junit/opcodes/iadd/jm/T_iadd_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)I - .limit stack 3 - .limit locals 4 - - lload_1 -; l2i - iload_3 - iadd - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_4.java deleted file mode 100644 index cb97c3906e5cf2110bff0206c7217a404b9d88e8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iadd.jm; - -public class T_iadd_4 { - - public int run(long a, int b) { - return (int)a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_5.j deleted file mode 100644 index e815ee4c0352dc94e7dbe0a4aae6750b1afe537b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iadd_5.java -.class public dxc/junit/opcodes/iadd/jm/T_iadd_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - iadd - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_5.java deleted file mode 100644 index 6d0581030716f01b81a18d55bb53d096971fa720..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iadd/jm/T_iadd_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iadd.jm; - -public class T_iadd_5 { - - public int run(int a, int b) { - return a+b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/Test_iaload.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/Test_iaload.java deleted file mode 100644 index 0b37ac29b830d2311b6590cfc2b5aa97e577fe0a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/Test_iaload.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iaload.jm.T_iaload_1; - -public class Test_iaload extends DxTestCase { - - /** - * @title Normal test/. Trying different indexes - */ - public void testN1() { - T_iaload_1 t = new T_iaload_1(); - int[] arr = new int[2]; - arr[1] = 100000000; - assertEquals(100000000, t.run(arr, 1)); - } - - /** - * @title Normal test/. Trying different indexes - */ - public void testN2() { - T_iaload_1 t = new T_iaload_1(); - int[] arr = new int[2]; - arr[0] = 100000000; - assertEquals(100000000, t.run(arr, 0)); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_iaload_1 t = new T_iaload_1(); - int[] arr = new int[2]; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_iaload_1 t = new T_iaload_1(); - try { - t.run(null, 2); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_iaload_1 t = new T_iaload_1(); - int[] arr = new int[2]; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.iaload.jm.T_iaload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_1.j deleted file mode 100644 index 097f97459d4f1ce216d0f202cf0622264779d845..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_1.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([II)I - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - - iaload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_1.java deleted file mode 100644 index 06baef4b8933b470f49328919e69c4a9eead978b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_1 { - public int run(int[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_2.j deleted file mode 100644 index 949cf4c9c749da557d0daa02f2748fb64b244596..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_2.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([II)I - .limit stack 3 - .limit locals 4 - - aload_1 -; iload_2 - - iaload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_2.java deleted file mode 100644 index dda4c99eabaf6063158b8f9418fa9231c693dcdb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_2 { - - public int run(int[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_3.j deleted file mode 100644 index f54bde1f39cb2f3fd41534b83d47ee2bb2d96956..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_3.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([II)I - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - iaload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_3.java deleted file mode 100644 index 3ce0959a18efff8cfaa48810111a7ba9788fa0a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_3 { - - public int run(int[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_4.j deleted file mode 100644 index fd6243cccc82c302b50438e65f4093d1b25a868f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_4.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([ID)I - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - iaload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_4.java deleted file mode 100644 index 376f303307ea83543d2bf0c0c165b77f80607d17..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_4 { - - public int run(int[] arr, double idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_5.j deleted file mode 100644 index b29eeae477d6de56f0c836ebb22a12e00b7bd2db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_5.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([IJ)I - .limit stack 4 - .limit locals 5 - - aload_1 - lload_2 -; l2i - iaload - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_5.java deleted file mode 100644 index a1e260b983da353d77400af2cb0b248e34ecd8e3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_5 { - - public int run(int[] arr, long idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_6.j deleted file mode 100644 index dd840238ec1451c7f1d74e6d08a4ae26350556c2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_6.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;[II)I - .limit stack 3 - .limit locals 4 - - aload_1 - iload_3 - - iaload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_6.java deleted file mode 100644 index b371b7b0da374f8f2570ee222d7ea94bd4e18de0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_6 { - - public int run(Object a, int[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_7.j deleted file mode 100644 index 5989d3c96ce666660525d7b46fd77af7be091195..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_7.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([D[II)I - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - iaload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_7.java deleted file mode 100644 index a6ab6edce4321877cd5f61423f1d55656208451d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_7 { - - public int run(double[] a, int[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_8.j deleted file mode 100644 index 3b83df4d60d650939b9e17bea9b2732ad433483c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_8.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_8.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([J[II)I - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - iaload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_8.java deleted file mode 100644 index 7fc1fd4d79e64f772cea80285817a2a18249504b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_8 { - - public int run(long[] a, int[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_9.j deleted file mode 100644 index 73c8718d85b6332153556553b276002147028afd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iaload_9.java -.class public dxc/junit/opcodes/iaload/jm/T_iaload_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([II)I - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - iaload - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_9.java deleted file mode 100644 index 3ac452234e344cab6e2be88aef5379109e0189a3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iaload/jm/T_iaload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iaload.jm; - -public class T_iaload_9 { - - public int run(int[] arr, int idx) { - return arr[idx]; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/Test_iand.java b/tools/dx-tests/src/dxc/junit/opcodes/iand/Test_iand.java deleted file mode 100644 index 3ffc87150c73fd9b3e8b0360ff5ebec48995cada..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/Test_iand.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iand; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iand.jm.T_iand_1; - -public class Test_iand extends DxTestCase { - - /** - * @title Arguments = 15, 8 - */ - public void testN1() { - T_iand_1 t = new T_iand_1(); - assertEquals(8, t.run(15, 8)); - } - - /** - * @title Arguments = 0xfffffff8, 0xfffffff1 - */ - public void testN2() { - T_iand_1 t = new T_iand_1(); - assertEquals(0xfffffff0, t.run(0xfffffff8, 0xfffffff1)); - } - - /** - * @title Arguments = 0xcafe & -1 - */ - public void testN3() { - T_iand_1 t = new T_iand_1(); - assertEquals(0xcafe, t.run(0xcafe, -1)); - } - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_iand_1 t = new T_iand_1(); - assertEquals(0, t.run(0, -1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE & Integer.MIN_VALUE - */ - public void testB2() { - T_iand_1 t = new T_iand_1(); - assertEquals(0, t.run(Integer.MAX_VALUE, Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iand.jm.T_iand_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iand.jm.T_iand_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iand.jm.T_iand_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int & reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iand.jm.T_iand_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_1.j deleted file mode 100644 index 8a1bd035edfec096e3138a9e608ef15df117ad14..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iand_1.java -.class public dxc/junit/opcodes/iand/jm/T_iand_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - iand - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_1.java deleted file mode 100644 index e0783a5e95e17081b9237f168537ce686fe1345d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iand.jm; - -public class T_iand_1 { - - public int run(int a, int b) { - return a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_2.j deleted file mode 100644 index 44323a9ed9b146b8bb70916032a6f7e919ded7e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iand_2.java -.class public dxc/junit/opcodes/iand/jm/T_iand_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - iand - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_2.java deleted file mode 100644 index 6eef083c7d2030eb92bd7bdd4d04aa3afb061acb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iand.jm; - -public class T_iand_2 { - - public int run(int a, int b) { - return a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_3.j deleted file mode 100644 index f5ea270ba58c525b5f70c2922ae2ca60ba97c859..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iand_3.java -.class public dxc/junit/opcodes/iand/jm/T_iand_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DI)I - .limit stack 3 - .limit locals 4 - - dload_1 -; d2i - iload_3 - iand - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_3.java deleted file mode 100644 index c87a78f4618e9a6602e26321e7c1ba8a6487fd88..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iand.jm; - -public class T_iand_3 { - - public int run(double a, int b) { - return (int)a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_4.j deleted file mode 100644 index c849643105f3e5b20af9700ab7caf796a4777816..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iand_4.java -.class public dxc/junit/opcodes/iand/jm/T_iand_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(IJ)I - .limit stack 3 - .limit locals 4 - - iload_1 - lload_2 -; l2i - iand - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_4.java deleted file mode 100644 index bbfe63d1257d8794607f55df1908e413824acef3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iand.jm; - -public class T_iand_4 { - - public int run(int a, long b) { - return a & (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_5.j deleted file mode 100644 index daa59086976e83348fbe3d18f3205b2e7ae73af0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iand_5.java -.class public dxc/junit/opcodes/iand/jm/T_iand_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - iload_1 - aload_0 - iand - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_5.java deleted file mode 100644 index 177c70786f2a9b2832b2a140a86df759834b43ee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iand/jm/T_iand_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iand.jm; - -public class T_iand_5 { - - public int run(int a, int b) { - return a & b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/Test_iastore.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/Test_iastore.java deleted file mode 100644 index 539e8aeddbaffe30bd5243af66273975fa573c39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/Test_iastore.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iastore.jm.T_iastore_1; - -public class Test_iastore extends DxTestCase { - - /** - * @title Normal test/. Trying different indexes - */ - public void testN1() { - T_iastore_1 t = new T_iastore_1(); - int[] arr = new int[2]; - t.run(arr, 1, 100000000); - assertEquals(100000000, arr[1]); - } - - /** - * @title Normal test/. Trying different indexes - */ - public void testN2() { - T_iastore_1 t = new T_iastore_1(); - int[] arr = new int[2]; - t.run(arr, 0, 100000000); - assertEquals(100000000, arr[0]); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_iastore_1 t = new T_iastore_1(); - int[] arr = new int[2]; - try { - t.run(arr, 2, 100000000); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_iastore_1 t = new T_iastore_1(); - try { - t.run(null, 2, 100000000); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_iastore_1 t = new T_iastore_1(); - int[] arr = new int[2]; - try { - t.run(arr, -1, 100000000); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, - * int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int, - * int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int, int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, - * long - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.iastore.jm.T_iastore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_1.j deleted file mode 100644 index 8a2c77126ac5bede85891fc6d54420314fc8d346..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_1.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([III)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_1.java deleted file mode 100644 index 253e9d31a2f0c6c78509c880e94c77e0e388df1d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_1 { - public void run(int[] arr, int idx, int value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_2.j deleted file mode 100644 index 7c34197e5016c5fec553a8c91666fa0ec8cf3849..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_2.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([III)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - ;iload_3 - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_2.java deleted file mode 100644 index f407f92f78bf129373387c819c5d369b4268529b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_2 { - - public void run(int[] arr, int idx, int value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_3.j deleted file mode 100644 index cb6cfb599b0c2beda704fd162f181f2175b58f3a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_3.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([III)V - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - iload_3 - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_3.java deleted file mode 100644 index 0df3ee9ef10e6ecafb0cf06a8505ca2536808e31..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_3 { - - public void run(int[] arr, int idx, int value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_4.j deleted file mode 100644 index 0fa6d098f35a879db6b3d59ba74ee598d1ee8145..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_4.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([IDI)V - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - iload 4 - - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_4.java deleted file mode 100644 index 070683543faaf2fd2d0ce84ff276813a464ede41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_4 { - - public void run(int[] arr, double idx, int value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_5.j deleted file mode 100644 index 59f03990fbd9817898c3062dd77349102f57b141..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_5.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([IIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload_3 -; l2i - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_5.java deleted file mode 100644 index 989da2f33b805e196b50d6ff0826a6997d252016..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_5 { - - public void run(int[] arr, int idx, long value) { - arr[idx] = (int)value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_6.j deleted file mode 100644 index f3d75dc86981f2eae5ca7e63759347d9a25993f1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_6.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;II)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_6.java deleted file mode 100644 index 0f5ea3e035233a9710891d13f5d3b31ecb236f65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_6 { - - public void run(Object a, int[] arr, int idx, int value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_7.j deleted file mode 100644 index 5ee1b4daab0fcc17550946d163ed80c2e952113f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_7.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_7.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([D[III)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_7.java deleted file mode 100644 index 22b43480d7325375ee62f968f1b7ce1902f43930..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_7 { - - public void run(double a[], int[] arr, int idx, int value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_8.j deleted file mode 100644 index 1de1c746ce094bb5f68ca0d165c8592a1701683b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_8.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_8.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([J[III)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - iastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_8.java deleted file mode 100644 index 5493e4d5274aa0de843ebdf420743ca9daa74422..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_8 { - - public void run(long a[], int[] arr, int idx, int value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_9.j deleted file mode 100644 index a0b993bfc30b1e38a94bd8b1b673f01f708024ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iastore_9.java -.class public dxc/junit/opcodes/iastore/jm/T_iastore_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([III)V - .limit stack 3 - .limit locals 4 - - aload_1 - aload_0 - iload_3 - iastore - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_9.java deleted file mode 100644 index 8b30629d1718cb9de57276847bfd5a3215cca171..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iastore/jm/T_iastore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iastore.jm; - -public class T_iastore_9 { - - public void run(int[] arr, int idx, int value) { - arr[idx] = value; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/Test_iconst_0.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/Test_iconst_0.java deleted file mode 100644 index d3943854b132e0e24cd5c4657beab7d564c40463..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/Test_iconst_0.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iconst_0.jm.T_iconst_0_1; - -public class Test_iconst_0 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_iconst_0_1 t = new T_iconst_0_1(); - int b = 1234; - int c = 1234; - int d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iconst_0.jm.T_iconst_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_1.j deleted file mode 100644 index 95100669a6ec0fed295c33a6922aba2b7df82348..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_0_1.java -.class public dxc/junit/opcodes/iconst_0/jm/T_iconst_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_1.java deleted file mode 100644 index 112b6d53c1600cc2be3150e27f6404fb3a312b93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_0.jm; - -public class T_iconst_0_1 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_2.j deleted file mode 100644 index 90d93a8d3fd7e5a3cc23283cbf89a21432bd7d3e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_0_2.java -.class public dxc/junit/opcodes/iconst_0/jm/T_iconst_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 -; .limit locals 1 - - iconst_0 - iconst_0 - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_2.java deleted file mode 100644 index 9f409627c0449ebd4afaf32250cb5667ee15adac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_0/jm/T_iconst_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_0.jm; - -public class T_iconst_0_2 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/Test_iconst_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/Test_iconst_1.java deleted file mode 100644 index 2ceda6d14179fa42bb5c439757da8b5062c97665..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/Test_iconst_1.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iconst_1.jm.T_iconst_1_1; - -public class Test_iconst_1 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_iconst_1_1 t = new T_iconst_1_1(); - int b = 1235; - int c = 1234; - int d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iconst_1.jm.T_iconst_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_1.j deleted file mode 100644 index b7c45586eb4d36435dbd15b3043bdad9b98f927b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_1_1.java -.class public dxc/junit/opcodes/iconst_1/jm/T_iconst_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_1.java deleted file mode 100644 index 963428ccc457d4d0dd62d3da21634642d7597e65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_1.jm; - -public class T_iconst_1_1 { - - public int run() { - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_2.j deleted file mode 100644 index 10f3e61ba9b95ab6fc4e8a18504e660990e7a69d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_1_2.java -.class public dxc/junit/opcodes/iconst_1/jm/T_iconst_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 -; .limit locals 1 - - iconst_1 - iconst_1 - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_2.java deleted file mode 100644 index c2f95f1f596f27e54da46e9cac62ebc95e429c39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_1/jm/T_iconst_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_1.jm; - -public class T_iconst_1_2 { - - public int run() { - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/Test_iconst_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/Test_iconst_2.java deleted file mode 100644 index fc3b558d80595788785dac66fe9733c30962e4ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/Test_iconst_2.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iconst_2.jm.T_iconst_2_1; - -public class Test_iconst_2 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_iconst_2_1 t = new T_iconst_2_1(); - int b = 1236; - int c = 1234; - int d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iconst_2.jm.T_iconst_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_1.j deleted file mode 100644 index 582564e7787335a3634d0825e7bd6f1d902410bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_2_1.java -.class public dxc/junit/opcodes/iconst_2/jm/T_iconst_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - iconst_2 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_1.java deleted file mode 100644 index 7a00ed3e8a4c44e7896153e9b633a33e3f029aa4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_2.jm; - -public class T_iconst_2_1 { - - public int run() { - return 2; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_2.j deleted file mode 100644 index d0a6b7ec74f6f8ff863ea50fefa9a3027def058f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_2_2.java -.class public dxc/junit/opcodes/iconst_2/jm/T_iconst_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 -; .limit locals 1 - - iconst_2 - iconst_2 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_2.java deleted file mode 100644 index c9b35a6aaadb5de9a9acf0db82cce82d3bfe1c37..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_2/jm/T_iconst_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_2.jm; - -public class T_iconst_2_2 { - - public int run() { - return 2; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/Test_iconst_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/Test_iconst_3.java deleted file mode 100644 index 7c35d71c515b8fe4c3a0d086a5ab8559c8d1381c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/Test_iconst_3.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iconst_3.jm.T_iconst_3_1; - -public class Test_iconst_3 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_iconst_3_1 t = new T_iconst_3_1(); - int b = 1237; - int c = 1234; - int d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iconst_3.jm.T_iconst_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_1.j deleted file mode 100644 index ef978137983df9e7ebb82e794321ea9e3c9a31c0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_3_1.java -.class public dxc/junit/opcodes/iconst_3/jm/T_iconst_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - iconst_3 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_1.java deleted file mode 100644 index c3ce680391fd9cad55118fbbc84e8ecf45cac18a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_3.jm; - -public class T_iconst_3_1 { - - public int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_2.j deleted file mode 100644 index 9c501ddfeb91603400c0cf8a29953f84d1b4c972..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_3_2.java -.class public dxc/junit/opcodes/iconst_3/jm/T_iconst_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 -; .limit locals 1 - - iconst_3 - iconst_3 - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_2.java deleted file mode 100644 index 2e5cfc362b5adbe007147a0f495252d645d148f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_3/jm/T_iconst_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_3.jm; - -public class T_iconst_3_2 { - - public int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/Test_iconst_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/Test_iconst_4.java deleted file mode 100644 index f883f6d7438df27e238ea6d933a164083c7057ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/Test_iconst_4.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_4; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iconst_4.jm.T_iconst_4_1; - -public class Test_iconst_4 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_iconst_4_1 t = new T_iconst_4_1(); - int b = 1238; - int c = 1234; - int d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iconst_4.jm.T_iconst_4_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_1.j deleted file mode 100644 index 0bc6c6a8e4948de9f314dee31d389feae8cd72f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_1.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_4_1.java -.class public dxc/junit/opcodes/iconst_4/jm/T_iconst_4_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - iconst_4 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_1.java deleted file mode 100644 index b662051d4c10587ed926d535155e974c91285095..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_4.jm; - -public class T_iconst_4_1 { - - public int run() { - return 4; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_2.j deleted file mode 100644 index 36ae08b6d522fe5f3c40a9f9513dda483147ec45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_4_2.java -.class public dxc/junit/opcodes/iconst_4/jm/T_iconst_4_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 -; .limit locals 1 - - iconst_4 - iconst_4 - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_2.java deleted file mode 100644 index effef30e00a979768daf59bfea959c8c9b4b2edc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_4/jm/T_iconst_4_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_4.jm; - -public class T_iconst_4_2 { - - public int run() { - return 4; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/Test_iconst_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/Test_iconst_5.java deleted file mode 100644 index 6fbe360b89485e85347f57d43f6c045400e8318d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/Test_iconst_5.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_5; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iconst_5.jm.T_iconst_5_1; - -public class Test_iconst_5 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_iconst_5_1 t = new T_iconst_5_1(); - int b = 1239; - int c = 1234; - int d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iconst_5.jm.T_iconst_5_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_1.j deleted file mode 100644 index 12b2f819915962c62c082632ad3ad3d103cb087e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_5_1.java -.class public dxc/junit/opcodes/iconst_5/jm/T_iconst_5_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - iconst_5 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_1.java deleted file mode 100644 index 076206507732e8a0a25b1fc22c0c9eb92ffd73bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_5.jm; - -public class T_iconst_5_1 { - - public int run() { - return 5; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_2.j deleted file mode 100644 index 307c804f7d60d3dc5b1c889643b44240ec635c64..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_5_2.java -.class public dxc/junit/opcodes/iconst_5/jm/T_iconst_5_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 -; .limit locals 1 - - iconst_5 - iconst_5 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_2.java deleted file mode 100644 index ec01b764b94767554b666c088a96664c91f9e3c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_5/jm/T_iconst_5_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_5.jm; - -public class T_iconst_5_2 { - - public int run() { - return 5; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/Test_iconst_m1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/Test_iconst_m1.java deleted file mode 100644 index 9eb27656c4842f81ca7e9a0f614e64df5e013e28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/Test_iconst_m1.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_m1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iconst_m1.jm.T_iconst_m1_1; - -public class Test_iconst_m1 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_iconst_m1_1 t = new T_iconst_m1_1(); - int b = 1233; - int c = 1234; - int d = b - c; - assertEquals(d, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iconst_m1.jm.T_iconst_m1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_1.j deleted file mode 100644 index 4cc89b122325071e4242f0182deac23c0b05ecfc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_m1_1.java -.class public dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_1.java deleted file mode 100644 index e54eee4bc5fe223f13d0b0b92ee5612846db7939..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_m1.jm; - -public class T_iconst_m1_1 { - - public int run() { - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_2.j deleted file mode 100644 index 68cb7eec31674bf120536bf1db9c7a71426b47c9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iconst_m1_2.java -.class public dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()I - .limit stack 1 -; .limit locals 1 - - iconst_m1 - iconst_m1 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_2.java deleted file mode 100644 index ad1c701ecf39ca27b74c83404804bbf4cf14b8d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iconst_m1/jm/T_iconst_m1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iconst_m1.jm; - -public class T_iconst_m1_2 { - - public int run() { - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/Test_idiv.java b/tools/dx-tests/src/dxc/junit/opcodes/idiv/Test_idiv.java deleted file mode 100644 index 73ca29687f2662d0058cfb67034ff99856101b6f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/Test_idiv.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.idiv; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.idiv.jm.T_idiv_1; - -public class Test_idiv extends DxTestCase { - - /** - * @title Arguments = 8, 4 - */ - public void testN1() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(2, t.run(8, 4)); - } - - /** - * @title Rounding - */ - public void testN2() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(268435455, t.run(1073741823, 4)); - } - - /** - * @title Dividend = 0 - */ - public void testN3() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(0, t.run(0, 4)); - } - - /** - * @title Dividend is negative - */ - public void testN4() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(-3, t.run(-10, 3)); - } - - /** - * @title Divisor is negative - */ - public void testN5() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(-357913941, t.run(1073741824, -3)); - } - - /** - * @title Both Dividend and divisor are negative - */ - public void testN6() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(5965, t.run(-17895697, -3000)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, -1 - */ - public void testB1() { - T_idiv_1 t = new T_idiv_1(); - // result is MIN_VALUE because overflow occurs in this case - assertEquals(Integer.MIN_VALUE, t.run(Integer.MIN_VALUE, -1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, 1 - */ - public void testB2() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, 1 - */ - public void testB3() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(Integer.MAX_VALUE, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MAX_VALUE - */ - public void testB4() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(-1, t.run(Integer.MIN_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = 1, Integer.MAX_VALUE - */ - public void testB5() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(0, t.run(1, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = 1, Integer.MIN_VALUE - */ - public void testB6() { - T_idiv_1 t = new T_idiv_1(); - assertEquals(0, t.run(1, Integer.MIN_VALUE)); - } - - /** - * @title Divisor is 0 - */ - public void testE1() { - T_idiv_1 t = new T_idiv_1(); - try { - t.run(1, 0); - fail("expected ArithmeticException"); - } catch (ArithmeticException ae) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.idiv.jm.T_idiv_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.idiv.jm.T_idiv_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.idiv.jm.T_idiv_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.idiv.jm.T_idiv_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_1.j b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_1.j deleted file mode 100644 index 97b601dd48a37f70d6f62faef4f7e485946284c6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_idiv_1.java -.class public dxc/junit/opcodes/idiv/jm/T_idiv_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - idiv - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_1.java b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_1.java deleted file mode 100644 index b3e1ecc8e87cd7caf11e4e7ee3305656908566ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.idiv.jm; - -public class T_idiv_1 { - - public int run(int a, int b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_2.j b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_2.j deleted file mode 100644 index 71cd321e8ad1f56d5968875b8e35f076cc2f6e87..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_idiv_2.java -.class public dxc/junit/opcodes/idiv/jm/T_idiv_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - ; iload_2 - idiv - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_2.java b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_2.java deleted file mode 100644 index ec8834c235876d8cdfa7e2bab26ac0fcdb4a4571..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.idiv.jm; - -public class T_idiv_2 { - - public int run(int a, int b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_3.j b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_3.j deleted file mode 100644 index 897b7053dfb2079d98f88faa18cbf5789e61f137..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_idiv_3.java -.class public dxc/junit/opcodes/idiv/jm/T_idiv_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(ID)I - .limit stack 3 - .limit locals 5 - iload_1 - dload_2 - idiv - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_3.java b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_3.java deleted file mode 100644 index a28eb6abf1d618b5337c5331af5de98823fd8778..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.idiv.jm; - -public class T_idiv_3 { - - public int run(int a, double b) { - return a/(int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_4.j b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_4.j deleted file mode 100644 index ddf5f0119566ffc4e2a908cbb6013c53a0917562..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_idiv_4.java -.class public dxc/junit/opcodes/idiv/jm/T_idiv_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)I - .limit stack 3 - .limit locals 4 - - lload_1 -; l2i - iload_3 - idiv - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_4.java b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_4.java deleted file mode 100644 index c2cf3dd972846d3d7cfd134f78aaec5bad80e0db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.idiv.jm; - -public class T_idiv_4 { - - public int run(long a, int b) { - return (int)a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_5.j b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_5.j deleted file mode 100644 index 20b4402b16c73a37dcffedf09b6e560e9fcf6d54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_idiv_5.java -.class public dxc/junit/opcodes/idiv/jm/T_idiv_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - idiv - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_5.java b/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_5.java deleted file mode 100644 index c5a357928b41c0928ce1a19405923b2b69f26d94..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/idiv/jm/T_idiv_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.idiv.jm; - -public class T_idiv_5 { - - public int run(int a, int b) { - return a/b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/Test_if_acmpeq.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/Test_if_acmpeq.java deleted file mode 100644 index 2591871c9e6314c4eacdb4195b6481195993e922..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/Test_if_acmpeq.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpeq; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_1; - -public class Test_if_acmpeq extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_if_acmpeq_1 t = new T_if_acmpeq_1(); - String a = "a"; - String b = "b"; - - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(a, b)); - } - - /** - * @title normal test - */ - public void testN2() { - T_if_acmpeq_1 t = new T_if_acmpeq_1(); - String a = "a"; - assertEquals(1, t.run(a, a)); - } - - /** - * @title Compare with null - */ - public void testB1() { - T_if_acmpeq_1 t = new T_if_acmpeq_1(); - String a = "a"; - assertEquals(1234, t.run(null, a)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, - * integer - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_1.j deleted file mode 100644 index c31a282bcff48c7aa865ef13d5d57c06cff6da24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpeq_1.java -.class public dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(Ljava/lang/String;Ljava/lang/String;)I - .limit stack 2 - .limit locals 3 - aload_1 - aload_2 - if_acmpeq Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_1.java deleted file mode 100644 index e72a4fb953d03cf5b403b5b73a3cacd3a70e5c08..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpeq.jm; - -public class T_if_acmpeq_1 { - - public int run(String a, String b) { - return a == b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_2.j deleted file mode 100644 index 51fb9e48cb20cdae1cfeb567649eb0590c85aa90..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpeq_2.java -.class public dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 -; aload_1 - aload_2 - if_acmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_2.java deleted file mode 100644 index f346baeff35b49f0093042f44aeae9b981d1eb4f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpeq.jm; - -public class T_if_acmpeq_2 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_3.j deleted file mode 100644 index cc9354954e520353491dd48b67f80f3da172e8f7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_3.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpeq_3.java -.class public dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 4 - .limit locals 3 - - aload_1 - dconst_1 - if_acmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_3.java deleted file mode 100644 index 2f986fb9160c12237500c864ffebb6464570c7b4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpeq.jm; - -public class T_if_acmpeq_3 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_4.j deleted file mode 100644 index 3541259d25b3d68a192042ce0be7ef95d43b9a74..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_4.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpeq_4.java -.class public dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - iconst_1 - - if_acmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_4.java deleted file mode 100644 index 995a1985b52e56fbec6193a8aae25eefc93a9b1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpeq.jm; - -public class T_if_acmpeq_4 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.cfh deleted file mode 100644 index 657c425e8317ca51c958a8ebbd225edee87861ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 42, h: 0002: utf8{"(Ljava/lang/String;Ljava/lang/String;)Z"} - // . . ' ( L j a v a / l a n g / S t r i n g ; L j a v a / l a n g / S t r i n g ; ) Z - 01 00 27 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 29 5a - // parsed:, offset 57, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 76, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 89, len 47, h: 0005: utf8{"dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ a c m p e q / j m / T _ i f _ a c m p e q _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 61 63 6d 70 65 71 2f 6a 6d 2f 54 5f 69 66 5f 61 63 6d 70 65 71 5f 35 - // parsed:, offset 136, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 145, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 151, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0a - // parsed:, offset 156, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 163, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 169, len 3, h: 000b: type{dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_5} - // . . . - 07 00 05 - // parsed:, offset 172, len 21, h: 000c: utf8{"T_if_acmpeq_5.java"} - // . . . T _ i f _ a c m p e q _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 61 63 6d 70 65 71 5f 35 2e 6a 61 76 61 - // parsed:, offset 193, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 196, len 0, h: end constant_pool -// parsed:, offset 196, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 198, len 2, h: this_class: type{dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_5} -// . . - 00 0b -// parsed:, offset 200, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 202, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 204, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 206, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 208, len:76,desc: ()V -// parsed:, offset 208, len 0, h: methods[0]: - // parsed:, offset 208, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 210, len 2, h: name: - // . . - 00 06 - // parsed:, offset 212, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 214, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 218, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 222, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 224, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 226, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 235, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 237, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 239, len 0, h: end attributes[0] -// parsed:, offset 239, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 239, len:45,desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 239, len 0, h: methods[1]: - // parsed:, offset 239, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 241, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 243, len 2, h: descriptor: (Ljava/lang/String;Ljava/lang/String;)Z - // . . - 00 02 - // parsed:, offset 245, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 247, len 0, h: attributes[0]: - // parsed:, offset 247, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 249, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 253, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 255, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 257, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: aload_2 // 02 - // , - 2c - // parsed:, offset 2, len 3, h: 0002: if_acmpeq 0007 - // . . . -//@mod a5 00 05 - a5 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_1 // #+01 - // . - 04 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 270, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 272, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 274, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 276, len 0, h: attributes[0]: - // parsed:, offset 276, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 278, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 282, len 2, h: source: utf8{"T_if_acmpeq_5.java"} - // . . - 00 0c -// parsed:, offset 284, len 0, h: end attributes[0] -// parsed:, offset 284, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.j deleted file mode 100644 index 12d77dfa66c14c06cf3332c025c6ed2e15b1a709..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpeq_5.java -.class public dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - aload_2 - if_acmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.java deleted file mode 100644 index ec022a544c28cace49c9448b9db0a0795617feb2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpeq.jm; - -public class T_if_acmpeq_5 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.cfh deleted file mode 100644 index 3b400e22b9c59512c63b112b36cd7eb17841c6a0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.cfh +++ /dev/null @@ -1,205 +0,0 @@ -//@class:dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 42, h: 0002: utf8{"(Ljava/lang/String;Ljava/lang/String;)Z"} - // . . ' ( L j a v a / l a n g / S t r i n g ; L j a v a / l a n g / S t r i n g ; ) Z - 01 00 27 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 29 5a - // parsed:, offset 57, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 76, len 47, h: 0004: utf8{"dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ a c m p e q / j m / T _ i f _ a c m p e q _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 61 63 6d 70 65 71 2f 6a 6d 2f 54 5f 69 66 5f 61 63 6d 70 65 71 5f 36 - // parsed:, offset 123, len 13, h: 0005: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 136, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 145, len 21, h: 0007: utf8{"T_if_acmpeq_6.java"} - // . . . T _ i f _ a c m p e q _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 61 63 6d 70 65 71 5f 36 2e 6a 61 76 61 - // parsed:, offset 166, len 6, h: 0008: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 172, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 06 00 0b - // parsed:, offset 177, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 184, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 190, len 3, h: 000c: type{dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_6} - // . . . - 07 00 04 - // parsed:, offset 193, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 196, len 0, h: end constant_pool -// parsed:, offset 196, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 198, len 2, h: this_class: type{dxc.junit.opcodes.if_acmpeq.jm.T_if_acmpeq_6} -// . . - 00 0c -// parsed:, offset 200, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 202, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 204, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 206, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 208, len:79,desc: ()V -// parsed:, offset 208, len 0, h: methods[0]: - // parsed:, offset 208, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 210, len 2, h: name: - // . . - 00 06 - // parsed:, offset 212, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 214, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 218, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 222, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 224, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 226, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 235, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 237, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 239, len 0, h: end attributes[0] -// parsed:, offset 239, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 239, len:48,desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 239, len 0, h: methods[1]: - // parsed:, offset 239, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 241, len 2, h: name: run - // . . - 00 08 - // parsed:, offset 243, len 2, h: descriptor: (Ljava/lang/String;Ljava/lang/String;)Z - // . . - 00 02 - // parsed:, offset 245, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 247, len 0, h: attributes[0]: - // parsed:, offset 247, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 249, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 253, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 255, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 257, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: aload_2 // 02 - // , - 2c - // parsed:, offset 2, len 3, h: 0002: if_acmpeq 0008 - // . . . -//@mod a5 00 05 - a5 00 06 - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . -//@mod 00 - 02 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 273, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 275, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 277, len 0, h: end attributes[0] -// parsed:, offset 277, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 277, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 279, len 0, h: attributes[0]: - // parsed:, offset 279, len 2, h: name: SourceFile - // . . - 00 05 - // parsed:, offset 281, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 285, len 2, h: source: utf8{"T_if_acmpeq_6.java"} - // . . - 00 07 -// parsed:, offset 287, len 0, h: end attributes[0] -// parsed:, offset 287, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.j deleted file mode 100644 index 855ba59a713adc364e0355d3c95f8f519aa524f6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpeq_6.java -.class public dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 - aload_1 - aload_2 - if_acmpeq Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop - ; iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.java deleted file mode 100644 index 3e5bb9006cf091c379ffd366c6e6c638556ed433..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpeq/jm/T_if_acmpeq_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpeq.jm; - -public class T_if_acmpeq_6 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/Test_if_acmpne.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/Test_if_acmpne.java deleted file mode 100644 index 012742df7d827076f13d9de2ea4b4fb64fefb683..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/Test_if_acmpne.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpne; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_1; - -public class Test_if_acmpne extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_if_acmpne_1 t = new T_if_acmpne_1(); - String a = "a"; - String b = "b"; - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(a, b)); - } - - /** - * @title normal test - */ - public void testN2() { - T_if_acmpne_1 t = new T_if_acmpne_1(); - String a = "a"; - assertEquals(1, t.run(a, a)); - } - - /** - * @title Compare with null - */ - public void testB1() { - T_if_acmpne_1 t = new T_if_acmpne_1(); - String a = "a"; - assertEquals(1234, t.run(a, null)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, - * integer - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_1.j deleted file mode 100644 index b500b9161f5ed1f5136c47fa82367d90efcd2704..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpne_1.java -.class public dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(Ljava/lang/String;Ljava/lang/String;)I - .limit stack 2 - .limit locals 3 - - aload_1 - aload_2 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - sipush 1234 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_1.java deleted file mode 100644 index 4485e6fe9c207c4a83502ba6687078d827de247b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpne.jm; - -public class T_if_acmpne_1 { - - public int run(String a, String b) { - return a == b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_2.j deleted file mode 100644 index 1e84a6e498913bfb6894ec65efa66bb146d7f69d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpne_2.java -.class public dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 - - aload_1 -; aload_2 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_2.java deleted file mode 100644 index 52b734c143a7161f8f3b70d057af686c5b09d7f8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpne.jm; - -public class T_if_acmpne_2 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_3.j deleted file mode 100644 index 48c32da114812aa8fa28e0e43fd88cf2a8177669..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_3.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpne_3.java -.class public dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 4 - .limit locals 3 - - aload_1 - dconst_1 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_3.java deleted file mode 100644 index 609e0ad14013d3ec208eb04c0e052ea6cc84c432..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpne.jm; - -public class T_if_acmpne_3 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_4.j deleted file mode 100644 index b16748144695fb9c3eaa4b515446a50da619ed4f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_4.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpne_4.java -.class public dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - iconst_1 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_4.java deleted file mode 100644 index 1abd87a341beafadd19bcc97a4a9aaf2449416a0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpne.jm; - -public class T_if_acmpne_4 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.cfh deleted file mode 100644 index 85dfc7a8f8e93aebc36b3f5a850918db50a9c0b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 47, h: 0001: utf8{"dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ a c m p n e / j m / T _ i f _ a c m p n e _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 61 63 6d 70 6e 65 2f 6a 6d 2f 54 5f 69 66 5f 61 63 6d 70 6e 65 5f 35 - // parsed:, offset 57, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 62, len 42, h: 0003: utf8{"(Ljava/lang/String;Ljava/lang/String;)Z"} - // . . ' ( L j a v a / l a n g / S t r i n g ; L j a v a / l a n g / S t r i n g ; ) Z - 01 00 27 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 29 5a - // parsed:, offset 104, len 19, h: 0004: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 123, len 13, h: 0005: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 136, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 145, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 151, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0a - // parsed:, offset 156, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 163, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 169, len 3, h: 000b: type{dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_5} - // . . . - 07 00 01 - // parsed:, offset 172, len 21, h: 000c: utf8{"T_if_acmpne_5.java"} - // . . . T _ i f _ a c m p n e _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 61 63 6d 70 6e 65 5f 35 2e 6a 61 76 61 - // parsed:, offset 193, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 04 -// parsed:, offset 196, len 0, h: end constant_pool -// parsed:, offset 196, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 198, len 2, h: this_class: type{dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_5} -// . . - 00 0b -// parsed:, offset 200, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 202, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 204, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 206, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 208, len:76,desc: ()V -// parsed:, offset 208, len 0, h: methods[0]: - // parsed:, offset 208, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 210, len 2, h: name: - // . . - 00 06 - // parsed:, offset 212, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 214, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 218, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 222, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 224, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 226, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 235, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 237, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 239, len 0, h: end attributes[0] -// parsed:, offset 239, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 239, len:45,desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 239, len 0, h: methods[1]: - // parsed:, offset 239, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 241, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 243, len 2, h: descriptor: (Ljava/lang/String;Ljava/lang/String;)Z - // . . - 00 03 - // parsed:, offset 245, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 247, len 0, h: attributes[0]: - // parsed:, offset 247, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 249, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 253, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 255, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 257, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: aload_2 // 02 - // , - 2c - // parsed:, offset 2, len 3, h: 0002: if_acmpne 00ff - // . . . -//@mod a6 00 05 - a6 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_1 // #+01 - // . - 04 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_0 // #+00 - // . - 03 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 270, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 272, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 274, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 276, len 0, h: attributes[0]: - // parsed:, offset 276, len 2, h: name: SourceFile - // . . - 00 05 - // parsed:, offset 278, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 282, len 2, h: source: utf8{"T_if_acmpne_5.java"} - // . . - 00 0c -// parsed:, offset 284, len 0, h: end attributes[0] -// parsed:, offset 284, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.j deleted file mode 100644 index 46a46dd4b11b40be9c6220ee3d8e28e1a8373f8b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpne_5.java -.class public dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - aload_2 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.java deleted file mode 100644 index 1eb6ef6c20ace7bab6c45631be00d5e7a574de4c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpne.jm; - -public class T_if_acmpne_5 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.cfh deleted file mode 100644 index ffe5bbf6e923d8221f5dfb710d4f62d8e4d2c485..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.cfh +++ /dev/null @@ -1,204 +0,0 @@ -//@class:dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 08 - // parsed:, offset 15, len 42, h: 0002: utf8{"(Ljava/lang/String;Ljava/lang/String;)Z"} - // . . ' ( L j a v a / l a n g / S t r i n g ; L j a v a / l a n g / S t r i n g ; ) Z - 01 00 27 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b 29 5a - // parsed:, offset 57, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 76, len 21, h: 0004: utf8{"T_if_acmpne_6.java"} - // . . . T _ i f _ a c m p n e _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 61 63 6d 70 6e 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 97, len 13, h: 0005: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 110, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 119, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 125, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0a - // parsed:, offset 130, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 137, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 143, len 3, h: 000b: type{dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_6} - // . . . - 07 00 0d - // parsed:, offset 146, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 03 - // parsed:, offset 149, len 47, h: 000d: utf8{"dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ a c m p n e / j m / T _ i f _ a c m p n e _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 61 63 6d 70 6e 65 2f 6a 6d 2f 54 5f 69 66 5f 61 63 6d 70 6e 65 5f 36 -// parsed:, offset 196, len 0, h: end constant_pool -// parsed:, offset 196, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 198, len 2, h: this_class: type{dxc.junit.opcodes.if_acmpne.jm.T_if_acmpne_6} -// . . - 00 0b -// parsed:, offset 200, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 202, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 204, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 206, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 208, len:79,desc: ()V -// parsed:, offset 208, len 0, h: methods[0]: - // parsed:, offset 208, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 210, len 2, h: name: - // . . - 00 06 - // parsed:, offset 212, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 214, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 218, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 222, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 224, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 226, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 235, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 237, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 239, len 0, h: end attributes[0] -// parsed:, offset 239, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 239, len:48,desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 239, len 0, h: methods[1]: - // parsed:, offset 239, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 241, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 243, len 2, h: descriptor: (Ljava/lang/String;Ljava/lang/String;)Z - // . . - 00 02 - // parsed:, offset 245, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 247, len 0, h: attributes[0]: - // parsed:, offset 247, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 249, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 253, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 255, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 257, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: aload_2 // 02 - // , - 2c - // parsed:, offset 2, len 3, h: 0002: if_acmpne 0008 - // . . . -//@mod a6 00 05 - a6 00 06 - // parsed:, offset 5, len 1, h: 0005: iconst_1 // #+01 - // . - 04 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . - 00 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 273, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 275, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 277, len 0, h: end attributes[0] -// parsed:, offset 277, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/String;Ljava/lang/String;)Z -// parsed:, offset 277, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 279, len 0, h: attributes[0]: - // parsed:, offset 279, len 2, h: name: SourceFile - // . . - 00 05 - // parsed:, offset 281, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 285, len 2, h: source: utf8{"T_if_acmpne_6.java"} - // . . - 00 04 -// parsed:, offset 287, len 0, h: end attributes[0] -// parsed:, offset 287, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.j deleted file mode 100644 index 0ff4d66968454939d4fcd31f752125fafc9dae5e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_acmpne_6.java -.class public dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/String;Ljava/lang/String;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - aload_2 - if_acmpne Label0 - iconst_1 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.java deleted file mode 100644 index 24fc8f3787d375ac84dc1bdbb88cf0dc620002cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_acmpne/jm/T_if_acmpne_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_acmpne.jm; - -public class T_if_acmpne_6 { - - public boolean run(String a, String b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/Test_if_icmpeq.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/Test_if_icmpeq.java deleted file mode 100644 index b538559762c5c7b6c64a25a30781c205fd80af3a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/Test_if_icmpeq.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_1; - -public class Test_if_icmpeq extends DxTestCase { - - /** - * @title Arguments = 5, 6 - */ - public void testN1() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(5, 6)); - } - - /** - * @title Arguments = 0x0f0e0d0c, 0x0f0e0d0c - */ - public void testN2() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - assertEquals(1, t.run(0x0f0e0d0c, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 5, -5 - */ - public void testN3() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - assertEquals(1234, t.run(5, -5)); - } - - /** - * @title Arguments = 0x01001234, 0x1234 - */ - public void testN4() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - assertEquals(1234, t.run(0x01001234, 0x1234)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB1() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - assertEquals(1, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MIN_VALUE - */ - public void testB2() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - assertEquals(1, t.run(Integer.MIN_VALUE, Integer.MIN_VALUE)); - } - - /** - * @title Arguments = 0, 1234567 - */ - public void testB3() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - assertEquals(1234, t.run(0, 1234567)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB4() { - T_if_icmpeq_1 t = new T_if_icmpeq_1(); - assertEquals(1, t.run(0, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_1.j deleted file mode 100644 index d15a15526a5ca0070583bb85f0d5b6eb99601239..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpeq_1.java -.class public dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(II)I - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - - if_icmpeq Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_1.java deleted file mode 100644 index 392360e8cb104d83a386cb6c4bd1fb4f50431503..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq.jm; - -public class T_if_icmpeq_1 { - - public int run(int a, int b) { - return a == b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_2.j deleted file mode 100644 index ca05c70675d91787d87d47bce6289b62d847bf21..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpeq_2.java -.class public dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 -; iload_2 - if_icmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_2.java deleted file mode 100644 index a4379760640bd42f74e060230c7152ec2435ffe5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq.jm; - -public class T_if_icmpeq_2 { - - public boolean run(int a, int b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_3.j deleted file mode 100644 index fc9e4aa510d67e2af87fce8d5faf31a4253a2866..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpeq_3.java -.class public dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 4 - .limit locals 3 - - iload_1 - dconst_1 - if_icmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_3.java deleted file mode 100644 index bc636ce11065f579a360acb9555f4132519fc24c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq.jm; - -public class T_if_icmpeq_3 { - - public boolean run(int a, int b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_4.j deleted file mode 100644 index 98266e83e8bc3456f8041fd6894af015dabb495d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpeq_4.java -.class public dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - iload_1 - ;iload_2 - - if_icmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_4.java deleted file mode 100644 index 4923485b2e1d39e003f5c47695a615ea82233756..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq.jm; - -public class T_if_icmpeq_4 { - - public boolean run(int a, int b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.cfh deleted file mode 100644 index 00dbe44e2e76b90186812fc346c119659e033fde..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 3, h: 0001: type{dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_5} - // . . . - 07 00 0b - // parsed:, offset 13, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 18, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 37, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 50, len 8, h: 0005: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 58, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 67, len 21, h: 0007: utf8{"T_if_icmpeq_5.java"} - // . . . T _ i f _ i c m p e q _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 65 71 5f 35 2e 6a 61 76 61 - // parsed:, offset 88, len 6, h: 0008: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 94, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 06 00 0c - // parsed:, offset 99, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 106, len 47, h: 000b: utf8{"dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p e q / j m / T _ i f _ i c m p e q _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 65 71 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 65 71 5f 35 - // parsed:, offset 153, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_5} -// . . - 00 01 -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:76,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 06 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:45,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 08 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 05 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 215, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpeq 0007 - // . . . -//@mod 9f 00 05 - 9f 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_1 // #+01 - // . - 04 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 236, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 238, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 240, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 244, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 248, len 2, h: source: utf8{"T_if_icmpeq_5.java"} - // . . - 00 07 -// parsed:, offset 250, len 0, h: end attributes[0] -// parsed:, offset 250, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.j deleted file mode 100644 index add33fea87a0a465c31383a7f9177d018d5fe195..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpeq_5.java -.class public dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.java deleted file mode 100644 index c72027437bd5feb83b5df67cf03938c5235887f5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq.jm; - -public class T_if_icmpeq_5 { - - public boolean run(int a, int b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.cfh deleted file mode 100644 index d1d6b8c230d0589c3a504d7e916cfad2d3114970..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.cfh +++ /dev/null @@ -1,204 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 8, h: 0004: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 55, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 64, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 70, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 75, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 82, len 47, h: 0009: utf8{"dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p e q / j m / T _ i f _ i c m p e q _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 65 71 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 65 71 5f 36 - // parsed:, offset 129, len 21, h: 000a: utf8{"T_if_icmpeq_6.java"} - // . . . T _ i f _ i c m p e q _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 65 71 5f 36 2e 6a 61 76 61 - // parsed:, offset 150, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 156, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 159, len 3, h: 000d: type{dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_6} - // . . . - 07 00 09 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpeq.jm.T_if_icmpeq_6} -// . . - 00 0d -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:79,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 05 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:48,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 04 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 215, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpeq 0008 - // . . . -//@mod 9f 00 05 - 9f 00 06 - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . - 00 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 239, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 241, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 243, len 0, h: end attributes[0] -// parsed:, offset 243, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 243, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 245, len 0, h: attributes[0]: - // parsed:, offset 245, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 247, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 251, len 2, h: source: utf8{"T_if_icmpeq_6.java"} - // . . - 00 0a -// parsed:, offset 253, len 0, h: end attributes[0] -// parsed:, offset 253, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.j deleted file mode 100644 index 2b6a7b8293025e7573740899ad9875f552b9270e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpeq_6.java -.class public dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpeq Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.java deleted file mode 100644 index ee004b7056d9c9e16c86c220c9bde9fd73f1c7cf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq.jm; - -public class T_if_icmpeq_6 { - - public boolean run(int a, int b) { - return a == b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_7.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_7.j deleted file mode 100644 index bee1c6c6fd9e11c9e4c719dfec539a8f6cb5e364..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_7.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpeq_7.java -.class public dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - aload_0 - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_7.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_7.java deleted file mode 100644 index 18aaaf96f68da0c3a067412076e88249ec2d0f30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpeq/jm/T_if_icmpeq_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpeq.jm; - -public class T_if_icmpeq_7 { - - public boolean run(int a, int b) { - return a == b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/Test_if_icmpge.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/Test_if_icmpge.java deleted file mode 100644 index ab38187085d156f6ec04b9e9bf13163d712b49ed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/Test_if_icmpge.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_1; - -public class Test_if_icmpge extends DxTestCase { - - /** - * @title Arguments = 5, 6 - */ - public void testN1() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(5, 6)); - } - - /** - * @title Arguments = 0x0f0e0d0c, 0x0f0e0d0c - */ - public void testN2() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1, t.run(0x0f0e0d0c, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 5, -5 - */ - public void testN3() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1, t.run(5, -5)); - } - - /** - * @title Arguments = 0x0f0e0d0d, 0x0f0e0d0c - */ - public void testN4() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1, t.run(0x0f0e0d0d, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 0x1234, 0x01001234 - */ - public void testN5() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1234, t.run(0x1234, 0x01001234)); - } - - /** - * @title Arguments = -5, 5 - */ - public void testN6() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1234, t.run(-5, 5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB1() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MIN_VALUE - */ - public void testB2() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1, t.run(Integer.MIN_VALUE, Integer.MIN_VALUE)); - } - - /** - * @title Arguments = 1234567, 0 - */ - public void testB3() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1, t.run(1234567, 0)); - } - - /** - * @title Arguments = 0, 1234567 - */ - public void testB4() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1234, t.run(0, 1234567)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_if_icmpge_1 t = new T_if_icmpge_1(); - assertEquals(1, t.run(0, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_1.j deleted file mode 100644 index e28391577b62d0e45c414de10a5e3e0c9d28e4fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_1.java -.class public dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(II)I - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - - if_icmpge Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_1.java deleted file mode 100644 index 719b6d0f81cc6fc7d00b58012999eb9157a71ac3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge.jm; - -public class T_if_icmpge_1 { - - public int run(int a, int b) { - return a >= b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_2.j deleted file mode 100644 index 3c2e871e4a81e001ad7ee5219555d4d6065acfd4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_2.java -.class public dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 -; iload_2 - if_icmpge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_2.java deleted file mode 100644 index 175e2769add35cd170f1cae3cc6132cdd9a4006d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge.jm; - -public class T_if_icmpge_2 { - - public boolean run(int a, int b) { - return a >= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_3.j deleted file mode 100644 index 7f4b5150d6bf707f4bc721e989ac9be77a9299fe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_3.java -.class public dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 4 - .limit locals 3 - - iload_1 -; iload_2 - dconst_1 - if_icmpge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_3.java deleted file mode 100644 index 69addc3baea718c2d772e9720b557236b73231bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge.jm; - -public class T_if_icmpge_3 { - - public boolean run(int a, int b) { - return a >= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_4.j deleted file mode 100644 index f8a9ddd2462c4edb2bc0323a08636e21d79d3ae6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_4.java -.class public dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - iload_1 - ;iload_2 - - if_icmpge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_4.java deleted file mode 100644 index 8347b6c66c815f01a730f6ead5250621d0bd4e54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge.jm; - -public class T_if_icmpge_4 { - - public boolean run(int a, int b) { - return a >= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.cfh deleted file mode 100644 index 16399c0249394b7e013f004c15ec9ecad7ce7170..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 8, h: 0004: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 55, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 64, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 70, len 21, h: 0007: utf8{"T_if_icmpge_5.java"} - // . . . T _ i f _ i c m p g e _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 67 65 5f 35 2e 6a 61 76 61 - // parsed:, offset 91, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 96, len 3, h: 0009: type{dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_5} - // . . . - 07 00 0b - // parsed:, offset 99, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 106, len 47, h: 000b: utf8{"dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p g e / j m / T _ i f _ i c m p g e _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 67 65 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 67 65 5f 35 - // parsed:, offset 153, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_5} -// . . - 00 09 -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:76,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 05 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:45,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 04 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 215, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpge 0007 - // . . . -//@mod a2 00 05 - a2 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_1 // #+01 - // . - 04 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 236, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 238, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 240, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 244, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 248, len 2, h: source: utf8{"T_if_icmpge_5.java"} - // . . - 00 07 -// parsed:, offset 250, len 0, h: end attributes[0] -// parsed:, offset 250, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.j deleted file mode 100644 index 30dbd29d919ce13326046a76f72f2f8febaac903..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_5.java -.class public dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.java deleted file mode 100644 index 4ea2d240b3797472b71a66e5400aff79a32e3805..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge.jm; - -public class T_if_icmpge_5 { - - public boolean run(int a, int b) { - return a >= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.cfh deleted file mode 100644 index 4f67cf3405607e03166035ffa0de4f947f7a37b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.cfh +++ /dev/null @@ -1,204 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 8, h: 0004: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 55, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 64, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 70, len 3, h: 0007: type{dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_6} - // . . . - 07 00 0a - // parsed:, offset 73, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 78, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 85, len 47, h: 000a: utf8{"dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p g e / j m / T _ i f _ i c m p g e _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 67 65 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 67 65 5f 36 - // parsed:, offset 132, len 21, h: 000b: utf8{"T_if_icmpge_6.java"} - // . . . T _ i f _ i c m p g e _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 67 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 153, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpge.jm.T_if_icmpge_6} -// . . - 00 07 -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:79,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 05 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:48,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 04 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 215, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpge 0008 - // . . . -//@mod a2 00 05 - a2 00 06 - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . - 00 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 239, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 241, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 243, len 0, h: end attributes[0] -// parsed:, offset 243, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 243, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 245, len 0, h: attributes[0]: - // parsed:, offset 245, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 247, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 251, len 2, h: source: utf8{"T_if_icmpge_6.java"} - // . . - 00 0b -// parsed:, offset 253, len 0, h: end attributes[0] -// parsed:, offset 253, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.j deleted file mode 100644 index 35475dd06bafd79925384975e66f1eecf0008610..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_6.java -.class public dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpge Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.java deleted file mode 100644 index 3aafaba8ca9ec19930f053c92596178a23ce537c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge.jm; - -public class T_if_icmpge_6 { - - public boolean run(int a, int b) { - return a >= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_7.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_7.j deleted file mode 100644 index cf4e418f44a630bc4decbb140b63f5b716193543..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_7.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_7.java -.class public dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - if_icmplt Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_7.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_7.java deleted file mode 100644 index 8c98983bb36921cefb2767c74952764eee855cf6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpge/jm/T_if_icmpge_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpge.jm; - -public class T_if_icmpge_7 { - - public boolean run(int a, int b) { - return a >= b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/Test_if_icmpgt.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/Test_if_icmpgt.java deleted file mode 100644 index dd19bd97f69934259aae5cdef6855a592ce55ee6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/Test_if_icmpgt.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_1; - -public class Test_if_icmpgt extends DxTestCase { - - /** - * @title Arguments = 5, 6 - */ - public void testN1() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(5, 6)); - } - - /** - * @title Arguments = 0x0f0e0d0c, 0x0f0e0d0c - */ - public void testN2() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1234, t.run(0x0f0e0d0c, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 5, -5 - */ - public void testN3() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1, t.run(5, -5)); - } - - /** - * @title Arguments = 0x0f0e0d0d, 0x0f0e0d0c - */ - public void testN4() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1, t.run(0x0f0e0d0d, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 0x1234, 0x01001234 - */ - public void testN5() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1234, t.run(0x1234, 0x01001234)); - } - - /** - * @title Arguments = -5, 5 - */ - public void testN6() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1234, t.run(-5, 5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB1() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1234, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MIN_VALUE - */ - public void testB2() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1234, t.run(Integer.MIN_VALUE, Integer.MIN_VALUE)); - } - - /** - * @title Arguments = 1234567, 0 - */ - public void testB3() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1, t.run(1234567, 0)); - } - - /** - * @title Arguments = 0, 1234567 - */ - public void testB4() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1234, t.run(0, 1234567)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_if_icmpgt_1 t = new T_if_icmpgt_1(); - assertEquals(1234, t.run(0, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_1.j deleted file mode 100644 index 8e5abdcb29d815306e7171600cf5aa430616b963..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpgt_1.java -.class public dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(II)I - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - - if_icmpgt Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_1.java deleted file mode 100644 index 4cb1f12ebeeca40a5bb20e73ff0ac821d061a958..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt.jm; - -public class T_if_icmpgt_1 { - - public int run(int a, int b) { - return a > b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_2.j deleted file mode 100644 index 75f800037c545345079abdd9603f2987f2f7c041..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpgt_2.java -.class public dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 -; iload_2 - if_icmpgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_2.java deleted file mode 100644 index bacaba52d7e49aba1c9538194f882217a6a6a19c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt.jm; - -public class T_if_icmpgt_2 { - - public boolean run(int a, int b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_3.j deleted file mode 100644 index 0fb856734cca2ce51b1fbce81f438310b982626d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpgt_3.java -.class public dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 4 - .limit locals 3 - - iload_1 -; iload_2 - dconst_1 - if_icmpgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_3.java deleted file mode 100644 index 2791fc956d66d476e1b625e0c6a99bd37bfcf23b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt.jm; - -public class T_if_icmpgt_3 { - - public boolean run(int a, int b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_4.j deleted file mode 100644 index ae3796d7c6e9a9833a65414c6c2139502d836a2d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpgt_4.java -.class public dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - iload_1 - ;iload_2 - - if_icmpgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_4.java deleted file mode 100644 index 390bd0831d5a46b779666a95ea959727066490c6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt.jm; - -public class T_if_icmpgt_4 { - - public boolean run(int a, int b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.cfh deleted file mode 100644 index 9909d784212d209e6a210ee2fd375a0cebb000d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 47, h: 0003: utf8{"dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p g t / j m / T _ i f _ i c m p g t _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 67 74 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 67 74 5f 35 - // parsed:, offset 81, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 94, len 8, h: 0005: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 102, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 111, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 117, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0b - // parsed:, offset 122, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 129, len 21, h: 000a: utf8{"T_if_icmpgt_5.java"} - // . . . T _ i f _ i c m p g t _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 67 74 5f 35 2e 6a 61 76 61 - // parsed:, offset 150, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 156, len 3, h: 000c: type{dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_5} - // . . . - 07 00 03 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_5} -// . . - 00 0c -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:76,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 06 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:45,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 05 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 215, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpgt 0007 - // . . . -//@mod a3 00 05 - a3 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_1 // #+01 - // . - 04 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 236, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 238, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 240, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 244, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 248, len 2, h: source: utf8{"T_if_icmpgt_5.java"} - // . . - 00 0a -// parsed:, offset 250, len 0, h: end attributes[0] -// parsed:, offset 250, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.j deleted file mode 100644 index b04cb995bdf4ce36b6170e4a83a563e26744e66d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpgt_5.java -.class public dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.java deleted file mode 100644 index 74f812fc1123d812717c3efa42c1d4a12703b6fb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt.jm; - -public class T_if_icmpgt_5 { - - public boolean run(int a, int b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.cfh deleted file mode 100644 index 1b032b59ccf220df6126f7cf71ebca6b5025cee2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.cfh +++ /dev/null @@ -1,203 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 47, h: 0002: utf8{"dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p g t / j m / T _ i f _ i c m p g t _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 67 74 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 67 74 5f 36 - // parsed:, offset 62, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 81, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 94, len 8, h: 0005: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 102, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 111, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 117, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0a - // parsed:, offset 122, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 129, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 135, len 3, h: 000b: type{dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_6} - // . . . - 07 00 02 - // parsed:, offset 138, len 21, h: 000c: utf8{"T_if_icmpgt_6.java"} - // . . . T _ i f _ i c m p g t _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 67 74 5f 36 2e 6a 61 76 61 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpgt.jm.T_if_icmpgt_6} -// . . - 00 0b -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:79,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 06 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:48,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 05 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 215, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpgt 0008 - // . . . - a3 00 05 - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . - 00 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 239, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 241, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 243, len 0, h: end attributes[0] -// parsed:, offset 243, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 243, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 245, len 0, h: attributes[0]: - // parsed:, offset 245, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 247, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 251, len 2, h: source: utf8{"T_if_icmpgt_6.java"} - // . . - 00 0c -// parsed:, offset 253, len 0, h: end attributes[0] -// parsed:, offset 253, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.j deleted file mode 100644 index 118b7c1956b42227b761062502e22ed0c9af0d09..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpgt_6.java -.class public dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpgt Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.java deleted file mode 100644 index 438ed36e8685f2151414344b4e1b982b4e17820c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt.jm; - -public class T_if_icmpgt_6 { - - public boolean run(int a, int b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_7.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_7.j deleted file mode 100644 index f94e884f49fbf490437a10cad116d97274edf30c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_7.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpgt_7.java -.class public dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - if_icmple Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_7.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_7.java deleted file mode 100644 index dce8480c1dd5c4ecc7d152117d9bd5997ec919f5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpgt/jm/T_if_icmpgt_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpgt.jm; - -public class T_if_icmpgt_7 { - - public boolean run(int a, int b) { - return a > b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/Test_if_icmple.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/Test_if_icmple.java deleted file mode 100644 index 11335e34c52ecdd104db4d99605daf86b501d78a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/Test_if_icmple.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_icmple.jm.T_if_icmple_1; - -public class Test_if_icmple extends DxTestCase { - - /** - * @title Arguments = 5, 6 - */ - public void testN1() { - T_if_icmple_1 t = new T_if_icmple_1(); - - assertEquals(1, t.run(5, 6)); - } - - /** - * @title Arguments = 0x0f0e0d0c, 0x0f0e0d0c - */ - public void testN2() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1, t.run(0x0f0e0d0c, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 5, -5 - */ - public void testN3() { - T_if_icmple_1 t = new T_if_icmple_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(5, -5)); - } - - /** - * @title Arguments = 0x0f0e0d0d, 0x0f0e0d0c - */ - public void testN4() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1234, t.run(0x0f0e0d0d, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 0x1234, 0x01001234 - */ - public void testN5() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1, t.run(0x1234, 0x01001234)); - } - - /** - * @title Arguments = -5, 5 - */ - public void testN6() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1, t.run(-5, 5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB1() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MIN_VALUE - */ - public void testB2() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1, t.run(Integer.MIN_VALUE, Integer.MIN_VALUE)); - } - - /** - * @title Arguments = 1234567, 0 - */ - public void testB3() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1234, t.run(1234567, 0)); - } - - /** - * @title Arguments = 0, 1234567 - */ - public void testB4() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1, t.run(0, 1234567)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_if_icmple_1 t = new T_if_icmple_1(); - assertEquals(1, t.run(0, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_icmple.jm.T_if_icmple_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_icmple.jm.T_if_icmple_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_icmple.jm.T_if_icmple_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_icmple.jm.T_if_icmple_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_icmple.jm.T_if_icmple_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.if_icmple.jm.T_if_icmple_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_1.j deleted file mode 100644 index 14d7df0da5790729d6510540426780e649faee04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmple_1.java -.class public dxc/junit/opcodes/if_icmple/jm/T_if_icmple_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(II)I - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - - if_icmple Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_1.java deleted file mode 100644 index 21f03390fd7d5085aed7098aabb7fa3aff3210d1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple.jm; - -public class T_if_icmple_1 { - - public int run(int a, int b) { - return a <= b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_2.j deleted file mode 100644 index d4c8db7df584c079b30b163e18f39cd0767b0051..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmple_2.java -.class public dxc/junit/opcodes/if_icmple/jm/T_if_icmple_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 -; iload_2 - if_icmple Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_2.java deleted file mode 100644 index d426d439e1e3b1aee0d5424f82f87ec2578f3ef7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple.jm; - -public class T_if_icmple_2 { - - public boolean run(int a, int b) { - return a <= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_3.j deleted file mode 100644 index f2da81e6cc9a715764a7f7c9eb09a67f975c86d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmple_3.java -.class public dxc/junit/opcodes/if_icmple/jm/T_if_icmple_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 4 - .limit locals 3 - - iload_1 -; iload_2 - dconst_1 - if_icmple Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_3.java deleted file mode 100644 index 76b5458aab660aaca8acdfc9cf9840f389a891f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple.jm; - -public class T_if_icmple_3 { - - public boolean run(int a, int b) { - return a <= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_4.j deleted file mode 100644 index 1a6368b737febd67412b0b8aa749260ae30de6d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmple_4.java -.class public dxc/junit/opcodes/if_icmple/jm/T_if_icmple_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - iload_1 - ;iload_2 - - if_icmple Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_4.java deleted file mode 100644 index b530f67b3ef4e04c84adf3259993c001b8239bc2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple.jm; - -public class T_if_icmple_4 { - - public boolean run(int a, int b) { - return a <= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.cfh deleted file mode 100644 index e83f3b0a3cbed02381b1c55ed32ad7bd54126d5e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 3, h: 0003: type{dxc.junit.opcodes.if_icmple.jm.T_if_icmple_5} - // . . . - 07 00 08 - // parsed:, offset 37, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 50, len 8, h: 0005: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 58, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 67, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 73, len 47, h: 0008: utf8{"dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p l e / j m / T _ i f _ i c m p l e _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 6c 65 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 6c 65 5f 35 - // parsed:, offset 120, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 06 00 0c - // parsed:, offset 125, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 132, len 21, h: 000b: utf8{"T_if_icmple_5.java"} - // . . . T _ i f _ i c m p l e _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 6c 65 5f 35 2e 6a 61 76 61 - // parsed:, offset 153, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmple.jm.T_if_icmple_5} -// . . - 00 03 -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:76,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 06 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:45,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 05 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 215, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmple 0007 - // . . . -//@mod a4 00 05 - a4 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_1 // #+01 - // . - 04 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 236, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 238, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 240, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 244, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 248, len 2, h: source: utf8{"T_if_icmple_5.java"} - // . . - 00 0b -// parsed:, offset 250, len 0, h: end attributes[0] -// parsed:, offset 250, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.j deleted file mode 100644 index 3aacfb3cce8334ff6c64a6e1607630a4a87ef2e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmple_5.java -.class public dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmple Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.java deleted file mode 100644 index 09a727289109c9654d5305aa608733b060f50186..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple.jm; - -public class T_if_icmple_5 { - - public boolean run(int a, int b) { - return a <= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.cfh deleted file mode 100644 index 7f734e7d5bbc06384f24ed4ad9b15550228cd9df..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.cfh +++ /dev/null @@ -1,204 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 3, h: 0002: type{dxc.junit.opcodes.if_icmple.jm.T_if_icmple_6} - // . . . - 07 00 08 - // parsed:, offset 18, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 37, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 50, len 8, h: 0005: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 58, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 67, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 73, len 47, h: 0008: utf8{"dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p l e / j m / T _ i f _ i c m p l e _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 6c 65 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 6c 65 5f 36 - // parsed:, offset 120, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 06 00 0b - // parsed:, offset 125, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 132, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 138, len 21, h: 000c: utf8{"T_if_icmple_6.java"} - // . . . T _ i f _ i c m p l e _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 6c 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmple.jm.T_if_icmple_6} -// . . - 00 02 -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:79,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 06 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:48,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 05 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 215, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmple 0008 - // . . . -//@mod a4 00 05 - a4 00 06 - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . - 00 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 239, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 241, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 243, len 0, h: end attributes[0] -// parsed:, offset 243, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 243, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 245, len 0, h: attributes[0]: - // parsed:, offset 245, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 247, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 251, len 2, h: source: utf8{"T_if_icmple_6.java"} - // . . - 00 0c -// parsed:, offset 253, len 0, h: end attributes[0] -// parsed:, offset 253, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.j deleted file mode 100644 index f8c5961ba70f5741bfced3c6a73ed483e40988a6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmple_6.java -.class public dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmple Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.java deleted file mode 100644 index 9152a6fdab5b529d2a50569e2b2d5f0d9bbc60fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple.jm; - -public class T_if_icmple_6 { - - public boolean run(int a, int b) { - return a <= b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_7.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_7.j deleted file mode 100644 index 13ebcb5eb74a5afbab05fefdf5887a50567095d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_7.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmple_7.java -.class public dxc/junit/opcodes/if_icmple/jm/T_if_icmple_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - if_icmpgt Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_7.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_7.java deleted file mode 100644 index 1080ee2a98165dba286337b13397c3712df5b789..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmple/jm/T_if_icmple_7.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmple.jm; - -public class T_if_icmple_7 { - public boolean run(int a, int b) { - return a <= b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/Test_if_icmplt.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/Test_if_icmplt.java deleted file mode 100644 index b318512bb01ea547b385ed7ecd5d3f5930c29a1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/Test_if_icmplt.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_1; - -public class Test_if_icmplt extends DxTestCase { - - /** - * @title Arguments = 5, 6 - */ - public void testN1() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1, t.run(5, 6)); - } - - /** - * @title Arguments = 0x0f0e0d0c, 0x0f0e0d0c - */ - public void testN2() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(0x0f0e0d0c, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 5, -5 - */ - public void testN3() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1234, t.run(5, -5)); - } - - /** - * @title Arguments = 0x0f0e0d0d, 0x0f0e0d0c - */ - public void testN4() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1234, t.run(0x0f0e0d0d, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 0x1234, 0x01001234 - */ - public void testN5() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1, t.run(0x1234, 0x01001234)); - } - - /** - * @title Arguments = -5, 5 - */ - public void testN6() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1, t.run(-5, 5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB1() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1234, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MIN_VALUE - */ - public void testB2() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1234, t.run(Integer.MIN_VALUE, Integer.MIN_VALUE)); - } - - /** - * @title Arguments = 1234567, 0 - */ - public void testB3() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1234, t.run(1234567, 0)); - } - - /** - * @title Arguments = 0, 1234567 - */ - public void testB4() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1, t.run(0, 1234567)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_if_icmplt_1 t = new T_if_icmplt_1(); - assertEquals(1234, t.run(0, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_1.j deleted file mode 100644 index 91b3ef6a5507c1afa156cab0cca624be398ed6e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpge_1.java -.class public dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(II)I - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - - if_icmplt Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_1.java deleted file mode 100644 index 5cf6dfa44afd7fc132de1b45acb1e892e64ea999..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt.jm; - -public class T_if_icmplt_1 { - - public int run(int a, int b) { - return a < b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_2.j deleted file mode 100644 index a2c9d4c66ef015f9b4514a8723782a90d4ff5138..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmplt_2.java -.class public dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 -; iload_2 - if_icmplt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_2.java deleted file mode 100644 index 5c557a0f9d58aedb74a2df50e3052c969ca48bb1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt.jm; - -public class T_if_icmplt_2 { - - public boolean run(int a, int b) { - return a < b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_3.j deleted file mode 100644 index 0b80fdc7d5a972e38f7bc507fe1aed3f71415637..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmplt_3.java -.class public dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 4 - .limit locals 3 - - iload_1 -; iload_2 - dconst_1 - if_icmplt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_3.java deleted file mode 100644 index 210bfdf512ed7f5a8a635df8c3ed3c4243a1f2b5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt.jm; - -public class T_if_icmplt_3 { - - public boolean run(int a, int b) { - return a < b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_4.j deleted file mode 100644 index fdf43d5f205a90273cfbfa0e194dc2965a28961f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmplt_4.java -.class public dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - iload_1 - ;iload_2 - - if_icmplt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_4.java deleted file mode 100644 index 323c06cfe97f34c29cd1c7dde843b87d1a6472e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt.jm; - -public class T_if_icmplt_4 { - - public boolean run(int a, int b) { - return a < b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.cfh deleted file mode 100644 index 96d6e1cc2a8e45b0a024d71cd5fa1591745e09d3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 8, h: 0004: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 55, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 64, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 70, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0a - // parsed:, offset 75, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 82, len 3, h: 0009: type{dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_5} - // . . . - 07 00 0b - // parsed:, offset 85, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 91, len 47, h: 000b: utf8{"dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p l t / j m / T _ i f _ i c m p l t _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 6c 74 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 6c 74 5f 35 - // parsed:, offset 138, len 21, h: 000c: utf8{"T_if_icmplt_5.java"} - // . . . T _ i f _ i c m p l t _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 6c 74 5f 35 2e 6a 61 76 61 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_5} -// . . - 00 09 -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:76,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 05 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:45,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 04 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 215, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmplt 00ff - // . . . -//@mod a1 00 05 - a1 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_1 // #+01 - // . - 04 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 236, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 238, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 240, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 244, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 248, len 2, h: source: utf8{"T_if_icmplt_5.java"} - // . . - 00 0c -// parsed:, offset 250, len 0, h: end attributes[0] -// parsed:, offset 250, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.j deleted file mode 100644 index 3a8cd469be32bcbb8167972906b820f15ddc4833..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmplt_5.java -.class public dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmplt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.java deleted file mode 100644 index 426cfbbf7fe98bd685680184d02ba9043ef5438d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt.jm; - -public class T_if_icmplt_5 { - - public boolean run(int a, int b) { - return a < b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.cfh deleted file mode 100644 index 7722c6baaf8f9f6cc491beeb1f92c1e638650c10..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.cfh +++ /dev/null @@ -1,204 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 21, h: 0003: utf8{"T_if_icmplt_6.java"} - // . . . T _ i f _ i c m p l t _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 6c 74 5f 36 2e 6a 61 76 61 - // parsed:, offset 55, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 68, len 8, h: 0005: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 76, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 85, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 91, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0b - // parsed:, offset 96, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 103, len 3, h: 000a: type{dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_6} - // . . . - 07 00 0c - // parsed:, offset 106, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 112, len 47, h: 000c: utf8{"dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p l t / j m / T _ i f _ i c m p l t _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 6c 74 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 6c 74 5f 36 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmplt.jm.T_if_icmplt_6} -// . . - 00 0a -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:79,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 06 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:48,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 05 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 215, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmplt 0008 - // . . . -//@mod a1 00 05 - a1 00 06 - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . - 00 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 239, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 241, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 243, len 0, h: end attributes[0] -// parsed:, offset 243, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 243, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 245, len 0, h: attributes[0]: - // parsed:, offset 245, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 247, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 251, len 2, h: source: utf8{"T_if_icmplt_6.java"} - // . . - 00 03 -// parsed:, offset 253, len 0, h: end attributes[0] -// parsed:, offset 253, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.j deleted file mode 100644 index e0e56f715922101d90426f69a9eb63a362100917..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmplt_6.java -.class public dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmplt Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.java deleted file mode 100644 index 8f5f94c0d37bb2c987438a4c70bc1111409effc9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt.jm; - -public class T_if_icmplt_6 { - - public boolean run(int a, int b) { - return a < b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_7.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_7.j deleted file mode 100644 index b702a2d8f7e2c55b94d3a277b0a1a7dd2538572f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_7.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmplt_7.java -.class public dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - if_icmpge Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_7.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_7.java deleted file mode 100644 index b3cbb724e15bbf1fa8b6e8ed68c0d36bd6c2c716..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmplt/jm/T_if_icmplt_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmplt.jm; - -public class T_if_icmplt_7 { - - public boolean run(int a, int b) { - return a < b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/Test_if_icmpne.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/Test_if_icmpne.java deleted file mode 100644 index db621876cf805e8ce73dfd112f18781f8b8a66d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/Test_if_icmpne.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_1; - -public class Test_if_icmpne extends DxTestCase { - - /** - * @title Arguments = 5, 6 - */ - public void testN1() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - assertEquals(1, t.run(5, 6)); - } - - /** - * @title Arguments = 0x0f0e0d0c, 0x0f0e0d0c - */ - public void testN2() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(0x0f0e0d0c, 0x0f0e0d0c)); - } - - /** - * @title Arguments = 5, -5 - */ - public void testN3() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - assertEquals(1, t.run(5, -5)); - } - - /** - * @title Arguments = 0x01001234, 0x1234 - */ - public void testN4() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - assertEquals(1, t.run(0x01001234, 0x1234)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB1() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - assertEquals(1234, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MIN_VALUE - */ - public void testB2() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - assertEquals(1234, t.run(Integer.MIN_VALUE, Integer.MIN_VALUE)); - } - - /** - * @title Arguments = 0, 1234567 - */ - public void testB3() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - assertEquals(1, t.run(0, 1234567)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB4() { - T_if_icmpne_1 t = new T_if_icmpne_1(); - assertEquals(1234, t.run(0, 0)); - } - - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_1.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_1.j deleted file mode 100644 index b5aba30394530fa36a3ea7275c49494a6f195ce6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpne_1.java -.class public dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(II)I - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - - if_icmpne Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_1.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_1.java deleted file mode 100644 index ea94397c7c37550e64ed1d073f70286fe836b10a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne.jm; - -public class T_if_icmpne_1 { - - public int run(int a, int b) { - return a != b ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_2.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_2.j deleted file mode 100644 index 60a57efcfc9fd804993f11866fba053e81c007e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpne_2.java -.class public dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 -; iload_2 - if_icmpne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_2.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_2.java deleted file mode 100644 index 2d83a4a49bb32e0d1252bbff4e0b73f2e29ce511..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne.jm; - -public class T_if_icmpne_2 { - - public boolean run(int a, int b) { - return a != b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_3.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_3.j deleted file mode 100644 index eb4f44c6ef2d43978f18381b30bca416be73d130..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpne_3.java -.class public dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 4 - .limit locals 3 - - iload_1 -; iload_2 - dconst_1 - if_icmpne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_3.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_3.java deleted file mode 100644 index 2b5370243b5af26860d1816ed897022c33d811ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne.jm; - -public class T_if_icmpne_3 { - - public boolean run(int a, int b) { - return a != b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_4.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_4.j deleted file mode 100644 index 92c5f2df28135332369a003084513c410d42de28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpne_4.java -.class public dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - iload_1 - ;iload_2 - - if_icmpne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_4.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_4.java deleted file mode 100644 index beb6454c57efbb485def8e1d2983a81d94e2ded7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne.jm; - -public class T_if_icmpne_4 { - - public boolean run(int a, int b) { - return a != b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.cfh deleted file mode 100644 index f0acc92eebeed9cd67a47cdce49ae85bb5accafa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 8, h: 0004: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 55, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 64, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 70, len 21, h: 0007: utf8{"T_if_icmpne_5.java"} - // . . . T _ i f _ i c m p n e _ 5 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 6e 65 5f 35 2e 6a 61 76 61 - // parsed:, offset 91, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 96, len 47, h: 0009: utf8{"dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p n e / j m / T _ i f _ i c m p n e _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 6e 65 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 6e 65 5f 35 - // parsed:, offset 143, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 150, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 156, len 3, h: 000c: type{dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_5} - // . . . - 07 00 09 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_5} -// . . - 00 0c -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:76,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 05 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:45,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 04 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 215, len 4, h: length: 00000015 - // . . . . - 00 00 00 15 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 00000009 - // . . . . - 00 00 00 09 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpne 00ff - // . . . -//@mod a0 00 05 - a0 00 ff - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_1 // #+01 - // . - 04 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 236, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 238, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 240, len 0, h: end attributes[0] -// parsed:, offset 240, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 240, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 244, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 248, len 2, h: source: utf8{"T_if_icmpne_5.java"} - // . . - 00 07 -// parsed:, offset 250, len 0, h: end attributes[0] -// parsed:, offset 250, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.j deleted file mode 100644 index 74d20f37d936f9a308f112ac0f98a4f3ea8b0757..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpne_5.java -.class public dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.java deleted file mode 100644 index 157e7f21f5bfd88702d422e7b5bae1517dfab6bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne.jm; - -public class T_if_icmpne_5 { - - public boolean run(int a, int b) { - return a != b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.cfh deleted file mode 100644 index 1991416bdd3e23fa86e8a0ef0dd146f40e2e5a61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.cfh +++ /dev/null @@ -1,204 +0,0 @@ -//@class:dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 8, h: 0004: utf8{"(II)Z"} - // . . . ( I I ) Z - 01 00 05 28 49 49 29 5a - // parsed:, offset 55, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 64, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 70, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 75, len 47, h: 0008: utf8{"dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6"} - // . . , d x c / j u n i t / o p c o d e s / i f _ i c m p n e / j m / T _ i f _ i c m p n e _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 5f 69 63 6d 70 6e 65 2f 6a 6d 2f 54 5f 69 66 5f 69 63 6d 70 6e 65 5f 36 - // parsed:, offset 122, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 129, len 21, h: 000a: utf8{"T_if_icmpne_6.java"} - // . . . T _ i f _ i c m p n e _ 6 . j a v a - 01 00 12 54 5f 69 66 5f 69 63 6d 70 6e 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 150, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 156, len 3, h: 000c: type{dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_6} - // . . . - 07 00 08 - // parsed:, offset 159, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.if_icmpne.jm.T_if_icmpne_6} -// . . - 00 0c -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:79,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 05 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:48,desc: (II)Z -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 209, len 2, h: descriptor: (II)Z - // . . - 00 04 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 215, len 4, h: length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 223, len 4, h: code_length: 0000000c - // . . . . - 00 00 00 0c - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 3, h: 0002: if_icmpne 0008 - // . . . -//@mod a0 00 05 - a0 00 06 - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: wide - // . -//@mod 00 - c4 - // parsed:, offset 8, len 2, h: 0008: iload 01 - // . . - 15 01 - // parsed:, offset 10, len 1, h: 000a: nop - // . - 00 - // parsed:, offset 11, len 1, h: 000b: ireturn - // . - ac - // parsed:, offset 239, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 241, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 243, len 0, h: end attributes[0] -// parsed:, offset 243, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (II)Z -// parsed:, offset 243, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 245, len 0, h: attributes[0]: - // parsed:, offset 245, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 247, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 251, len 2, h: source: utf8{"T_if_icmpne_6.java"} - // . . - 00 0a -// parsed:, offset 253, len 0, h: end attributes[0] -// parsed:, offset 253, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.j deleted file mode 100644 index 2344281be9500913f7d9cf55d8820e04c3904fa9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpne_6.java -.class public dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - if_icmpne Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.java deleted file mode 100644 index c0ed691eb8843cd64258b0d17416c7319c1c9c78..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne.jm; - -public class T_if_icmpne_6 { - - public boolean run(int a, int b) { - return a != b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_7.j b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_7.j deleted file mode 100644 index b17f2de205269754a035c8f10d6bcab648bcab27..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_7.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_if_icmpne_7.java -.class public dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)Z - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - if_icmpeq Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_7.java b/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_7.java deleted file mode 100644 index 6d777cabd28d6182870307230ef90a39fb1e94f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/if_icmpne/jm/T_if_icmpne_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.if_icmpne.jm; - -public class T_if_icmpne_7 { - - public boolean run(int a, int b) { - return a != b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/Test_ifeq.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/Test_ifeq.java deleted file mode 100644 index 39270983403ff414ac3a705f20a30612883f780a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/Test_ifeq.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ifeq.jm.T_ifeq_1; - -public class Test_ifeq extends DxTestCase { - - /** - * @title Argument = 5 - */ - public void testN1() { - T_ifeq_1 t = new T_ifeq_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(5)); - } - - /** - * @title Argument = 0 - */ - public void testN2() { - T_ifeq_1 t = new T_ifeq_1(); - assertEquals(1, t.run(0)); - } - - /** - * @title Arguments = -5 - */ - public void testN3() { - T_ifeq_1 t = new T_ifeq_1(); - assertEquals(1234, t.run(-5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE - */ - public void testB1() { - T_ifeq_1 t = new T_ifeq_1(); - assertEquals(1234, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE - */ - public void testB2() { - T_ifeq_1 t = new T_ifeq_1(); - assertEquals(1234, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ifeq.jm.T_ifeq_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ifeq.jm.T_ifeq_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ifeq.jm.T_ifeq_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ifeq.jm.T_ifeq_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ifeq.jm.T_ifeq_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ifeq.jm.T_ifeq_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_1.j deleted file mode 100644 index ebbf58dbffc6a6e56d53a394a751928ed79f155f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifeq_1.java -.class public dxc/junit/opcodes/ifeq/jm/T_ifeq_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(I)I - .limit stack 2 - .limit locals 3 - - iload_1 - - ifeq Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_1.java deleted file mode 100644 index 4fbd9fe2b614807d71265e4c83cc7ab2fcf72c29..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq.jm; - -public class T_ifeq_1 { - - public int run(int a) { - return a == 0 ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_2.j deleted file mode 100644 index 55b06099cc5dd8d28f9928f82f3fe3cfec515f6a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifeq_2.java -.class public dxc/junit/opcodes/ifeq/jm/T_ifeq_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - -; iload_1 - ifeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_2.java deleted file mode 100644 index 86c487be082f9bf7c70c41bc734507d6edb863e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq.jm; - -public class T_ifeq_2 { - - public boolean run(int a) { - return a == 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_3.j deleted file mode 100644 index 0d57e2f6989d9007bce444b28141765012b675af..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifeq_3.java -.class public dxc/junit/opcodes/ifeq/jm/T_ifeq_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 4 - .limit locals 3 - -; iload_1 - dconst_1 - ifeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_3.java deleted file mode 100644 index c511d7fe49dfa775998524aa8b96e6c0d43d3bb2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq.jm; - -public class T_ifeq_3 { - - public boolean run(int a) { - return a == 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_4.j deleted file mode 100644 index 0d3cbb5e23cfe4e4dd684a5569052795da2f59f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_4.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifeq_4.java -.class public dxc/junit/opcodes/ifeq/jm/T_ifeq_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 3 - .limit locals 3 - - lconst_1 - - ifeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_4.java deleted file mode 100644 index ca0acbbdbbaa8aa35e45eb4c83ebf4535644231a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq.jm; - -public class T_ifeq_4 { - - public boolean run(int a) { - return a == 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.cfh deleted file mode 100644 index cc71d99997f0982107669819a8bd6389ce419a93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ifeq/jm/T_ifeq_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 7, h: 0005: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 63, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 69, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 74, len 37, h: 0008: utf8{"dxc/junit/opcodes/ifeq/jm/T_ifeq_5"} - // . . " d x c / j u n i t / o p c o d e s / i f e q / j m / T _ i f e q _ 5 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 65 71 2f 6a 6d 2f 54 5f 69 66 65 71 5f 35 - // parsed:, offset 111, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 118, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 124, len 3, h: 000b: type{dxc.junit.opcodes.ifeq.jm.T_ifeq_5} - // . . . - 07 00 08 - // parsed:, offset 127, len 16, h: 000c: utf8{"T_ifeq_5.java"} - // . . . T _ i f e q _ 5 . j a v a - 01 00 0d 54 5f 69 66 65 71 5f 35 2e 6a 61 76 61 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifeq.jm.T_ifeq_5} -// . . - 00 0b -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:75,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 04 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:44,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 05 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 199, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifeq 0006 - // . . . -//@mod 99 00 05 - 99 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 219, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 221, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 223, len 0, h: end attributes[0] -// parsed:, offset 223, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 223, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 225, len 0, h: attributes[0]: - // parsed:, offset 225, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 227, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 231, len 2, h: source: utf8{"T_ifeq_5.java"} - // . . - 00 0c -// parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.j deleted file mode 100644 index 004f71ce05a9004d0e209751b678f68c27efec28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifeq_5.java -.class public dxc/junit/opcodes/ifeq/jm/T_ifeq_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifeq Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.java deleted file mode 100644 index 3ed3f255bcb3327c9211aca28acdab2f49f17d8e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq.jm; - -public class T_ifeq_5 { - - public boolean run(int a) { - return a == 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.cfh deleted file mode 100644 index 32cd5c3426384a4c189ccb7bb3c27691c7527ab2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/ifeq/jm/T_ifeq_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 16, h: 0005: utf8{"T_ifeq_6.java"} - // . . . T _ i f e q _ 6 . j a v a - 01 00 0d 54 5f 69 66 65 71 5f 36 2e 6a 61 76 61 - // parsed:, offset 72, len 7, h: 0006: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 79, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 85, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 90, len 37, h: 0009: utf8{"dxc/junit/opcodes/ifeq/jm/T_ifeq_6"} - // . . " d x c / j u n i t / o p c o d e s / i f e q / j m / T _ i f e q _ 6 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 65 71 2f 6a 6d 2f 54 5f 69 66 65 71 5f 36 - // parsed:, offset 127, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 134, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 140, len 3, h: 000c: type{dxc.junit.opcodes.ifeq.jm.T_ifeq_6} - // . . . - 07 00 09 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifeq.jm.T_ifeq_6} -// . . - 00 0c -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:78,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 04 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:47,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 06 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifeq 0007 - // . . . -//@mod 99 00 05 - 99 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: wide - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 222, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 224, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 226, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 228, len 0, h: attributes[0]: - // parsed:, offset 228, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 230, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 234, len 2, h: source: utf8{"T_ifeq_6.java"} - // . . - 00 05 -// parsed:, offset 236, len 0, h: end attributes[0] -// parsed:, offset 236, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.j deleted file mode 100644 index 03b9e4990d757c19c7702d5454af6147bde3fc35..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifeq_6.java -.class public dxc/junit/opcodes/ifeq/jm/T_ifeq_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifeq Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.java deleted file mode 100644 index be5393190cc3a4a8f7902cd1ffc3145e8249c731..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq.jm; - -public class T_ifeq_6 { - - public boolean run(int a) { - return a == 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_7.j b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_7.j deleted file mode 100644 index 44eb8554d7a4e4b717836b6c8de85932393ea2a2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_7.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifeq_7.java -.class public dxc/junit/opcodes/ifeq/jm/T_ifeq_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)Z - .limit stack 1 - .limit locals 2 - - aload_0 - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_7.java b/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_7.java deleted file mode 100644 index 3bca0e14cc379765760e2c25498ebea31f829323..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifeq/jm/T_ifeq_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifeq.jm; - -public class T_ifeq_7 { - - public boolean run(int a) { - return a == 0; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/Test_ifge.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/Test_ifge.java deleted file mode 100644 index f5ce7d44a72413a0a0225396e957b4a92163c993..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/Test_ifge.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ifge.jm.T_ifge_1; - -public class Test_ifge extends DxTestCase { - - /** - * @title Argument = 5 - */ - public void testN1() { - T_ifge_1 t = new T_ifge_1(); - assertEquals(1, t.run(5)); - } - - /** - * @title Argument = 0 - */ - public void testN2() { - T_ifge_1 t = new T_ifge_1(); - assertEquals(1, t.run(0)); - } - - /** - * @title Arguments = -5 - */ - public void testN3() { - T_ifge_1 t = new T_ifge_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(-5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE - */ - public void testB1() { - T_ifge_1 t = new T_ifge_1(); - assertEquals(1, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE - */ - public void testB2() { - T_ifge_1 t = new T_ifge_1(); - assertEquals(1234, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ifge.jm.T_ifge_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ifge.jm.T_ifge_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ifge.jm.T_ifge_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ifge.jm.T_ifge_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ifge.jm.T_ifge_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ifge.jm.T_ifge_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_1.j deleted file mode 100644 index 5e1064edcc6ac25daffe99ffc200929d42260438..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifge_1.java -.class public dxc/junit/opcodes/ifge/jm/T_ifge_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(I)I - .limit stack 2 - .limit locals 3 - - iload_1 - - ifge Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_1.java deleted file mode 100644 index f7f00c4c732b36137115e84ff693cfcf10c5d53a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge.jm; - -public class T_ifge_1 { - - public int run(int a) { - return a >= 0 ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_2.j deleted file mode 100644 index 2fa1d3bf30ba5cb1f834d0190882e4afb2c10336..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifge_2.java -.class public dxc/junit/opcodes/ifge/jm/T_ifge_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - -; iload_1 - ifge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_2.java deleted file mode 100644 index 3531b63485103a3efc9cfe80d702a227bfc1131f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge.jm; - -public class T_ifge_2 { - - public boolean run(int a) { - return a >= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_3.j deleted file mode 100644 index ed463c09bfea467abdc6869cd8a6cf19bc52cf62..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifge_3.java -.class public dxc/junit/opcodes/ifge/jm/T_ifge_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 4 - .limit locals 3 - -; iload_1 - dconst_1 - ifge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_3.java deleted file mode 100644 index d41e72f9ed738d56fab721a5d629aef9cc96522b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge.jm; - -public class T_ifge_3 { - - public boolean run(int a) { - return a >= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_4.j deleted file mode 100644 index c8931a9150a35f1056502bae051cfd62f8ac6775..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_4.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifge_4.java -.class public dxc/junit/opcodes/ifge/jm/T_ifge_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 3 - .limit locals 3 - - lconst_1 -; iload_1 - - ifge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_4.java deleted file mode 100644 index c2f54c35e43f5e3ef5c9ed13cb0628bfe01ad771..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge.jm; - -public class T_ifge_4 { - - public boolean run(int a) { - return a >= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.cfh deleted file mode 100644 index 447a6d0b58e500406e316ad1a750fa068775f2b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ifge/jm/T_ifge_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 16, h: 0002: utf8{"T_ifge_5.java"} - // . . . T _ i f g e _ 5 . j a v a - 01 00 0d 54 5f 69 66 67 65 5f 35 2e 6a 61 76 61 - // parsed:, offset 31, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 50, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 63, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 72, len 7, h: 0006: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 79, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 85, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 90, len 37, h: 0009: utf8{"dxc/junit/opcodes/ifge/jm/T_ifge_5"} - // . . " d x c / j u n i t / o p c o d e s / i f g e / j m / T _ i f g e _ 5 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 67 65 2f 6a 6d 2f 54 5f 69 66 67 65 5f 35 - // parsed:, offset 127, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 134, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 140, len 3, h: 000c: type{dxc.junit.opcodes.ifge.jm.T_ifge_5} - // . . . - 07 00 09 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifge.jm.T_ifge_5} -// . . - 00 0c -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:75,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 05 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:44,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 06 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifge 00ff - // . . . -//@mod 9c 00 05 - 9c 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 219, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 221, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 223, len 0, h: end attributes[0] -// parsed:, offset 223, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 223, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 225, len 0, h: attributes[0]: - // parsed:, offset 225, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 227, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 231, len 2, h: source: utf8{"T_ifge_5.java"} - // . . - 00 02 -// parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.j deleted file mode 100644 index fa04b633e43ce19531587cfecd5e35e1a7f15c36..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifge_5.java -.class public dxc/junit/opcodes/ifge/jm/T_ifge_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifge Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.java deleted file mode 100644 index 51b8426baf27799f3cfded18afb3643d6f310d11..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge.jm; - -public class T_ifge_5 { - - public boolean run(int a) { - return a >= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.cfh deleted file mode 100644 index ed3e960e258a1a5c7b1f539978d766657818219c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/ifge/jm/T_ifge_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 7, h: 0005: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 63, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 69, len 37, h: 0007: utf8{"dxc/junit/opcodes/ifge/jm/T_ifge_6"} - // . . " d x c / j u n i t / o p c o d e s / i f g e / j m / T _ i f g e _ 6 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 67 65 2f 6a 6d 2f 54 5f 69 66 67 65 5f 36 - // parsed:, offset 106, len 16, h: 0008: utf8{"T_ifge_6.java"} - // . . . T _ i f g e _ 6 . j a v a - 01 00 0d 54 5f 69 66 67 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 122, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 127, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 134, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 140, len 3, h: 000c: type{dxc.junit.opcodes.ifge.jm.T_ifge_6} - // . . . - 07 00 07 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifge.jm.T_ifge_6} -// . . - 00 0c -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:78,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 04 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:47,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 05 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifge 0007 - // . . . -//@mod 9c 00 05 - 9c 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: wide - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 222, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 224, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 226, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 228, len 0, h: attributes[0]: - // parsed:, offset 228, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 230, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 234, len 2, h: source: utf8{"T_ifge_6.java"} - // . . - 00 08 -// parsed:, offset 236, len 0, h: end attributes[0] -// parsed:, offset 236, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.j deleted file mode 100644 index be4599c013dba6d768ba9806a479c42785c7629b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifge_6.java -.class public dxc/junit/opcodes/ifge/jm/T_ifge_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifge Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.java deleted file mode 100644 index fef5edaa1d17cb520249928e977213e4b9472ad6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge.jm; - -public class T_ifge_6 { - - public boolean run(int a) { - return a >= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_7.j b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_7.j deleted file mode 100644 index 90f73f77593c69103e5bff3391a508ab5cf527f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_7.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifge_7.java -.class public dxc/junit/opcodes/ifge/jm/T_ifge_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)Z - .limit stack 1 - .limit locals 2 - - aload_0 - iflt Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_7.java b/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_7.java deleted file mode 100644 index 045dd72232e58a413e572308d427d1f517938409..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifge/jm/T_ifge_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifge.jm; - -public class T_ifge_7 { - - public boolean run(int a) { - return a >= 0; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/Test_ifgt.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/Test_ifgt.java deleted file mode 100644 index a23c7197176d103093c439d3527ed7542b3712e3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/Test_ifgt.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ifgt.jm.T_ifgt_1; - -public class Test_ifgt extends DxTestCase { - - /** - * @title Argument = 5 - */ - public void testN1() { - T_ifgt_1 t = new T_ifgt_1(); - assertEquals(1, t.run(5)); - } - - /** - * @title Argument = 0 - */ - public void testN2() { - T_ifgt_1 t = new T_ifgt_1(); - assertEquals(1234, t.run(0)); - } - - /** - * @title Arguments = -5 - */ - public void testN3() { - T_ifgt_1 t = new T_ifgt_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(-5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE - */ - public void testB1() { - T_ifgt_1 t = new T_ifgt_1(); - assertEquals(1, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE - */ - public void testB2() { - T_ifgt_1 t = new T_ifgt_1(); - assertEquals(1234, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ifgt.jm.T_ifgt_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ifgt.jm.T_ifgt_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ifgt.jm.T_ifgt_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ifgt.jm.T_ifgt_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ifgt.jm.T_ifgt_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ifgt.jm.T_ifgt_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_1.j deleted file mode 100644 index b259343d47d0aa26f5be5c6c214fa39eedffbed1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifgt_1.java -.class public dxc/junit/opcodes/ifgt/jm/T_ifgt_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(I)I - .limit stack 2 - .limit locals 3 - - iload_1 - - ifgt Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_1.java deleted file mode 100644 index 5578ce067612b5ba0825cc39dadabfbf083d1201..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt.jm; - -public class T_ifgt_1 { - - public int run(int a) { - return a > 0 ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_2.j deleted file mode 100644 index 16cd6de740bb13f86fec8f220217e7abf0a7883c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifgt_2.java -.class public dxc/junit/opcodes/ifgt/jm/T_ifgt_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - -; iload_1 - ifgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_2.java deleted file mode 100644 index 6b130b9bd3c03889908e63354c10024ad37a98da..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt.jm; - -public class T_ifgt_2 { - - public boolean run(int a) { - return a > 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_3.j deleted file mode 100644 index 986ac0485f6523c62a2ddc5005cce79c37fafd22..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifgt_3.java -.class public dxc/junit/opcodes/ifgt/jm/T_ifgt_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 4 - .limit locals 3 - -; iload_1 - dconst_1 - ifgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_3.java deleted file mode 100644 index 3e76835d22f096111151ff72a4f4cab20d520128..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt.jm; - -public class T_ifgt_3 { - - public boolean run(int a) { - return a > 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_4.j deleted file mode 100644 index 78a8221cb05e3992e2a49e166ed25bf489882a93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_4.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifgt_4.java -.class public dxc/junit/opcodes/ifgt/jm/T_ifgt_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 3 - .limit locals 3 - - lconst_1 -; iload_1 - - ifgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_4.java deleted file mode 100644 index 5b651552f78b3660e02f71c3cb848dc42af7ba85..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt.jm; - -public class T_ifgt_4 { - - public boolean run(int a) { - return a > 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.cfh deleted file mode 100644 index 4ce7be3a72ae91bb68f2c7412d27a56f813741ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ifgt/jm/T_ifgt_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 7, h: 0005: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 63, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 69, len 37, h: 0007: utf8{"dxc/junit/opcodes/ifgt/jm/T_ifgt_5"} - // . . " d x c / j u n i t / o p c o d e s / i f g t / j m / T _ i f g t _ 5 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 67 74 2f 6a 6d 2f 54 5f 69 66 67 74 5f 35 - // parsed:, offset 106, len 16, h: 0008: utf8{"T_ifgt_5.java"} - // . . . T _ i f g t _ 5 . j a v a - 01 00 0d 54 5f 69 66 67 74 5f 35 2e 6a 61 76 61 - // parsed:, offset 122, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 127, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 134, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 140, len 3, h: 000c: type{dxc.junit.opcodes.ifgt.jm.T_ifgt_5} - // . . . - 07 00 07 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifgt.jm.T_ifgt_5} -// . . - 00 0c -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:75,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 04 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:44,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 05 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifgt 00ff - // . . . -//@mod 9d 00 05 - 9d 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 219, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 221, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 223, len 0, h: end attributes[0] -// parsed:, offset 223, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 223, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 225, len 0, h: attributes[0]: - // parsed:, offset 225, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 227, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 231, len 2, h: source: utf8{"T_ifgt_5.java"} - // . . - 00 08 -// parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.j deleted file mode 100644 index ec5cb229307bdb0634935dd45da39767c1222564..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifgt_5.java -.class public dxc/junit/opcodes/ifgt/jm/T_ifgt_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifgt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.java deleted file mode 100644 index 51539751fb0dea944ce7a907c819d068694ba955..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt.jm; - -public class T_ifgt_5 { - - public boolean run(int a) { - return a > 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.cfh deleted file mode 100644 index 0b9b93689c01844c359809305d1595bdafe98db2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/ifgt/jm/T_ifgt_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 7, h: 0005: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 63, len 37, h: 0006: utf8{"dxc/junit/opcodes/ifgt/jm/T_ifgt_6"} - // . . " d x c / j u n i t / o p c o d e s / i f g t / j m / T _ i f g t _ 6 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 67 74 2f 6a 6d 2f 54 5f 69 66 67 74 5f 36 - // parsed:, offset 100, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 106, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 04 00 0c - // parsed:, offset 111, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 118, len 16, h: 000a: utf8{"T_ifgt_6.java"} - // . . . T _ i f g t _ 6 . j a v a - 01 00 0d 54 5f 69 66 67 74 5f 36 2e 6a 61 76 61 - // parsed:, offset 134, len 3, h: 000b: type{dxc.junit.opcodes.ifgt.jm.T_ifgt_6} - // . . . - 07 00 06 - // parsed:, offset 137, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifgt.jm.T_ifgt_6} -// . . - 00 0b -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:78,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 04 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:47,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 05 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 199, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifgt 0007 - // . . . -//@mod 9d 00 05 - 9d 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: wide - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 222, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 224, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 226, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 228, len 0, h: attributes[0]: - // parsed:, offset 228, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 230, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 234, len 2, h: source: utf8{"T_ifgt_6.java"} - // . . - 00 0a -// parsed:, offset 236, len 0, h: end attributes[0] -// parsed:, offset 236, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.j deleted file mode 100644 index 80abe2d6b6688ac936d5ed66f04afd51edfb4c3a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifgt_6.java -.class public dxc/junit/opcodes/ifgt/jm/T_ifgt_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifgt Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.java deleted file mode 100644 index f56d5e09de3a1aa085685b5df93523f7bb64b687..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt.jm; - -public class T_ifgt_6 { - - public boolean run(int a) { - return a > 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_7.j b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_7.j deleted file mode 100644 index 175e0066d39abfef322126091b87a058abc3e0e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_7.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifgt_7.java -.class public dxc/junit/opcodes/ifgt/jm/T_ifgt_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)Z - .limit stack 1 - .limit locals 2 - - aload_0 - ifle Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_7.java b/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_7.java deleted file mode 100644 index 4572fbf05ebd0aa87780112792e8b0c722af8385..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifgt/jm/T_ifgt_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifgt.jm; - -public class T_ifgt_7 { - - public boolean run(int a) { - return a > 0; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/Test_ifle.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/Test_ifle.java deleted file mode 100644 index 9e722fb41d2001a33277917982e212f4a684daca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/Test_ifle.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ifle.jm.T_ifle_1; - -public class Test_ifle extends DxTestCase { - - /** - * @title Argument = 5 - */ - public void testN1() { - T_ifle_1 t = new T_ifle_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(5)); - } - - /** - * @title Argument = 0 - */ - public void testN2() { - T_ifle_1 t = new T_ifle_1(); - assertEquals(1, t.run(0)); - } - - /** - * @title Arguments = -5 - */ - public void testN3() { - T_ifle_1 t = new T_ifle_1(); - assertEquals(1, t.run(-5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE - */ - public void testB1() { - T_ifle_1 t = new T_ifle_1(); - assertEquals(1234, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE - */ - public void testB2() { - T_ifle_1 t = new T_ifle_1(); - assertEquals(1, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ifle.jm.T_ifle_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ifle.jm.T_ifle_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ifle.jm.T_ifle_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ifle.jm.T_ifle_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ifle.jm.T_ifle_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ifle.jm.T_ifle_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_1.j deleted file mode 100644 index 19942fd6ca444b6fbd4e9486b5f1b8e25b0e976e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifle_1.java -.class public dxc/junit/opcodes/ifle/jm/T_ifle_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(I)I - .limit stack 2 - .limit locals 3 - - iload_1 - - ifle Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_1.java deleted file mode 100644 index bef4888e86bd6bee7fa4537ae236c1cb0b7ab64e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle.jm; - -public class T_ifle_1 { - - public int run(int a) { - return a <= 0 ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_2.j deleted file mode 100644 index 21916f45c4370da16131164950d3ff2280a70bf9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifle_2.java -.class public dxc/junit/opcodes/ifle/jm/T_ifle_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - -; iload_1 - ifle Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_2.java deleted file mode 100644 index f5b592b784dbb906ed317546dce7809d17a234b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle.jm; - -public class T_ifle_2 { - - public boolean run(int a) { - return a <= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_3.j deleted file mode 100644 index ce3bacbaa00b1dd5a1135778e9df7418a35e2cf2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifle_3.java -.class public dxc/junit/opcodes/ifle/jm/T_ifle_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 4 - .limit locals 3 - -; iload_1 - dconst_1 - ifle Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_3.java deleted file mode 100644 index 5c5ea8afe878fba5941bac9856539ad4a1e6646c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle.jm; - -public class T_ifle_3 { - - public boolean run(int a) { - return a <= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_4.j deleted file mode 100644 index 1d09835f1dc56a56e3874b8b5c0d11b8017346b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_4.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifle_4.java -.class public dxc/junit/opcodes/ifle/jm/T_ifle_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 3 - .limit locals 3 - - lconst_1 -; iload_1 - - ifle Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_4.java deleted file mode 100644 index 14731b3874b5d95a16c59e9c1d440ce05b603ae7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle.jm; - -public class T_ifle_4 { - - public boolean run(int a) { - return a <= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.cfh deleted file mode 100644 index 1d1f66006889081376fb70c1a1511c2c430597a3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ifle/jm/T_ifle_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 3, h: 0004: type{dxc.junit.opcodes.ifle.jm.T_ifle_5} - // . . . - 07 00 0c - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 7, h: 0006: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 66, len 16, h: 0007: utf8{"T_ifle_5.java"} - // . . . T _ i f l e _ 5 . j a v a - 01 00 0d 54 5f 69 66 6c 65 5f 35 2e 6a 61 76 61 - // parsed:, offset 82, len 6, h: 0008: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 88, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 93, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 100, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 106, len 37, h: 000c: utf8{"dxc/junit/opcodes/ifle/jm/T_ifle_5"} - // . . " d x c / j u n i t / o p c o d e s / i f l e / j m / T _ i f l e _ 5 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6c 65 2f 6a 6d 2f 54 5f 69 66 6c 65 5f 35 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifle.jm.T_ifle_5} -// . . - 00 04 -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:75,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 05 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:44,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 08 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 06 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifle 00ff - // . . . -//@mod 9e 00 05 - 9e 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 219, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 221, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 223, len 0, h: end attributes[0] -// parsed:, offset 223, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 223, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 225, len 0, h: attributes[0]: - // parsed:, offset 225, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 227, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 231, len 2, h: source: utf8{"T_ifle_5.java"} - // . . - 00 07 -// parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.j deleted file mode 100644 index 8005cf847d2571654a199c5b6f5da8ba241b3cbc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifle_5.java -.class public dxc/junit/opcodes/ifle/jm/T_ifle_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifle Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.java deleted file mode 100644 index bec367815502a3b0fac46a7f758cedad59d38853..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle.jm; - -public class T_ifle_5 { - - public boolean run(int a) { - return a <= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.cfh deleted file mode 100644 index d7097b9bd80a7089a0788e5716d31dd3aec89583..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/ifle/jm/T_ifle_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 3, h: 0003: type{dxc.junit.opcodes.ifle.jm.T_ifle_6} - // . . . - 07 00 0b - // parsed:, offset 37, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 7, h: 0006: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 66, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 72, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 77, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 84, len 16, h: 000a: utf8{"T_ifle_6.java"} - // . . . T _ i f l e _ 6 . j a v a - 01 00 0d 54 5f 69 66 6c 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 100, len 37, h: 000b: utf8{"dxc/junit/opcodes/ifle/jm/T_ifle_6"} - // . . " d x c / j u n i t / o p c o d e s / i f l e / j m / T _ i f l e _ 6 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6c 65 2f 6a 6d 2f 54 5f 69 66 6c 65 5f 36 - // parsed:, offset 137, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifle.jm.T_ifle_6} -// . . - 00 03 -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:78,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 05 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:47,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 06 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 199, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifle 0007 - // . . . -//@mod 9e 00 05 - 9e 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: wide - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 222, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 224, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 226, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 228, len 0, h: attributes[0]: - // parsed:, offset 228, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 230, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 234, len 2, h: source: utf8{"T_ifle_6.java"} - // . . - 00 0a -// parsed:, offset 236, len 0, h: end attributes[0] -// parsed:, offset 236, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.j deleted file mode 100644 index e6d9d8a78b43e7b818f9146b79b6b4ef7bc0a911..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifle_6.java -.class public dxc/junit/opcodes/ifle/jm/T_ifle_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifle Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.java deleted file mode 100644 index f3abc6173f616ed14d4d84096905c3813e2000a6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle.jm; - -public class T_ifle_6 { - - public boolean run(int a) { - return a <= 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_7.j b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_7.j deleted file mode 100644 index 649773f1bc6468b56fd856d1f53fd92bfe3eb4ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_7.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifle_7.java -.class public dxc/junit/opcodes/ifle/jm/T_ifle_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)Z - .limit stack 1 - .limit locals 2 - - aload_0 - ifgt Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_7.java b/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_7.java deleted file mode 100644 index 02ca988f96931e43f92c3c4cc2230805c4ad9b6f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifle/jm/T_ifle_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifle.jm; - -public class T_ifle_7 { - - public boolean run(int a) { - return a <= 0; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/Test_iflt.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/Test_iflt.java deleted file mode 100644 index edd37e63ca180fa15fa8012834c41a75d65828f8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/Test_iflt.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iflt.jm.T_iflt_1; - -public class Test_iflt extends DxTestCase { - - /** - * @title Argument = 5 - */ - public void testN1() { - T_iflt_1 t = new T_iflt_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(5)); - } - - /** - * @title Argument = 0 - */ - public void testN2() { - T_iflt_1 t = new T_iflt_1(); - assertEquals(1234, t.run(0)); - } - - /** - * @title Arguments = -5 - */ - public void testN3() { - T_iflt_1 t = new T_iflt_1(); - assertEquals(1, t.run(-5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE - */ - public void testB1() { - T_iflt_1 t = new T_iflt_1(); - assertEquals(1234, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE - */ - public void testB2() { - T_iflt_1 t = new T_iflt_1(); - assertEquals(1, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iflt.jm.T_iflt_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iflt.jm.T_iflt_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iflt.jm.T_iflt_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iflt.jm.T_iflt_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.iflt.jm.T_iflt_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.iflt.jm.T_iflt_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_1.j deleted file mode 100644 index c10806b02529fa88810e02db4f6458e313a72ba6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iflt_1.java -.class public dxc/junit/opcodes/iflt/jm/T_iflt_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(I)I - .limit stack 2 - .limit locals 3 - - iload_1 - - iflt Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_1.java deleted file mode 100644 index 2bc2aff1a721f56da9d2f6babd2bbf0f5006945e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt.jm; - -public class T_iflt_1 { - - public int run(int a) { - return a < 0 ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_2.j deleted file mode 100644 index b9d0b3412ef518c3c729edaea9414b07335a91db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iflt_2.java -.class public dxc/junit/opcodes/iflt/jm/T_iflt_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - -; iload_1 - iflt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_2.java deleted file mode 100644 index 9f48304039a76a28c7a058acd73feac78485fc42..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt.jm; - -public class T_iflt_2 { - - public boolean run(int a) { - return a < 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_3.j deleted file mode 100644 index eec66c2f759258f43f9b929fc1dbff6d7f62e509..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iflt_3.java -.class public dxc/junit/opcodes/iflt/jm/T_iflt_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 4 - .limit locals 3 - -; iload_1 - dconst_1 - iflt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_3.java deleted file mode 100644 index a238c05c09e6d42f3d8e5fbac834fa3d2b872c6b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt.jm; - -public class T_iflt_3 { - - public boolean run(int a) { - return a < 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_4.j deleted file mode 100644 index ba405a226457ad59e410eac91f20ed7549f80aed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_4.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iflt_4.java -.class public dxc/junit/opcodes/iflt/jm/T_iflt_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 3 - .limit locals 3 - - lconst_1 -; iload_1 - - iflt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_4.java deleted file mode 100644 index 38e2c689f7f4e410e28e7e4ac6872fa01930dd8d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt.jm; - -public class T_iflt_4 { - - public boolean run(int a) { - return a < 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.cfh deleted file mode 100644 index e2301a7065d2a0fc1ace6180110859ef61cfcc61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/iflt/jm/T_iflt_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 3, h: 0003: type{dxc.junit.opcodes.iflt.jm.T_iflt_5} - // . . . - 07 00 09 - // parsed:, offset 37, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 7, h: 0006: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 66, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 72, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 77, len 37, h: 0009: utf8{"dxc/junit/opcodes/iflt/jm/T_iflt_5"} - // . . " d x c / j u n i t / o p c o d e s / i f l t / j m / T _ i f l t _ 5 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6c 74 2f 6a 6d 2f 54 5f 69 66 6c 74 5f 35 - // parsed:, offset 114, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 121, len 16, h: 000b: utf8{"T_iflt_5.java"} - // . . . T _ i f l t _ 5 . j a v a - 01 00 0d 54 5f 69 66 6c 74 5f 35 2e 6a 61 76 61 - // parsed:, offset 137, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.iflt.jm.T_iflt_5} -// . . - 00 03 -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:75,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 05 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:44,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 06 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: iflt 00ff - // . . . -//@mod 9b 00 05 - 9b 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 219, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 221, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 223, len 0, h: end attributes[0] -// parsed:, offset 223, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 223, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 225, len 0, h: attributes[0]: - // parsed:, offset 225, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 227, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 231, len 2, h: source: utf8{"T_iflt_5.java"} - // . . - 00 0b -// parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.j deleted file mode 100644 index 329d205e9f5b1583d18f4dcc8ada2a1008995f6c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iflt_5.java -.class public dxc/junit/opcodes/iflt/jm/T_iflt_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iflt Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.java deleted file mode 100644 index 519a973d5a20a5643c30ef7585057e0437aa981c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt.jm; - -public class T_iflt_5 { - - public boolean run(int a) { - return a < 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.cfh deleted file mode 100644 index ee7a8f390d836298e4117df59de91fb72cf3a60c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/iflt/jm/T_iflt_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 3, h: 0002: type{dxc.junit.opcodes.iflt.jm.T_iflt_6} - // . . . - 07 00 08 - // parsed:, offset 18, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 37, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 7, h: 0006: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 66, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 72, len 37, h: 0008: utf8{"dxc/junit/opcodes/iflt/jm/T_iflt_6"} - // . . " d x c / j u n i t / o p c o d e s / i f l t / j m / T _ i f l t _ 6 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6c 74 2f 6a 6d 2f 54 5f 69 66 6c 74 5f 36 - // parsed:, offset 109, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 114, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 121, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 127, len 16, h: 000c: utf8{"T_iflt_6.java"} - // . . . T _ i f l t _ 6 . j a v a - 01 00 0d 54 5f 69 66 6c 74 5f 36 2e 6a 61 76 61 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.iflt.jm.T_iflt_6} -// . . - 00 02 -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:78,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 05 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:47,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 06 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: iflt 0007 - // . . . -//@mod 9b 00 05 - 9b 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: wide - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 222, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 224, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 226, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 228, len 0, h: attributes[0]: - // parsed:, offset 228, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 230, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 234, len 2, h: source: utf8{"T_iflt_6.java"} - // . . - 00 0c -// parsed:, offset 236, len 0, h: end attributes[0] -// parsed:, offset 236, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.j deleted file mode 100644 index 69fa9a6ece0ff5f883a976189e09bfa625fab3ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iflt_6.java -.class public dxc/junit/opcodes/iflt/jm/T_iflt_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - iflt Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.java deleted file mode 100644 index 5d36ee13f06de34777479e11c285f88adc527820..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt.jm; - -public class T_iflt_6 { - - public boolean run(int a) { - return a < 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_7.j b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_7.j deleted file mode 100644 index 2e985e9eb6cf5c5cf6db796c3138d76af14be5c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_7.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iflt_7.java -.class public dxc/junit/opcodes/iflt/jm/T_iflt_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)Z - .limit stack 1 - .limit locals 2 - - aload_0 - ifge Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_7.java b/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_7.java deleted file mode 100644 index ecbf59524c71ed860878fde2f9ff70d25be1bf60..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iflt/jm/T_iflt_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iflt.jm; - -public class T_iflt_7 { - - public boolean run(int a) { - return a < 0; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/Test_ifne.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/Test_ifne.java deleted file mode 100644 index fc4551eafe4ec9309f5eb95cb02d7659122d29c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/Test_ifne.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ifne.jm.T_ifne_1; - -public class Test_ifne extends DxTestCase { - - /** - * @title Argument = 5 - */ - public void testN1() { - T_ifne_1 t = new T_ifne_1(); - assertEquals(1, t.run(5)); - } - - /** - * @title Argument = 0 - */ - public void testN2() { - T_ifne_1 t = new T_ifne_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(0)); - } - - /** - * @title Arguments = -5 - */ - public void testN3() { - T_ifne_1 t = new T_ifne_1(); - assertEquals(1, t.run(-5)); - } - - /** - * @title Arguments = Integer.MAX_VALUE - */ - public void testB1() { - T_ifne_1 t = new T_ifne_1(); - assertEquals(1, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MIN_VALUE - */ - public void testB2() { - T_ifne_1 t = new T_ifne_1(); - assertEquals(1, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ifne.jm.T_ifne_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ifne.jm.T_ifne_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ifne.jm.T_ifne_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ifne.jm.T_ifne_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ifne.jm.T_ifne_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ifne.jm.T_ifne_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_1.j deleted file mode 100644 index 34204a803036ac8b86028cf23d1a89ede4e54b04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_1.java -.class public dxc/junit/opcodes/ifne/jm/T_ifne_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(I)I - .limit stack 2 - .limit locals 3 - - iload_1 - - ifne Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_1.java deleted file mode 100644 index 732a1a0b3008f24abdf2ea04e0ccdf22071636d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne.jm; - -public class T_ifne_1 { - - public int run(int a) { - return a != 0 ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_2.j deleted file mode 100644 index f5c9b87c07cea9d84d66e63245e9df435246be57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_2.java -.class public dxc/junit/opcodes/ifne/jm/T_ifne_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - -; iload_1 - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_2.java deleted file mode 100644 index ae1a1d55bdbfaa74d4b30dd252a52315ff7b074a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne.jm; - -public class T_ifne_2 { - - public boolean run(int a) { - return a != 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_3.j deleted file mode 100644 index 7fb2fa95ec93c95144113d1bbe126d2a98348d87..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_3.java -.class public dxc/junit/opcodes/ifne/jm/T_ifne_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 4 - .limit locals 3 - -; iload_1 - dconst_1 - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_3.java deleted file mode 100644 index 20722fdebd9605302c25c9aff219b848d4b3ea45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne.jm; - -public class T_ifne_3 { - - public boolean run(int a) { - return a != 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_4.j deleted file mode 100644 index 5149438bb7b49e52c70e8f7c8b09d089c8e7d0e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_4.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_4.java -.class public dxc/junit/opcodes/ifne/jm/T_ifne_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 3 - .limit locals 3 - - lconst_1 -; iload_1 - - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_4.java deleted file mode 100644 index 8dd3ad5fa2153927d01d39fdef6881cc1ddb46a2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne.jm; - -public class T_ifne_4 { - - public boolean run(int a) { - return a != 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.cfh deleted file mode 100644 index d29f6ffcf216ff805eb961db848fe6f164411658..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ifne/jm/T_ifne_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 16, h: 0002: utf8{"T_ifne_5.java"} - // . . . T _ i f n e _ 5 . j a v a - 01 00 0d 54 5f 69 66 6e 65 5f 35 2e 6a 61 76 61 - // parsed:, offset 31, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 50, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 63, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 72, len 7, h: 0006: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 79, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 85, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 90, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 97, len 37, h: 000a: utf8{"dxc/junit/opcodes/ifne/jm/T_ifne_5"} - // . . " d x c / j u n i t / o p c o d e s / i f n e / j m / T _ i f n e _ 5 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6e 65 2f 6a 6d 2f 54 5f 69 66 6e 65 5f 35 - // parsed:, offset 134, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 140, len 3, h: 000c: type{dxc.junit.opcodes.ifne.jm.T_ifne_5} - // . . . - 07 00 0a - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifne.jm.T_ifne_5} -// . . - 00 0c -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:75,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 05 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:44,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 06 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 199, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifne 00ff - // . . . -//@mod 9a 00 05 - 9a 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 219, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 221, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 223, len 0, h: end attributes[0] -// parsed:, offset 223, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 223, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 225, len 0, h: attributes[0]: - // parsed:, offset 225, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 227, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 231, len 2, h: source: utf8{"T_ifne_5.java"} - // . . - 00 02 -// parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.j deleted file mode 100644 index 96b586957146e0bc97c1eeba9a941b7e96b94a48..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_5.java -.class public dxc/junit/opcodes/ifne/jm/T_ifne_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifne Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.java deleted file mode 100644 index 13dac0288e9e22bcf57b47dc9086d2957f1ba98c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne.jm; - -public class T_ifne_5 { - - public boolean run(int a) { - return a != 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.cfh deleted file mode 100644 index d1959428800b80faba42c12febc5647db9604345..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/ifne/jm/T_ifne_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 7, h: 0005: utf8{"(I)Z"} - // . . . ( I ) Z - 01 00 04 28 49 29 5a - // parsed:, offset 63, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 69, len 16, h: 0007: utf8{"T_ifne_6.java"} - // . . . T _ i f n e _ 6 . j a v a - 01 00 0d 54 5f 69 66 6e 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 85, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 90, len 37, h: 0009: utf8{"dxc/junit/opcodes/ifne/jm/T_ifne_6"} - // . . " d x c / j u n i t / o p c o d e s / i f n e / j m / T _ i f n e _ 6 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6e 65 2f 6a 6d 2f 54 5f 69 66 6e 65 5f 36 - // parsed:, offset 127, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 134, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 140, len 3, h: 000c: type{dxc.junit.opcodes.ifne.jm.T_ifne_6} - // . . . - 07 00 09 - // parsed:, offset 143, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 146, len 0, h: end constant_pool -// parsed:, offset 146, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 148, len 2, h: this_class: type{dxc.junit.opcodes.ifne.jm.T_ifne_6} -// . . - 00 0c -// parsed:, offset 150, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 152, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 156, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 158, len:78,desc: ()V -// parsed:, offset 158, len 0, h: methods[0]: - // parsed:, offset 158, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 160, len 2, h: name: - // . . - 00 04 - // parsed:, offset 162, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 164, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 166, len 0, h: attributes[0]: - // parsed:, offset 166, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 168, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 172, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 174, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 176, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 185, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 187, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 189, len 0, h: end attributes[0] -// parsed:, offset 189, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 189, len:47,desc: (I)Z -// parsed:, offset 189, len 0, h: methods[1]: - // parsed:, offset 189, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 191, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 193, len 2, h: descriptor: (I)Z - // . . - 00 05 - // parsed:, offset 195, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 197, len 0, h: attributes[0]: - // parsed:, offset 197, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 199, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 203, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 205, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 207, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 3, h: 0001: ifne 0007 - // . . . -//@mod 9a 00 05 - 9a 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: wide - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 222, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 224, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)Z -// parsed:, offset 226, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 228, len 0, h: attributes[0]: - // parsed:, offset 228, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 230, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 234, len 2, h: source: utf8{"T_ifne_6.java"} - // . . - 00 07 -// parsed:, offset 236, len 0, h: end attributes[0] -// parsed:, offset 236, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.j deleted file mode 100644 index 9ac3dfcb29eee42cd744cdf070e828282e95f292..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_6.java -.class public dxc/junit/opcodes/ifne/jm/T_ifne_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(I)Z - .limit stack 2 - .limit locals 3 - - iload_1 - ifne Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.java deleted file mode 100644 index 4c1f04a25dbbeece0ad7cf3b430d83a3f1015ce4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne.jm; - -public class T_ifne_6 { - - public boolean run(int a) { - return a != 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_7.j b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_7.j deleted file mode 100644 index 4c55236715642a2184a79f6c47b058c9b9ea72cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_7.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_7.java -.class public dxc/junit/opcodes/ifne/jm/T_ifne_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)Z - .limit stack 1 - .limit locals 2 - - aload_0 - ifeq Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_7.java b/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_7.java deleted file mode 100644 index 29af90936499d7a6b565037ca37c049f240a7129..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifne/jm/T_ifne_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifne.jm; - -public class T_ifne_7 { - - public boolean run(int a) { - return a != 0; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/Test_ifnonnull.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/Test_ifnonnull.java deleted file mode 100644 index d8b5c71cfd58c0638c83e615e9b6e21c47ba32c0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/Test_ifnonnull.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnonnull; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_1; - -public class Test_ifnonnull extends DxTestCase { - - /** - * @title Argument = this - */ - public void testN1() { - T_ifnonnull_1 t = new T_ifnonnull_1(); - assertEquals(1, t.run(this)); - } - - /** - * @title Argument = null - */ - public void testN2() { - T_ifnonnull_1 t = new T_ifnonnull_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(null)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_1.j deleted file mode 100644 index 2eb0c738ba716dc4952aed860b868d6e35822012..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_1.java -.class public dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(Ljava/lang/Object;)I - .limit stack 2 - .limit locals 3 - - aload_1 - - ifnonnull Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_1.java deleted file mode 100644 index 014b4f9dd32f29fe357840737fd5a72e8b8800ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnonnull.jm; - -public class T_ifnonnull_1 { - - public int run(Object o) { - return o != null ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_2.j deleted file mode 100644 index 813c5aaf1ab44656779a2bbf508b182bc846bf5c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnonnull_2.java -.class public dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - -; aload_1 - ifnonnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_2.java deleted file mode 100644 index 92853061584008ecd30db82f5bf793d056e9e61a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnonnull.jm; - -public class T_ifnonnull_2 { - - public boolean run(Object o) { - return o != null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_3.j deleted file mode 100644 index ab9f3eeef16ce3828acc02a4efc1fadc4a7e0e87..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnonnull_3.java -.class public dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 4 - .limit locals 3 - -; aload_1 - dconst_1 - ifnonnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_3.java deleted file mode 100644 index ae1407f2ef3b2208029e03ecc6dc2026f6ee754a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnonnull.jm; - -public class T_ifnonnull_3 { - - public boolean run(Object o) { - return o != null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_4.j deleted file mode 100644 index 396a721b02eb0ce482a84c571d3daef3362886e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_4.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnonnull_4.java -.class public dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 3 - .limit locals 3 - - lconst_1 -; aload_1 - - ifnonnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_4.java deleted file mode 100644 index adba24a959e971ba0e98b2ee2cbce94feeb91227..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnonnull.jm; - -public class T_ifnonnull_4 { - - public boolean run(Object o) { - return o != null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.cfh deleted file mode 100644 index b430047d07738b5d23f6302a29079ae0abe55c46..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 47, h: 0003: utf8{"dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5"} - // . . , d x c / j u n i t / o p c o d e s / i f n o n n u l l / j m / T _ i f n o n n u l l _ 5 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6e 6f 6e 6e 75 6c 6c 2f 6a 6d 2f 54 5f 69 66 6e 6f 6e 6e 75 6c 6c 5f 35 - // parsed:, offset 81, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 94, len 24, h: 0005: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 118, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 127, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 133, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0c - // parsed:, offset 138, len 21, h: 0009: utf8{"T_ifnonnull_5.java"} - // . . . T _ i f n o n n u l l _ 5 . j a v a - 01 00 12 54 5f 69 66 6e 6f 6e 6e 75 6c 6c 5f 35 2e 6a 61 76 61 - // parsed:, offset 159, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 166, len 3, h: 000b: type{dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_5} - // . . . - 07 00 03 - // parsed:, offset 169, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 175, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 178, len 0, h: end constant_pool -// parsed:, offset 178, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 180, len 2, h: this_class: type{dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_5} -// . . - 00 0b -// parsed:, offset 182, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 184, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 186, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 188, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 190, len:75,desc: ()V -// parsed:, offset 190, len 0, h: methods[0]: - // parsed:, offset 190, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 192, len 2, h: name: - // . . - 00 06 - // parsed:, offset 194, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 196, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 198, len 0, h: attributes[0]: - // parsed:, offset 198, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 200, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 204, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 206, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 208, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 217, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 219, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 221, len 0, h: end attributes[0] -// parsed:, offset 221, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 221, len:44,desc: (Ljava/lang/Object;)Z -// parsed:, offset 221, len 0, h: methods[1]: - // parsed:, offset 221, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 223, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 225, len 2, h: descriptor: (Ljava/lang/Object;)Z - // . . - 00 05 - // parsed:, offset 227, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 229, len 0, h: attributes[0]: - // parsed:, offset 229, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 231, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 235, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 237, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 239, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 3, h: 0001: ifnonnull 00ff - // . . . -//@mod c7 00 05 - c7 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 251, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 253, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 255, len 0, h: end attributes[0] -// parsed:, offset 255, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Z -// parsed:, offset 255, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 257, len 0, h: attributes[0]: - // parsed:, offset 257, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 259, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 263, len 2, h: source: utf8{"T_ifnonnull_5.java"} - // . . - 00 09 -// parsed:, offset 265, len 0, h: end attributes[0] -// parsed:, offset 265, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.j deleted file mode 100644 index 087febbca866564500faff840e681a77cec70faa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnonnull_5.java -.class public dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - ifnonnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.java deleted file mode 100644 index 8d400cf2dbbd3e978eb1e3aab7c43cc62c09c638..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnonnull.jm; - -public class T_ifnonnull_5 { - - public boolean run(Object o) { - return o != null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.cfh deleted file mode 100644 index 913fcfc5ee04dcd8fffc57710ee450e338866071..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 47, h: 0003: utf8{"dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6"} - // . . , d x c / j u n i t / o p c o d e s / i f n o n n u l l / j m / T _ i f n o n n u l l _ 6 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6e 6f 6e 6e 75 6c 6c 2f 6a 6d 2f 54 5f 69 66 6e 6f 6e 6e 75 6c 6c 5f 36 - // parsed:, offset 81, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 94, len 24, h: 0005: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 118, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 127, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 133, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0b - // parsed:, offset 138, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 145, len 3, h: 000a: type{dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_6} - // . . . - 07 00 03 - // parsed:, offset 148, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 154, len 21, h: 000c: utf8{"T_ifnonnull_6.java"} - // . . . T _ i f n o n n u l l _ 6 . j a v a - 01 00 12 54 5f 69 66 6e 6f 6e 6e 75 6c 6c 5f 36 2e 6a 61 76 61 - // parsed:, offset 175, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 178, len 0, h: end constant_pool -// parsed:, offset 178, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 180, len 2, h: this_class: type{dxc.junit.opcodes.ifnonnull.jm.T_ifnonnull_6} -// . . - 00 0a -// parsed:, offset 182, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 184, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 186, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 188, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 190, len:78,desc: ()V -// parsed:, offset 190, len 0, h: methods[0]: - // parsed:, offset 190, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 192, len 2, h: name: - // . . - 00 06 - // parsed:, offset 194, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 196, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 198, len 0, h: attributes[0]: - // parsed:, offset 198, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 200, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 204, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 206, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 208, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 217, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 219, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 221, len 0, h: end attributes[0] -// parsed:, offset 221, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 221, len:47,desc: (Ljava/lang/Object;)Z -// parsed:, offset 221, len 0, h: methods[1]: - // parsed:, offset 221, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 223, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 225, len 2, h: descriptor: (Ljava/lang/Object;)Z - // . . - 00 05 - // parsed:, offset 227, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 229, len 0, h: attributes[0]: - // parsed:, offset 229, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 231, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 235, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 237, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 239, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 3, h: 0001: ifnonnull 0007 - // . . . -//@mod c7 00 05 - c7 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: wide - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 254, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 256, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 258, len 0, h: end attributes[0] -// parsed:, offset 258, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Z -// parsed:, offset 258, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 260, len 0, h: attributes[0]: - // parsed:, offset 260, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 262, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 266, len 2, h: source: utf8{"T_ifnonnull_6.java"} - // . . - 00 0c -// parsed:, offset 268, len 0, h: end attributes[0] -// parsed:, offset 268, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.j deleted file mode 100644 index 10daa6c45e790a08f85ed08ae96dc6eb7507e670..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnonnull_6.java -.class public dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - ifnonnull Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.java deleted file mode 100644 index 062b42a06923442f21c1cea07dd37897fb1e12ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnonnull/jm/T_ifnonnull_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnonnull.jm; - -public class T_ifnonnull_6 { - - public boolean run(Object o) { - return o != null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/Test_ifnull.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/Test_ifnull.java deleted file mode 100644 index a7b5eac315117edceaa505b9dde1eab731e2120f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/Test_ifnull.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnull; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ifnull.jm.T_ifnull_1; - -public class Test_ifnull extends DxTestCase { - - /** - * @title Argument = this - */ - public void testN1() { - T_ifnull_1 t = new T_ifnull_1(); - /* - * Compare with 1234 to check that in case of failed comparison - * execution proceeds at the address following if_acmpeq instruction - */ - assertEquals(1234, t.run(this)); - } - - /** - * @title Argument = null - */ - public void testN2() { - T_ifnull_1 t = new T_ifnull_1(); - assertEquals(1, t.run(null)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ifnull.jm.T_ifnull_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ifnull.jm.T_ifnull_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ifnull.jm.T_ifnull_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ifnull.jm.T_ifnull_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ifnull.jm.T_ifnull_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_1.j deleted file mode 100644 index e95e9f4cf273b69462da1080d9e40f5ad2dea29d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifne_1.java -.class public dxc/junit/opcodes/ifnull/jm/T_ifnull_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -; this method returns 1234 in case of failed comparison to check that execution proceeds -; at the address following if_acmpeq instruction -.method public run(Ljava/lang/Object;)I - .limit stack 2 - .limit locals 3 - - aload_1 - - ifnull Label0 - sipush 1234 - ireturn - - Label0: - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_1.java deleted file mode 100644 index 73d7b4ae75ee13577ea821b63db9ae9a7f2176bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnull.jm; - -public class T_ifnull_1 { - - public int run(Object o) { - return o == null ? 1 : 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_2.j deleted file mode 100644 index 77cbbd3863e16de284c5a395f563f8aabfed98c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnull_2.java -.class public dxc/junit/opcodes/ifnull/jm/T_ifnull_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - -; aload_1 - ifnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_2.java deleted file mode 100644 index 2efb995ae67b7d8e6dbd88ebeaf7f4806584c2ee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnull.jm; - -public class T_ifnull_2 { - - public boolean run(Object o) { - return o == null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_3.j deleted file mode 100644 index 04c94b2d00f84c4a23724e9f12ffa181ba187098..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_3.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnull_3.java -.class public dxc/junit/opcodes/ifnull/jm/T_ifnull_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 4 - .limit locals 3 - - dconst_1 - ifnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_3.java deleted file mode 100644 index 44c32e95466905b5c78b0a700a7cb438d98e59f7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnull.jm; - -public class T_ifnull_3 { - - public boolean run(Object o) { - return o == null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_4.j deleted file mode 100644 index 780f5bd4928e8d4bc4995e6a66e5b11fa8363a8d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_4.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnull_4.java -.class public dxc/junit/opcodes/ifnull/jm/T_ifnull_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 3 - .limit locals 3 - - lconst_1 -; aload_1 - - ifnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_4.java deleted file mode 100644 index 0a599628bb10f1664e26f9bb03d03777d97de0bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnull.jm; - -public class T_ifnull_4 { - - public boolean run(Object o) { - return o == null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.cfh deleted file mode 100644 index b507146229ffb5075fd1248a1530ef34829bb716..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ifnull/jm/T_ifnull_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 24, h: 0004: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 71, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 80, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 86, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 91, len 41, h: 0008: utf8{"dxc/junit/opcodes/ifnull/jm/T_ifnull_5"} - // . . & d x c / j u n i t / o p c o d e s / i f n u l l / j m / T _ i f n u l l _ 5 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6e 75 6c 6c 2f 6a 6d 2f 54 5f 69 66 6e 75 6c 6c 5f 35 - // parsed:, offset 132, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 139, len 3, h: 000a: type{dxc.junit.opcodes.ifnull.jm.T_ifnull_5} - // . . . - 07 00 08 - // parsed:, offset 142, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 148, len 18, h: 000c: utf8{"T_ifnull_5.java"} - // . . . T _ i f n u l l _ 5 . j a v a - 01 00 0f 54 5f 69 66 6e 75 6c 6c 5f 35 2e 6a 61 76 61 - // parsed:, offset 166, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 169, len 0, h: end constant_pool -// parsed:, offset 169, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 171, len 2, h: this_class: type{dxc.junit.opcodes.ifnull.jm.T_ifnull_5} -// . . - 00 0a -// parsed:, offset 173, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 175, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 177, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 179, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 181, len:75,desc: ()V -// parsed:, offset 181, len 0, h: methods[0]: - // parsed:, offset 181, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 183, len 2, h: name: - // . . - 00 05 - // parsed:, offset 185, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 187, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 189, len 0, h: attributes[0]: - // parsed:, offset 189, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 191, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 195, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 197, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 199, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 208, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 210, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 212, len 0, h: end attributes[0] -// parsed:, offset 212, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 212, len:44,desc: (Ljava/lang/Object;)Z -// parsed:, offset 212, len 0, h: methods[1]: - // parsed:, offset 212, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 214, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 216, len 2, h: descriptor: (Ljava/lang/Object;)Z - // . . - 00 04 - // parsed:, offset 218, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 220, len 0, h: attributes[0]: - // parsed:, offset 220, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 222, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 226, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 228, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 230, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 3, h: 0001: ifnull 00ff - // . . . -//@mod c6 00 05 - c6 00 ff - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: iconst_1 // #+01 - // . - 04 - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 242, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 244, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 246, len 0, h: end attributes[0] -// parsed:, offset 246, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Z -// parsed:, offset 246, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 248, len 0, h: attributes[0]: - // parsed:, offset 248, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 250, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 254, len 2, h: source: utf8{"T_ifnull_5.java"} - // . . - 00 0c -// parsed:, offset 256, len 0, h: end attributes[0] -// parsed:, offset 256, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.j deleted file mode 100644 index bf0195857b8a63ce839d60525e24f91d51c6806d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnull_5.java -.class public dxc/junit/opcodes/ifnull/jm/T_ifnull_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - ifnull Label0 - iconst_0 - ireturn - - Label0: - iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.java deleted file mode 100644 index 4a67ef19361bf0bb8076770536832ca6d985dbd5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnull.jm; - -public class T_ifnull_5 { - - public boolean run(Object o) { - return o == null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.cfh deleted file mode 100644 index faf3fcd673ee90c4caa2d34f74debbb03c45a739..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.cfh +++ /dev/null @@ -1,201 +0,0 @@ -//@class:dxc/junit/opcodes/ifnull/jm/T_ifnull_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 18, h: 0003: utf8{"T_ifnull_6.java"} - // . . . T _ i f n u l l _ 6 . j a v a - 01 00 0f 54 5f 69 66 6e 75 6c 6c 5f 36 2e 6a 61 76 61 - // parsed:, offset 52, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 65, len 24, h: 0005: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 89, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 98, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 104, len 41, h: 0008: utf8{"dxc/junit/opcodes/ifnull/jm/T_ifnull_6"} - // . . & d x c / j u n i t / o p c o d e s / i f n u l l / j m / T _ i f n u l l _ 6 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 66 6e 75 6c 6c 2f 6a 6d 2f 54 5f 69 66 6e 75 6c 6c 5f 36 - // parsed:, offset 145, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 06 00 0c - // parsed:, offset 150, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 157, len 3, h: 000b: type{dxc.junit.opcodes.ifnull.jm.T_ifnull_6} - // . . . - 07 00 08 - // parsed:, offset 160, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 166, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 169, len 0, h: end constant_pool -// parsed:, offset 169, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 171, len 2, h: this_class: type{dxc.junit.opcodes.ifnull.jm.T_ifnull_6} -// . . - 00 0b -// parsed:, offset 173, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 175, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 177, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 179, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 181, len:78,desc: ()V -// parsed:, offset 181, len 0, h: methods[0]: - // parsed:, offset 181, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 183, len 2, h: name: - // . . - 00 06 - // parsed:, offset 185, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 187, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 189, len 0, h: attributes[0]: - // parsed:, offset 189, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 191, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 195, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 197, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 199, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 208, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 210, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 212, len 0, h: end attributes[0] -// parsed:, offset 212, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 212, len:47,desc: (Ljava/lang/Object;)Z -// parsed:, offset 212, len 0, h: methods[1]: - // parsed:, offset 212, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 214, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 216, len 2, h: descriptor: (Ljava/lang/Object;)Z - // . . - 00 05 - // parsed:, offset 218, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 220, len 0, h: attributes[0]: - // parsed:, offset 220, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 222, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 226, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 228, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 230, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 3, h: 0001: ifnull 0007 - // . . . -//@mod c6 00 05 - c6 00 06 - // parsed:, offset 4, len 1, h: 0004: iconst_0 // #+00 - // . - 03 - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 6, len 1, h: 0006: nop - // . -//@mod 00 - c4 - // parsed:, offset 7, len 2, h: 0007: iload 01 - // . . - 15 01 - // parsed:, offset 9, len 1, h: 0009: nop - // . - 00 - // parsed:, offset 10, len 1, h: 000a: ireturn - // . - ac - // parsed:, offset 245, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 247, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 249, len 0, h: end attributes[0] -// parsed:, offset 249, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Z -// parsed:, offset 249, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 251, len 0, h: attributes[0]: - // parsed:, offset 251, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 253, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 257, len 2, h: source: utf8{"T_ifnull_6.java"} - // . . - 00 03 -// parsed:, offset 259, len 0, h: end attributes[0] -// parsed:, offset 259, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.j deleted file mode 100644 index 26ed54c01d4d766ac2b3ee92b7f1b1c61a3aa28a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ifnull_6.java -.class public dxc/junit/opcodes/ifnull/jm/T_ifnull_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - ifnull Label0 - iconst_0 - ireturn - - Label0: - nop - iload 1 - nop -; iconst_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.java deleted file mode 100644 index 8429521fe58ed0f6e9ea0b26a73853bc4f6529b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ifnull/jm/T_ifnull_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ifnull.jm; - -public class T_ifnull_6 { - - public boolean run(Object o) { - return o == null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/Test_iinc.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/Test_iinc.java deleted file mode 100644 index f51202620ca5bf4dba2ec093be8d1cfbcc52022c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/Test_iinc.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iinc.jm.T_iinc_1; -import dxc.junit.opcodes.iinc.jm.T_iinc_1_w; -import dxc.junit.opcodes.iinc.jm.T_iinc_2; -import dxc.junit.opcodes.iinc.jm.T_iinc_2_w; -import dxc.junit.opcodes.iinc.jm.T_iinc_3; -import dxc.junit.opcodes.iinc.jm.T_iinc_3_w; -import dxc.junit.opcodes.iinc.jm.T_iinc_4; -import dxc.junit.opcodes.iinc.jm.T_iinc_4_w; -import dxc.junit.opcodes.iinc.jm.T_iinc_5; -import dxc.junit.opcodes.iinc.jm.T_iinc_5_w; -import dxc.junit.opcodes.iinc.jm.T_iinc_6; -import dxc.junit.opcodes.iinc.jm.T_iinc_6_w; - -public class Test_iinc extends DxTestCase { - - /* - * NORMAL IINC VERSION - */ - - /** - * @title Increment by 1 - */ - public void testN1() { - T_iinc_1 t = new T_iinc_1(); - assertEquals(5, t.run(4)); - } - - /** - * @title Increment by -1 - */ - public void testN2() { - T_iinc_2 t = new T_iinc_2(); - assertEquals(3, t.run(4)); - } - - /** - * @title Increment by 63 - */ - public void testN3() { - T_iinc_3 t = new T_iinc_3(); - assertEquals(67, t.run(4)); - } - - /** - * @title Increment by 0 - */ - public void testB1() { - T_iinc_4 t = new T_iinc_4(); - assertEquals(Integer.MAX_VALUE, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Increment by 0 - */ - public void testB2() { - T_iinc_4 t = new T_iinc_4(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MIN_VALUE)); - } - - /** - * @title Increment by 127 - */ - public void testB3() { - T_iinc_5 t = new T_iinc_5(); - assertEquals(128, t.run(1)); - } - - /** - * @title Increment by 127 - */ - public void testB4() { - T_iinc_5 t = new T_iinc_5(); - assertEquals(126, t.run(-1)); - } - - /** - * @title Increment by 127 - */ - public void testB5() { - T_iinc_5 t = new T_iinc_5(); - assertEquals(-2147483521, t.run(Integer.MIN_VALUE)); - } - - /** - * @title Increment by -128 - */ - public void testB6() { - T_iinc_6 t = new T_iinc_6(); - assertEquals(-127, t.run(1)); - } - - /** - * @title Increment by -128 - */ - public void testB7() { - T_iinc_6 t = new T_iinc_6(); - assertEquals(-128, t.run(0)); - } - - /** - * @constraint 4.8.1.21 - * @title index must be no greater than - * max_locals-1. - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.21 - * @title index must be a nonnegative integer. - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE IINC VERSION - */ - - /** - * @title Increment by 1 - */ - public void testN4() { - T_iinc_1_w t = new T_iinc_1_w(); - assertEquals(5, t.run(4)); - } - - /** - * @title Increment by -1 - */ - public void testN5() { - T_iinc_2_w t = new T_iinc_2_w(); - assertEquals(3, t.run(4)); - } - - /** - * @title Increment by 7763 - */ - public void testN6() { - T_iinc_3_w t = new T_iinc_3_w(); - assertEquals(7767, t.run(4)); - } - - /** - * @title Increment by 0 - */ - public void testB8() { - T_iinc_4_w t = new T_iinc_4_w(); - assertEquals(Integer.MAX_VALUE, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Increment by 0 - */ - public void testB9() { - T_iinc_4_w t = new T_iinc_4_w(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MIN_VALUE)); - } - - /** - * @title Increment by 32767 - */ - public void testB10() { - T_iinc_5_w t = new T_iinc_5_w(); - assertEquals(32768, t.run(1)); - } - - /** - * @title Increment by 32767 - */ - public void testB11() { - T_iinc_5_w t = new T_iinc_5_w(); - assertEquals(32766, t.run(-1)); - } - - /** - * @title Increment by 32767 - */ - public void testB12() { - T_iinc_5_w t = new T_iinc_5_w(); - assertEquals(-2147450881, t.run(Integer.MIN_VALUE)); - } - - /** - * @title Increment by -32768 - */ - public void testB13() { - T_iinc_6_w t = new T_iinc_6_w(); - assertEquals(-32767, t.run(1)); - } - - /** - * @title Increment by -32768 - */ - public void testB14() { - T_iinc_6_w t = new T_iinc_6_w(); - assertEquals(-32768, t.run(0)); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than - * max_locals-1. - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_7_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.25 - * @title index must be a nonnegative integer. - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_8_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_9_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.iinc.jm.T_iinc_10_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1.j deleted file mode 100644 index 403078cd46790ec86c8d701a99452ddd3904049f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_1.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iinc 1 1 - iload_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1.java deleted file mode 100644 index 9bcfb926ae4218b04efbeff6cb43569812c667db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_1 { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10.j deleted file mode 100644 index 9d0dfedee1c8713ed08ddeec35bec194d46afa67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_10.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 2 - .limit locals 4 - - lconst_1 - lstore 2 - iinc 2 1 - iload_2 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10.java deleted file mode 100644 index 6e0f42b760f0c33f9a9cde60777f9211306ab097..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_10 { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10_w.j deleted file mode 100644 index 82129accd7d28390c9a4351a05364f7da03266f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_10_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_10_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 2 - .limit locals 300 - - lconst_1 - lstore 260 - iinc 260 1 - iload 260 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10_w.java deleted file mode 100644 index cedfff790486130a88fdd70c573146dc57228a2a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_10_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_10_w { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1_w.j deleted file mode 100644 index 5c88a81d546bfad63a145f0d7591e6d4bafdb9c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_1.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 300 - - iload_1 - istore 270 - iinc 270 1 - iload 270 - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1_w.java deleted file mode 100644 index 1f2348e94d529b96f44792511872173ba7e6c8f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_1_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_1_w { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2.j deleted file mode 100644 index 3faa1cec6da0b89e5375c10c9c742112520e6214..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_2.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc 1 -1 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2.java deleted file mode 100644 index e4b3725fc6f1a151ad118526285bde82b5ef0b41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_2 { - - public int run(int a) { - return --a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2_w.j deleted file mode 100644 index 63ed027fe3f7ea1196961f6758b58eaf98645c2e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_2_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)I - .limit stack 1 - .limit locals 300 - - iload_1 - istore 270 - iinc 270 -1 - iload 270 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2_w.java deleted file mode 100644 index 952321f4846b277cd22b630db31eb09c900f97ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_2_w { - - public int run(int a) { - return --a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3.j deleted file mode 100644 index f22fe25e691134428665ebe0bf264630a940a92e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_3.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc 1 63 - iload_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3.java deleted file mode 100644 index 8b3f2e6964d86dbfc4464a2e6986b5f439e01196..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_3 { - - public int run(int a) { - a += 63; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3_w.j deleted file mode 100644 index 69d795f49460f3dd96531e927974e44966adf254..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3_w.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_3_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc 1 7763 - iload_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3_w.java deleted file mode 100644 index 4da58fe8c85726387ac1f2f0e69517fd53090f54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_3_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_3_w { - - public int run(int a) { - a += 7763; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4.j deleted file mode 100644 index e944fa34bb1005cde2c55626594983f8c1db236c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_4.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc 1 0 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4.java deleted file mode 100644 index 33b93ead42f77d3e3fdf9b5f673141a97e309163..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_4 { - - public int run(int a) { - a += 0; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4_w.j deleted file mode 100644 index cb5907e51abb43d9ce261571664a625c73ad9b8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_4_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 3000 - - iload_1 - istore 2500 - iinc 2500 0 - iload 2500 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4_w.java deleted file mode 100644 index ea02795a5ca4f2d12a35c26f0c546b8f01d4c6f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_4_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_4_w { - - public int run(int a) { - a += 0; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5.j deleted file mode 100644 index 4371611f74956832557f7248dc80e383bd32ce64..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_5.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)I - .limit stack 1 - .limit locals 30 - - iload_1 - istore 25 - iinc 25 127 - iload 25 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5.java deleted file mode 100644 index bbeef43528027e40b397f88ac9a52c0b7128a668..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_5 { - - public int run(int a) { - a += 127; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5_w.j deleted file mode 100644 index f3b9b52b774905e90a14b771fa07e957df81521a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_5_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)I - .limit stack 1 - .limit locals 300 - - iload_1 - istore 257 - iinc 257 32767 - iload 257 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5_w.java deleted file mode 100644 index b80fab846973eb791971f902faafdee3bf679a0c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_5_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_5_w { - - public int run(int a) { - a += 32767; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6.j deleted file mode 100644 index caaf6ab255325778f753b5a1e86e26f4a82e8df6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_6.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc 1 -128 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6.java deleted file mode 100644 index f04d664d80ccaf0175205a8473508b0a43fbcc55..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_6 { - - public int run(int a) { - a += -128; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6_w.j deleted file mode 100644 index 5b004ac602694deeb7fadbf8acf686b727df1c18..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_6_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_6_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 300 - - iload_1 - istore 260 - - iinc 260 -32768 - iload 260 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6_w.java deleted file mode 100644 index 47a9fd10edc211f05140e7a3b9d1637a7834502b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_6_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_6_w { - - public int run(int a) { - a += -32768; - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7.j deleted file mode 100644 index acd3e812f89991d49707a005b01c912df77a8f0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_7.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc 2 1 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7.java deleted file mode 100644 index 8915c15080feb38b1819346d05702ba0e2e1b770..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_7 { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7_w.j deleted file mode 100644 index a885b871c01ffc0efd10beec51b6c3844f7fb9af..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7_w.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_7_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_7_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 300 - - iinc 300 1 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7_w.java deleted file mode 100644 index dcdc59ecfcc0af6bdc5231ed0487d7b61c492288..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_7_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_7_w { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8.j deleted file mode 100644 index 9af573f50a373a47dea8f034cc14a2e6d399eb79..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_8.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc -2 1 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8.java deleted file mode 100644 index 90b3421b5ab8b66f38ac26913ec492c05d459165..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_8 { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8_w.j deleted file mode 100644 index 6ba8c0a0fac1f2c4c2887da06677883984a0a490..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8_w.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_8_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_8_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - iinc -2 32001 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8_w.java deleted file mode 100644 index 2d4fd16a47df7a7c2d39c5b8134da7b339956e01..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_8_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_8_w { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9.j deleted file mode 100644 index d41db14da0e0832a3f7444c15bda7828b90b9762..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_9.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 2 - .limit locals 4 - - dconst_1 - dstore 2 - iinc 2 1 - iload_2 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9.java deleted file mode 100644 index 64c04d985488740f79718386e3210abfa1e7a585..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_9 { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9_w.j deleted file mode 100644 index 09efab51055ae175ba07b9bf4efafaeb796c1c0c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iinc_9_w.java -.class public dxc/junit/opcodes/iinc/jm/T_iinc_9_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 2 - .limit locals 300 - - dconst_1 - dstore 260 - iinc 260 1 - iload 260 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9_w.java deleted file mode 100644 index f2f693420ce3485875711c578f77d474429530d6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iinc/jm/T_iinc_9_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iinc.jm; - -public class T_iinc_9_w { - - public int run(int a) { - return ++a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/Test_iload.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/Test_iload.java deleted file mode 100644 index 71cf11583189fc992dbcccf3a31c2ed90fd1be3c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/Test_iload.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iload.jm.T_iload_1; -import dxc.junit.opcodes.iload.jm.T_iload_1_w; -import dxc.junit.opcodes.iload.jm.T_iload_2; -import dxc.junit.opcodes.iload.jm.T_iload_2_w; - -public class Test_iload extends DxTestCase { - - /* - * NORMAL ILOAD VERSION - */ - - /** - * @title Test iload 1 - */ - public void testN1() { - T_iload_1 t = new T_iload_1(); - assertEquals(4, t.run()); - } - - /** - * @title Test iload 255 - */ - public void testN2() { - T_iload_2 t = new T_iload_2(); - assertEquals(3, t.run()); - } - - /** - * @constraint 4.8.1.21 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE ILOAD VERSION - */ - - /** - * @title Test iload 257 - */ - public void testN3() { - T_iload_1_w t = new T_iload_1_w(); - assertEquals(4, t.run()); - } - - /** - * @title Test iload_w 1 - */ - public void testN4() { - T_iload_2_w t = new T_iload_2_w(); - assertEquals(3, t.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_5_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.iload.jm.T_iload_6_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1.j deleted file mode 100644 index 3083ee0720c17ec031c37c9bea3f6efef1279ae2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1.java -.class public dxc/junit/opcodes/iload/jm/T_iload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()I - .limit stack 2 - .limit locals 6 - - iconst_4 - istore 4 - iconst_3 - iload 4 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1.java deleted file mode 100644 index 9bef2f22e848baa601f3c5ecad0340e884b077ee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_1 { - - public int run() { - return 4; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1_w.j deleted file mode 100644 index 9e31e938a7fc1dbf385ccb7c68c4627945643a5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1_w.java -.class public dxc/junit/opcodes/iload/jm/T_iload_1_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()I - .limit stack 2 - .limit locals 300 - - iconst_4 - istore 257 - iconst_3 - iload 257 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1_w.java deleted file mode 100644 index 57842b5c0bc3f938b68ee3fdf53e1f3dcc3f5c96..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_1_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_1_w { - - public int run() { - return 4; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2.j deleted file mode 100644 index dfbad2882045201cd24c405fe2dfbb0dffdfca87..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2.java -.class public dxc/junit/opcodes/iload/jm/T_iload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()I - .limit stack 2 - .limit locals 300 - - iconst_3 - istore 255 - iconst_2 - iload 255 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2.java deleted file mode 100644 index c75bf9598002e856a179cc928cc004a15826ad20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_2 { - - public int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2_w.j deleted file mode 100644 index d11251f659be5df7cb586b6ce015d652166aef65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2_w.java -.class public dxc/junit/opcodes/iload/jm/T_iload_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()I - .limit stack 2 - .limit locals 2 - - iconst_3 - istore 1 - iconst_2 - iload_w 1 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2_w.java deleted file mode 100644 index fe5b114a85bd7cafd3aa076362c33a0b9750ae2b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_2_w { - - public int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3.j deleted file mode 100644 index eaa299054ccc9e611bcdd8940209b837b77dc155..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3.java -.class public dxc/junit/opcodes/iload/jm/T_iload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - iload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3.java deleted file mode 100644 index 36e8376d9813325d03ccbb25172f3aa2d4874a1b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_3 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3_w.j deleted file mode 100644 index 9e892c3952ffa849576333283f40926fb7da1abc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3_w.java -.class public dxc/junit/opcodes/iload/jm/T_iload_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 300 - - iload 300 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3_w.java deleted file mode 100644 index 6bf6191626f3ca4ce03929a3d47065781bf09630..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_3_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_3_w { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4.j deleted file mode 100644 index 318a2a306186fcc46f9f0f16e89b65e094e6eada..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_4.java -.class public dxc/junit/opcodes/iload/jm/T_iload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_0 - - iload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4.java deleted file mode 100644 index 1fe18fa377b6f11dcca8cccc9ccd11960d2284db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_4 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4_w.j deleted file mode 100644 index 541c07714bea6dd929fec795a14d8fd23eb5067d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_4_w.java -.class public dxc/junit/opcodes/iload/jm/T_iload_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore 260 - - iload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4_w.java deleted file mode 100644 index c293b5aa1c8153ebc1e027efd97e2c1a45c3a931..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_4_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_4_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5.j deleted file mode 100644 index 7bf6e93bc188e061f97cc25ab60afb59e8ee44be..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_5.java -.class public dxc/junit/opcodes/iload/jm/T_iload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_0 - - iload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5.java deleted file mode 100644 index 67cb0a21d2a31cf4ee5633c514522769846c0906..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_5 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5_w.j deleted file mode 100644 index 91208fdeecb6ebe93058e0c4baa46ae4ef1445bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5_w.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_5_w.java -.class public dxc/junit/opcodes/iload/jm/T_iload_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 300 - - lconst_1 - lstore 260 - - iload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5_w.java deleted file mode 100644 index 78882d012503c8915b2fac02e70749c08c7e5936..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_5_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_5_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6.j deleted file mode 100644 index 9363f548c81824338633da0211cf9f3e9acfba42..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_6.java -.class public dxc/junit/opcodes/iload/jm/T_iload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - iconst_1 - istore_0 - - iload 0 - iload 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6.java deleted file mode 100644 index 4b0ca5eeaeb696789320a9df2a62222a3190cbc2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_6 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6_w.j b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6_w.j deleted file mode 100644 index dd93b27a74a24623170b7fe8dc6f2cb75f51d5c2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_6_w.java -.class public dxc/junit/opcodes/iload/jm/T_iload_6_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 300 - - iconst_1 - istore 260 - - iload_w 260 - iload_w 260 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6_w.java b/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6_w.java deleted file mode 100644 index f5e118ba584e024945b2b7244c61eec0a57c16c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload/jm/T_iload_6_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload.jm; - -public class T_iload_6_w { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/Test_iload_0.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/Test_iload_0.java deleted file mode 100644 index ffb86843215eed7532046db56e65b565159ae049..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/Test_iload_0.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iload_0.jm.T_iload_0_1; -import dxc.junit.opcodes.iload_0.jm.T_iload_0_6; - -public class Test_iload_0 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(3, T_iload_0_1.run()); - } - - /** - * @title equality of iload_ and iload - */ - public void testN2() { - assertTrue(T_iload_0_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iload_0.jm.T_iload_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iload_0.jm.T_iload_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iload_0.jm.T_iload_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iload_0.jm.T_iload_0_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_1.j deleted file mode 100644 index 3aa9a5453d9ad82fd66c8a9d09a6263bf5ca39de..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_0_1.java -.class public dxc/junit/opcodes/iload_0/jm/T_iload_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 1 - - iconst_3 - istore_0 - iconst_4 - iload_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_1.java deleted file mode 100644 index 1cb2ba3aa229e1ef6d4e00fe95172699c924dcbd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_0.jm; - -public class T_iload_0_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_2.j deleted file mode 100644 index 703b8863d3c5a1eba8a46799932f6915d6dd7313..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_0_2.java -.class public dxc/junit/opcodes/iload_0/jm/T_iload_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - iload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_2.java deleted file mode 100644 index c3c2c766c86a9eced8b3ce847830d6f532f2881c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_0.jm; - -public class T_iload_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_3.j deleted file mode 100644 index 2b1af46b99703c6cd15e40c1de7edc0d7ec02a83..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_0_3.java -.class public dxc/junit/opcodes/iload_0/jm/T_iload_0_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_0 - - iload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_3.java deleted file mode 100644 index 801d3badce7ebae1fa3b30a79dd2d5a53ed44aba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_0.jm; - -public class T_iload_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_4.j deleted file mode 100644 index 3df46a90ac03fa63d537903fd9de73d0c635215f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_0_4.java -.class public dxc/junit/opcodes/iload_0/jm/T_iload_0_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_0 - - iload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_4.java deleted file mode 100644 index c92ee080bb7d542a39873c4d98a25af60b4bf555..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_0.jm; - -public class T_iload_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_5.j deleted file mode 100644 index 9505edeef0c3aa1b155da64504d1cdc9ea5d2de4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_0_5.java -.class public dxc/junit/opcodes/iload_0/jm/T_iload_0_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - iconst_1 - istore_0 - - iload_0 - iload_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_5.java deleted file mode 100644 index b86d61fb64141633793be3a4620e0f4b52044af4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_0.jm; - -public class T_iload_0_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_6.j deleted file mode 100644 index 8029a62c04b917db5d50cb1dd7906649c8a2d0cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_6.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_0_6.java -.class public dxc/junit/opcodes/iload_0/jm/T_iload_0_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 1 - - iconst_4 - istore_0 - - iload_0 - iload 0 - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_6.java deleted file mode 100644 index 9c12736dcacf757a2b959f78f611ed6f3b129834..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_0/jm/T_iload_0_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_0.jm; - -public class T_iload_0_6 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/Test_iload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/Test_iload_1.java deleted file mode 100644 index a41ed26de17034ad2268a2b4854026fc7dee7c8e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/Test_iload_1.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iload_1.jm.T_iload_1_1; -import dxc.junit.opcodes.iload_1.jm.T_iload_1_6; - -public class Test_iload_1 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(3, T_iload_1_1.run()); - } - - /** - * @title equality of iload_ and iload - */ - public void testN2() { - assertTrue(T_iload_1_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iload_1.jm.T_iload_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iload_1.jm.T_iload_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iload_1.jm.T_iload_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iload_1.jm.T_iload_1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_1.j deleted file mode 100644 index 79c23dc7e0cb32d3c1cae6b115a9b986aebfbd14..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1_1.java -.class public dxc/junit/opcodes/iload_1/jm/T_iload_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 2 - - iconst_3 - istore_1 - iconst_4 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_1.java deleted file mode 100644 index 2ecc1eaddbc92f2c1c403e1c5e8fcad5ff22093a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_1.jm; - -public class T_iload_1_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_2.j deleted file mode 100644 index 8b5e52f7e978d5cb8409a8a5ba6d807ca360515c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1_2.java -.class public dxc/junit/opcodes/iload_1/jm/T_iload_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - iload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_2.java deleted file mode 100644 index f7fcd5e0e24f953c7447b6a9b651cf7a26ad4c9a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_1.jm; - -public class T_iload_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_3.j deleted file mode 100644 index 63d1216dfdaea96fd6a6d6437d25fcbb279d84b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1_3.java -.class public dxc/junit/opcodes/iload_1/jm/T_iload_1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_1 - - iload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_3.java deleted file mode 100644 index 48dc77c92ca3e1e45d004653f57c4e6b915adfae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_1.jm; - -public class T_iload_1_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_4.j deleted file mode 100644 index aebcb4a8216010a731a484f3614d9e3385ec6335..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1_4.java -.class public dxc/junit/opcodes/iload_1/jm/T_iload_1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - lstore_1 - - iload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_4.java deleted file mode 100644 index a7fc0d17404d59e88858f3948004977845bfb05c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_1.jm; - -public class T_iload_1_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_5.j deleted file mode 100644 index 9dc1a4f715937be60446f2e03ffab812daab68e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1_5.java -.class public dxc/junit/opcodes/iload_1/jm/T_iload_1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - iconst_1 - istore_1 - - iload_1 - iload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_5.java deleted file mode 100644 index e9bd6c4417596d8d91eb7dbea5b33d2a0f048162..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_1.jm; - -public class T_iload_1_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_6.j deleted file mode 100644 index 019b7a1e9d8affff177f5fa192e3ad3d1dd39e9e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_6.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_1_6.java -.class public dxc/junit/opcodes/iload_1/jm/T_iload_1_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 2 - - iconst_4 - istore_1 - - iload_1 - iload 1 - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_6.java deleted file mode 100644 index 37f65c28d443d55591ef46c545bd43b5a0e6c169..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_1/jm/T_iload_1_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_1.jm; - -public class T_iload_1_6 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/Test_iload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/Test_iload_2.java deleted file mode 100644 index b42cc972cfdecf154f1616412ce70aa11c5133bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/Test_iload_2.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iload_2.jm.T_iload_2_1; -import dxc.junit.opcodes.iload_2.jm.T_iload_2_6; - -public class Test_iload_2 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(3, T_iload_2_1.run()); - } - - /** - * @title equality of iload_ and iload - */ - public void testN2() { - assertTrue(T_iload_2_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iload_2.jm.T_iload_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iload_2.jm.T_iload_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iload_2.jm.T_iload_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iload_2.jm.T_iload_2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_1.j deleted file mode 100644 index 4b4acb659d50ec09d134f5c84900a99d437e99ce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2_1.java -.class public dxc/junit/opcodes/iload_2/jm/T_iload_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 3 - - iconst_3 - istore_2 - iconst_4 - iload_2 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_1.java deleted file mode 100644 index a3484903efc70d296b436fbd5a4039cb6ec8c9ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_2.jm; - -public class T_iload_2_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_2.j deleted file mode 100644 index aea12fcc910d9b86996b05ec7472dcc7bacc1127..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2_2.java -.class public dxc/junit/opcodes/iload_2/jm/T_iload_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - iload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_2.java deleted file mode 100644 index 5ebd62f7ba91dfa1ab8377bfecd008e51836374e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_2.jm; - -public class T_iload_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_3.j deleted file mode 100644 index e3731cc9449bdfe9ed6481dba40cbafa56ce0b3e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2_3.java -.class public dxc/junit/opcodes/iload_2/jm/T_iload_2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 6 - - dconst_1 - dstore_2 - - iload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_3.java deleted file mode 100644 index 72149ef51fb191faa32b8a5f1447be697f4eef58..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_2.jm; - -public class T_iload_2_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_4.j deleted file mode 100644 index 18b80f14d5f3599e545731d35887c7b704eb9067..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2_4.java -.class public dxc/junit/opcodes/iload_2/jm/T_iload_2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 6 - - lconst_1 - lstore_2 - - iload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_4.java deleted file mode 100644 index 904c14c7e645dfcaa4787a2e03a39fe883748305..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_2.jm; - -public class T_iload_2_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_5.j deleted file mode 100644 index 4390cbbd39715d6c06206c428b71c925b9462f98..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2_5.java -.class public dxc/junit/opcodes/iload_2/jm/T_iload_2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 4 - - iconst_1 - istore_2 - - iload_2 - iload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_5.java deleted file mode 100644 index db95caef10eb7aa8a8d7d67a9e45588f1bf98e8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_2.jm; - -public class T_iload_2_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_6.j deleted file mode 100644 index 8ca7a9e61e6f5f0734e187742753cee0fecdf0bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_6.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_2_6.java -.class public dxc/junit/opcodes/iload_2/jm/T_iload_2_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 3 - - iconst_4 - istore_2 - - iload_2 - iload 2 - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_6.java deleted file mode 100644 index 737eb186d86657eae0614bf78ee3ec776313bffa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_2/jm/T_iload_2_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_2.jm; - -public class T_iload_2_6 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/Test_iload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/Test_iload_3.java deleted file mode 100644 index ac47b5934cade935b7a0e107cf2ad62b3bfa9bee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/Test_iload_3.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iload_3.jm.T_iload_3_1; -import dxc.junit.opcodes.iload_3.jm.T_iload_3_6; - -public class Test_iload_3 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(3, T_iload_3_1.run()); - } - - /** - * @title equality of iload_ and iload - */ - public void testN2() { - assertTrue(T_iload_3_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iload_3.jm.T_iload_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iload_3.jm.T_iload_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iload_3.jm.T_iload_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iload_3.jm.T_iload_3_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_1.j deleted file mode 100644 index 8b1881868f4c17b55a22da5c48e3462486c9ce91..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3_1.java -.class public dxc/junit/opcodes/iload_3/jm/T_iload_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 4 - - iconst_3 - istore_3 - iconst_4 - iload_3 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_1.java deleted file mode 100644 index 88b4b61514817c508dcc83fe83e9dbc8d4eb9daf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_3.jm; - -public class T_iload_3_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_2.j deleted file mode 100644 index 6e75ed3c4ec5a9ec3a2fe51f546666952d9b85b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3_2.java -.class public dxc/junit/opcodes/iload_3/jm/T_iload_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - iload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_2.java deleted file mode 100644 index 4ad71062d896d40e3f4fd1899f552a6fe599de3d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_3.jm; - -public class T_iload_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_3.j deleted file mode 100644 index 8bc3a02f07985559ee44a7a91b6189e78d063a67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3_3.java -.class public dxc/junit/opcodes/iload_3/jm/T_iload_3_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 6 - - dconst_1 - dstore_3 - - iload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_3.java deleted file mode 100644 index 8660cab1a5ea42d399df2872d025e4de7194f7fe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_3.jm; - -public class T_iload_3_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_4.j deleted file mode 100644 index cdd2fa86daa255f0fdce7127f93e04297401e1b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3_4.java -.class public dxc/junit/opcodes/iload_3/jm/T_iload_3_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 6 - - lconst_1 - lstore_3 - - iload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_4.java deleted file mode 100644 index 86fe370be28c21c8b15ca1cd808388a95b863717..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_3.jm; - -public class T_iload_3_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_5.j deleted file mode 100644 index 94aeec4925e6a98837934886c55aa91d8a884ab2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3_5.java -.class public dxc/junit/opcodes/iload_3/jm/T_iload_3_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 3 - - iconst_1 - istore_3 - - iload_3 - iload_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_5.java deleted file mode 100644 index 8604dce34b57cf606ee03f222ffcc84ca7a23da7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_3.jm; - -public class T_iload_3_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_6.j b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_6.j deleted file mode 100644 index 9267b4308d75202ae6245fe9345508e8af9ad0c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_6.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iload_3_6.java -.class public dxc/junit/opcodes/iload_3/jm/T_iload_3_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 4 - - iconst_4 - istore_3 - - iload_3 - iload 3 - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_6.java b/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_6.java deleted file mode 100644 index 28d17a2f86b9c782d379c85367150be92589bd83..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iload_3/jm/T_iload_3_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iload_3.jm; - -public class T_iload_3_6 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/Test_imul.java b/tools/dx-tests/src/dxc/junit/opcodes/imul/Test_imul.java deleted file mode 100644 index 2db80b607400ccee0eef18ddbed280457b61c5c0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/Test_imul.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.imul; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.imul.jm.T_imul_1; - -public class Test_imul extends DxTestCase { - - /** - * @title Arguments = 8, 4 - */ - public void testN1() { - T_imul_1 t = new T_imul_1(); - assertEquals(32, t.run(8, 4)); - } - - /** - * @title Arguments = -2, 255 - */ - public void testN2() { - T_imul_1 t = new T_imul_1(); - assertEquals(-510, t.run(-2, 255)); - } - - /** - * @title Arguments = 0x7ffffffe, 2 - */ - public void testN3() { - T_imul_1 t = new T_imul_1(); - assertEquals(-4, t.run(0x7ffffffe, 2)); - } - - /** - * @title Arguments = 4, 0x80000001 - */ - public void testN4() { - T_imul_1 t = new T_imul_1(); - assertEquals(4, t.run(4, 0x80000001)); - } - - /** - * @title Arguments = 0, Integer.MAX_VALUE - */ - public void testB1() { - T_imul_1 t = new T_imul_1(); - assertEquals(0, t.run(0, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, 1 - */ - public void testB2() { - T_imul_1 t = new T_imul_1(); - assertEquals(Integer.MAX_VALUE, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, 1 - */ - public void testB3() { - T_imul_1 t = new T_imul_1(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MIN_VALUE - */ - public void testB4() { - T_imul_1 t = new T_imul_1(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, - Integer.MIN_VALUE)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_imul_1 t = new T_imul_1(); - assertEquals(0, t.run(0, 0)); - } - - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.imul.jm.T_imul_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.imul.jm.T_imul_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.imul.jm.T_imul_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.imul.jm.T_imul_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_1.j b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_1.j deleted file mode 100644 index b3ba15a81247d92653f18e0203aa30ad6f85034a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_imul_1.java -.class public dxc/junit/opcodes/imul/jm/T_imul_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - imul - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_1.java b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_1.java deleted file mode 100644 index 38b1298f9416d8e6ad5f827e7f9f5930ccc0b2c6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.imul.jm; - -public class T_imul_1 { - - public int run(int a, int b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_2.j b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_2.j deleted file mode 100644 index d00f4e0ade7c5785ce2340dadabd4e7152384d38..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_imul_2.java -.class public dxc/junit/opcodes/imul/jm/T_imul_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - ; iload_2 - imul - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_2.java b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_2.java deleted file mode 100644 index 123e230e5a08a878dbe021b00a0bfea29466a4e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.imul.jm; - -public class T_imul_2 { - - public int run(int a, int b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_3.j b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_3.j deleted file mode 100644 index 960c58c383ef71a488ea163639b2f571086d82b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_imul_3.java -.class public dxc/junit/opcodes/imul/jm/T_imul_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(ID)I - .limit stack 3 - .limit locals 5 - iload_1 - dload_2 - imul - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_3.java b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_3.java deleted file mode 100644 index cad2df6759a72b9fe860f94e8493c9ecdeb7b254..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.imul.jm; - -public class T_imul_3 { - - public int run(int a, double b) { - return a+(int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_4.j b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_4.j deleted file mode 100644 index 73d744076400f3dbff7cb5713bf4a36440b32c6e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_imul_4.java -.class public dxc/junit/opcodes/imul/jm/T_imul_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)I - .limit stack 3 - .limit locals 4 - - lload_1 -; l2i - iload_3 - imul - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_4.java b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_4.java deleted file mode 100644 index d2da8b79fc4356b9eaf405e246648658757a850e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.imul.jm; - -public class T_imul_4 { - - public int run(long a, int b) { - return (int)a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_5.j b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_5.j deleted file mode 100644 index aa3a81af283bb45906f45f61983341c04b95a59f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_imul_5.java -.class public dxc/junit/opcodes/imul/jm/T_imul_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - iadd - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_5.java b/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_5.java deleted file mode 100644 index e4aa8e96db8a464d9ed211597eb22f37edb763bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/imul/jm/T_imul_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.imul.jm; - -public class T_imul_5 { - - public int run(int a, int b) { - return a+b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/Test_ineg.java b/tools/dx-tests/src/dxc/junit/opcodes/ineg/Test_ineg.java deleted file mode 100644 index 366a8a171ac16b615d7d8414a7fb6fb0c6004f7b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/Test_ineg.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ineg; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ineg.jm.T_ineg_1; -import dxc.junit.opcodes.ineg.jm.T_ineg_2; - -public class Test_ineg extends DxTestCase { - - /** - * @title Argument = 1 - */ - public void testN1() { - T_ineg_1 t = new T_ineg_1(); - assertEquals(-1, t.run(1)); - } - - /** - * @title Argument = -1 - */ - public void testN2() { - T_ineg_1 t = new T_ineg_1(); - assertEquals(1, t.run(-1)); - } - - /** - * @title Argument = 32768 - */ - public void testN3() { - T_ineg_1 t = new T_ineg_1(); - assertEquals(-32768, t.run(32768)); - } - - /** - * @title Argument = 0 - */ - public void testN4() { - T_ineg_1 t = new T_ineg_1(); - assertEquals(0, t.run(0)); - } - - /** - * @title Check that -x == (~x + 1) - */ - public void testN5() { - T_ineg_2 t = new T_ineg_2(); - assertTrue(t.run(12345)); - } - - /** - * @title Argument = Integer.MAX_VALUE - */ - public void testB1() { - T_ineg_1 t = new T_ineg_1(); - assertEquals(0x80000001, t.run(Integer.MAX_VALUE)); - } - - /** - * @title Argument = Integer.MIN_VALUE - */ - public void testB2() { - T_ineg_1 t = new T_ineg_1(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ineg.jm.T_ineg_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ineg.jm.T_ineg_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ineg.jm.T_ineg_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ineg.jm.T_ineg_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_1.j deleted file mode 100644 index e124957070f625122984976c56e8e00b029d2e78..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_1.java -.class public dxc/junit/opcodes/ineg/jm/T_ineg_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - ineg - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_1.java deleted file mode 100644 index 3db948047b9e5e3375c2f43d67d2b425a090a88e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ineg.jm; - -public class T_ineg_1 { - - public int run(int d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_2.j deleted file mode 100644 index b4f2140df3630694d2e8f58e8570d124924230fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_2.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_2.java -.class public dxc/junit/opcodes/ineg/jm/T_ineg_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)Z - .limit stack 3 - .limit locals 2 - - iload_1 - ineg - - iload_1 - iconst_m1 - ixor - iconst_1 - iadd - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_2.java deleted file mode 100644 index b9ee0b0c52e0526a514c71f9463bb0ae10025056..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ineg.jm; - -public class T_ineg_2 { - - public boolean run(int d) { - return -d == (~d + 1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_3.j deleted file mode 100644 index e850c19fd662c89528128494efb2d4f24060b23f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_3.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_3.java -.class public dxc/junit/opcodes/ineg/jm/T_ineg_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - ;iload_1 - ineg - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_3.java deleted file mode 100644 index 306154b1458071d3ed3cedf9af585602804f5bc0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ineg.jm; - -public class T_ineg_3 { - - public int run(int d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_4.j deleted file mode 100644 index 7f1d70402352285691f80350dd9f337e0e16ad9f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_4.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_4.java -.class public dxc/junit/opcodes/ineg/jm/T_ineg_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 2 - .limit locals 3 - ;iload_1 - dconst_1 - ineg - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_4.java deleted file mode 100644 index 8285cbde116a3e331af42083566bd25ceb20b412..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ineg.jm; - -public class T_ineg_4 { - - public int run(int d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_5.j deleted file mode 100644 index 8ec653d9a7982fd2bb951b94f43093a6a6b7ca00..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_5.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_5.java -.class public dxc/junit/opcodes/ineg/jm/T_ineg_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 2 - .limit locals 3 - ;iload_1 - lconst_1 - ineg - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_5.java deleted file mode 100644 index 48d4b1460d683af1f4a682d58dfdda5189ece052..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ineg.jm; - -public class T_ineg_5 { - - public int run(int d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_6.j deleted file mode 100644 index 8aa2e447326d298d2a86d16329f4498a2d7d9fca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ineg_6.java -.class public dxc/junit/opcodes/ineg/jm/T_ineg_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - aload_0 - ineg - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_6.java deleted file mode 100644 index 901bcf43edaa1a10ae800975262536228141bd20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ineg/jm/T_ineg_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ineg.jm; - -public class T_ineg_6 { - - public int run(int d) { - return -d; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/Test_invokeinterface.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/Test_invokeinterface.java deleted file mode 100644 index 9d27718b28725efb707edeb16341a16ab9a4234f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/Test_invokeinterface.java +++ /dev/null @@ -1,361 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.invokeinterface.jm.ITestImpl; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_1; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_11; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_12; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_13; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_14; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_15; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_16; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_17; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_3; -import dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_7; - -public class Test_invokeinterface extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_invokeinterface_1 t = new T_invokeinterface_1(); - assertEquals(0, t.run("aa", "aa")); - assertEquals(-1, t.run("aa", "bb")); - assertEquals(1, t.run("bb", "aa")); - } - - /** - * @title Check that new frame is created by invokeinterface and - * arguments are passed to method - */ - public void testN2() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - T_invokeinterface_14 t = new T_invokeinterface_14(); - ITestImpl impl = new ITestImpl(); - assertEquals(1, t.run(impl)); - } - - /** - * @title Check that monitor is acquired if method is synchronized - */ - public void testN3() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - assertTrue(T_invokeinterface_19.execute()); - } - - - /** - * @title method doesn't exist - */ - public void testE1() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - try { - T_invokeinterface_7 t = new T_invokeinterface_7(); - ITestImpl impl = new ITestImpl(); - t.run(impl); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title method has different signature - */ - public void testE2() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - try { - T_invokeinterface_16 t = new T_invokeinterface_16(); - ITestImpl impl = new ITestImpl(); - t.run(impl); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NullPointerException - */ - public void testE3() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - new T_invokeinterface_3(null); - fail("expected NullPointerException"); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @title object doesn't implement interface - */ - public void testE4() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - T_invokeinterface_11 t = new T_invokeinterface_11(); - ITestImpl impl = new ITestImpl(); - try { - t.run(impl); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError e) { - // expected - } - } - - /** - * @title Native method can't be linked - */ - public void testE5() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - T_invokeinterface_12 t = new T_invokeinterface_12(); - ITestImpl impl = new ITestImpl(); - try { - t.run(impl); - fail("expected UnsatisfiedLinkError"); - } catch (UnsatisfiedLinkError e) { - // expected - } - } - - /** - * @title Attempt to invoke abstract method - */ - public void testE6() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImplAbstract - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - try { - T_invokeinterface_13 t = new T_invokeinterface_13(); - ITestImpl impl = new ITestImpl(); - t.run(impl); - fail("expected AbstractMethodError"); - } catch (AbstractMethodError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to invoke static method - */ - public void testE7() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImplAbstract - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - try { - T_invokeinterface_15 t = new T_invokeinterface_15(); - ITestImpl impl = new ITestImpl(); - t.run(impl); - fail("expected AbstractMethodError"); - } catch (AbstractMethodError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to invoke non-public interface method - */ - public void testE8() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImplAbstract - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImpl - try { - T_invokeinterface_17 t = new T_invokeinterface_17(); - ITestImpl impl = new ITestImpl(); - t.run(impl); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.15 - * @title valid index into constant pool table - */ - public void testVFE1() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.15 - * @title invalid index into constant pool table - */ - public void testVFE2() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_23"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE5() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - int - */ - public void testVFE6() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.15 - * @title args_size value must match number of arguments - */ - public void testVFE7() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.15 - * @title 4th operand must be zero - */ - public void testVFE8() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments passed to method - */ - public void testVFE9() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title only invokespecial may be used to call - */ - public void testVFE10() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - //@uses dxc.junit.opcodes.invokeinterface.jm.ITestImplAbstract - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_18"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title only invokespecial may be used to call - */ - public void testVFE11() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_20"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.12 - * @title types of arguments passed to method - */ - public void testVFE12() { - //@uses dxc.junit.opcodes.invokeinterface.jm.ITest - try { - Class - .forName("dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_21"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITest.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITest.java deleted file mode 100644 index 080199a9b3bcb681e102cd62bed0f5603bc16a8d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public interface ITest { - public void doit(); - public void doit(int i); - public void doitNative(); - public int test(int a); - public int testArgsOrder(int a, int b); -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImpl.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImpl.java deleted file mode 100644 index fb20ecc27a75a9101acea9d0193e1bce97d3d188..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class ITestImpl implements ITest { - public void doit() { - // impl - } - - public void doit(int i) { - // - } - - public native void doitNative(); - - public int test(int a) { - if (a == 999) return 195; - return 0; - } - - public int testArgsOrder(int a, int b) { - return a / b; - } - -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract.j deleted file mode 100644 index 6ebe8bd953f9a136df777c16121ac6c2935672a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source ITestImplAbstract.java -.class public dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract -.super java/lang/Object -.implements dxc/junit/opcodes/invokeinterface/jm/ITest - -.method ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public abstract doit()V -.end method - - - -.method public static doit(I)V - .limit locals 2 - return -.end method - - - -.method public native doitNative()V -.end method - -.method protected test(I)I - .limit locals 2 - .limit stack 1 - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract.java deleted file mode 100644 index fdabd896f4b8c14b98a9881c9a423ea31924c425..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -abstract class ITestImplAbstract implements ITest { - abstract public void doit(); - abstract public void doit(int i); - public native void doitNative(); -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1.j deleted file mode 100644 index ca88c6c81717b77bca9d07ab5c539d54d7231a80..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_1.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Comparable;Ljava/lang/Object;)I - .limit stack 2 - .limit locals 3 - aload_1 - aload_2 - invokeinterface java/lang/Comparable/compareTo(Ljava/lang/Object;)I 2 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1.java deleted file mode 100644 index bb3a112f9cd2d6ac818dcade8f6201ae82b10239..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_1 { - - public int run(Comparable c, Object o) { - return c.compareTo(o); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_10.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_10.j deleted file mode 100644 index 786446dbdf6483232d44767f1bd2911e7a4358de..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_10.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_10.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_10 -.super java/lang/Object - -.method public (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial java/lang/Object/()V - -; aload_1 - iconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_10.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_10.java deleted file mode 100644 index 5fe6f6876e9e641ec67a32588e64da2d7c35e556..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_10 { - - public T_invokeinterface_10 (ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_11.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_11.j deleted file mode 100644 index e4c7a8b0234c904aed878612fdcad5a38a0d7fc6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_11.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_11.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - -; aload_1 - aload_0 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_11.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_11.java deleted file mode 100644 index 916eeb3b2f2dd93faa4e91706d2342ef1e963375..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_11 { - - public void run(ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_12.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_12.j deleted file mode 100644 index fbd7d7ed8c3a2967d51745e5235aa89332357f4e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_12.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_12.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_12 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - - aload_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doitNative()V 1 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_12.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_12.java deleted file mode 100644 index 3418fceef35e816b8e1b8b520ba21a6e49b1a0ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_12.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_12 { - - public void run(ITest test) { - test.doitNative(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_13.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_13.j deleted file mode 100644 index 7feb097fee15390c127b4a6faf2ede57ef0b4879..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_13.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_13.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_13 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract - dup - invokespecial dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract/()V - - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_13.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_13.java deleted file mode 100644 index e11df1f87996d738183e71773601973395ee0c9c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_13.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_13 { - - public void run(ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_14.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_14.j deleted file mode 100644 index 94a2710a4b1108faa157d442392b615d079d5eb3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_14.j +++ /dev/null @@ -1,58 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_14.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_14 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)I - .limit stack 3 - .limit locals 4 - - bipush 123 - istore_2 - - sipush 345 - istore_3 - - aload_1 - sipush 64 - sipush 2 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/testArgsOrder(II)I 3 - sipush 32 - if_icmpne Label0 - - iload_2 - bipush 123 - if_icmpne Label0 - - iload_3 - sipush 345 - if_icmpne Label0 - - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_14.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_14.java deleted file mode 100644 index 4ebf2f75bcef798c04a939ab148675bb19eeedaa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_14.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_14 { - - public int run(ITest test) { - int a = 123; - int b = 345; - if(test.testArgsOrder(64, 2) == 32) - { - if(a == 123) - if(b == 345) - return 1; - } - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_15.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_15.j deleted file mode 100644 index 67f5ffb793ecd79bb04af67420314287d3ea982e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_15.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_15.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_15 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract - dup - invokespecial dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract/()V - - iconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit(I)V 2 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_15.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_15.java deleted file mode 100644 index c4aba4c2140789ccf65ea4f81ad258ff5ac4d2ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_15.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_15 { - - public void run(ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_16.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_16.j deleted file mode 100644 index 796696a78a7ae8be86fec40c50c3caed0923e867..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_16.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_16.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_16 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - aload_1 - fconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit(F)V 2 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_16.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_16.java deleted file mode 100644 index 161aafe6e7a54bea26a98ded0127b232a02a4ea7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_16.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_16 { - - public void run(ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_17.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_17.j deleted file mode 100644 index 38133afcfc2cb2cb47e3f1167c71e67e2a53ba10..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_17.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_17.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_17 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract - dup - invokespecial dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract/()V - - iconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/test(I)I 2 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_17.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_17.java deleted file mode 100644 index c7754eaa63d31382f8a7e1651bbda5ff9218a5e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_17.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_17 { - - public void run(ITest test) { - test.test(1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_18.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_18.j deleted file mode 100644 index 674e491cf0dad2860520524d04df7197e58d0da3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_18.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_18.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_18 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract - dup - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITestImplAbstract/()V 1 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_18.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_18.java deleted file mode 100644 index 12462fb33f41219dc4200f65906e76eb4710f0bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_18.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_18 { - - public void run(ITest test) { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19.j deleted file mode 100644 index f5a89a784ccaec46008c77fecfe9625782a954b9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19.j +++ /dev/null @@ -1,182 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_19.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19 -.super java/lang/Object -.implements java/lang/Runnable -.implements dxc/junit/opcodes/invokeinterface/jm/ITest - -.field value I -.field failed Z - - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.value I - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.failed Z - - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label1: - - aload_0 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - - iinc 1 1 - - iload_1 - sipush 1000 - if_icmplt Label1 - - return -.end method - - - -.method public synchronized doit()V - .limit stack 3 - .limit locals 2 - - - aload_0 - dup - getfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.value I - iconst_1 - iadd - putfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.value I - - aload_0 - getfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.value I - istore_1 - - invokestatic java/lang/Thread/yield()V - - iload_1 - aload_0 - getfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.value I - if_icmpeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.failed Z - - Label0: - return -.end method - - - -.method public doit(I)V - .limit stack 0 - .limit locals 2 - return -.end method - -.method public doitNative()V - .limit stack 0 - .limit locals 1 - return -.end method - -.method public test(I)I - .limit stack 1 - .limit locals 2 - iconst_0 - ireturn -.end method - - - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19 - dup - invokespecial dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: - astore_3 - iconst_0 - ireturn - -Label0: - aload_0 - getfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.value I - sipush 2000 - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - aload_0 - getfield dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_19.failed Z - ifeq Label2 - iconst_0 - ireturn - -Label2: - iconst_1 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19.java deleted file mode 100644 index 1aec95b39f28a4af2f7925b6d134e580242ce9d3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_19.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - - -public class T_invokeinterface_19 implements Runnable, ITest { - public final static int CNT = 1000; - int value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - doit(); - } - } - - public synchronized void doit(){ - value++; - int c = value; - Thread.yield(); - if(c != value) - failed = true; - } - public void doit(int i){ - } - public void doitNative(){ - } - public int test(int a) { - return 0; - } - public int testArgsOrder(int a, int b){ - return 0; - } - - public static boolean execute() { - T_invokeinterface_19 test = new T_invokeinterface_19(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.cfh deleted file mode 100644 index b91b025086407eda7449c78ff8efd0567bea3656..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.cfh +++ /dev/null @@ -1,155 +0,0 @@ -//@class:dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:()V} - // . . . . . - 0b 00 08 00 0f - // parsed:, offset 15, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 11 00 09 - // parsed:, offset 20, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 39, len 3, h: 0004: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_2} - // . . . - 07 00 10 - // parsed:, offset 42, len 13, h: 0005: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 55, len 27, h: 0006: utf8{"T_invokeinterface_2.java"} - // . . . T _ i n v o k e i n t e r f a c e _ 2 . j a v a - 01 00 18 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 32 2e 6a 61 76 61 - // parsed:, offset 82, len 9, h: 0007: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 91, len 3, h: 0008: type{dxc.junit.opcodes.invokeinterface.jm.ITest} - // . . . - 07 00 0b - // parsed:, offset 94, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 07 00 0e - // parsed:, offset 99, len 7, h: 000a: utf8{"doit"} - // . . . d o i t - 01 00 04 64 6f 69 74 - // parsed:, offset 106, len 45, h: 000b: utf8{"dxc/junit/opcodes/invokeinterface/jm/ITest"} - // . . * d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 - // parsed:, offset 151, len 7, h: 000c: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 158, len 50, h: 000d: utf8{"(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V"} - // . . / ( L d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t ; ) V - 01 00 2f 28 4c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 3b 29 56 - // parsed:, offset 208, len 6, h: 000e: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 214, len 5, h: 000f: nat{doit:()V} - // . . . . . - 0c 00 0a 00 0e - // parsed:, offset 219, len 59, h: 0010: utf8{"dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2"} - // . . 8 d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / T _ i n v o k e i n t e r f a c e _ 2 - 01 00 38 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 32 - // parsed:, offset 278, len 3, h: 0011: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 281, len 0, h: end constant_pool -// parsed:, offset 281, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 283, len 2, h: this_class: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_2} -// . . - 00 04 -// parsed:, offset 285, len 2, h: super_class: type{java.lang.Object} -// . . - 00 11 -// parsed:, offset 287, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 289, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 291, len 2, h: methods_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:, offset 293, len:47,desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 293, len 0, h: methods[0]: - // parsed:, offset 293, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 295, len 2, h: name: - // . . - 00 07 - // parsed:, offset 297, len 2, h: descriptor: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - // . . - 00 0d - // parsed:, offset 299, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 301, len 0, h: attributes[0]: - // parsed:, offset 301, len 2, h: name: Code - // . . - 00 0c - // parsed:, offset 303, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 307, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 309, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 311, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: aload_1 // 01 - // + - 2b - // parsed:, offset 5, len 5, h: 0005: invokeinterface ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:()V}, 0001 - // . . . . . -//@mod: b9 00 01 01 00 - b9 00 02 01 00 - // parsed:, offset 10, len 1, h: 000a: return - // . - b1 - // parsed:, offset 326, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 328, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 330, len 0, h: end attributes[0] -// parsed:, offset 330, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 330, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 332, len 0, h: attributes[0]: - // parsed:, offset 332, len 2, h: name: SourceFile - // . . - 00 05 - // parsed:, offset 334, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 338, len 2, h: source: utf8{"T_invokeinterface_2.java"} - // . . - 00 06 -// parsed:, offset 340, len 0, h: end attributes[0] -// parsed:, offset 340, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.j deleted file mode 100644 index 2d3fafc80522ea70dd3fab625f9b5690769aa242..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_2.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2 -.super java/lang/Object - -.method public (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial java/lang/Object/()V - - aload_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.java deleted file mode 100644 index 6fe011f26afe3740c1b0ff0ff2727472a2022e12..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_2 { - - public T_invokeinterface_2 (ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20.j deleted file mode 100644 index 6da973fc025b4e30ec881869b372198fb309f847..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_20.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20 -.super java/lang/Object - -.field public static i I - -.method static ()V - .limit stack 1 - iconst_0 - putstatic dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_20.i I - return -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - - aload_0 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20/()V 1 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20.java deleted file mode 100644 index 448772614236207793381807b74a0fc4f49f0415..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_20.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_20 { - - public static int i = 0; - - public void run(ITest test) { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_21.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_21.j deleted file mode 100644 index 9d28bbfcab71d71fca2cc2e20d0d240fffab3f41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_21.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_21.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_21 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 3 - .limit locals 2 - - aload_1 - lconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit(I)V 2 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_21.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_21.java deleted file mode 100644 index 08979876823492ea631a7d69ed7309d67f090244..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_21.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_21 { - - public void run(ITest test) { - test.doit(1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.cfh deleted file mode 100644 index 57b9e0932a108512a5a369695f52d76368f187d3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.cfh +++ /dev/null @@ -1,155 +0,0 @@ -//@class:dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:()V} - // . . . . . - 0b 00 06 00 10 - // parsed:, offset 15, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 11 00 07 - // parsed:, offset 20, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 39, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 52, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 61, len 3, h: 0006: type{dxc.junit.opcodes.invokeinterface.jm.ITest} - // . . . - 07 00 09 - // parsed:, offset 64, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0d - // parsed:, offset 69, len 7, h: 0008: utf8{"doit"} - // . . . d o i t - 01 00 04 64 6f 69 74 - // parsed:, offset 76, len 45, h: 0009: utf8{"dxc/junit/opcodes/invokeinterface/jm/ITest"} - // . . * d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 - // parsed:, offset 121, len 3, h: 000a: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_23} - // . . . - 07 00 0e - // parsed:, offset 124, len 7, h: 000b: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 131, len 50, h: 000c: utf8{"(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V"} - // . . / ( L d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t ; ) V - 01 00 2f 28 4c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 3b 29 56 - // parsed:, offset 181, len 6, h: 000d: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 187, len 60, h: 000e: utf8{"dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23"} - // . . 9 d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / T _ i n v o k e i n t e r f a c e _ 2 3 - 01 00 39 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 32 33 - // parsed:, offset 247, len 28, h: 000f: utf8{"T_invokeinterface_23.java"} - // . . . T _ i n v o k e i n t e r f a c e _ 2 3 . j a v a - 01 00 19 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 32 33 2e 6a 61 76 61 - // parsed:, offset 275, len 5, h: 0010: nat{doit:()V} - // . . . . . - 0c 00 08 00 0d - // parsed:, offset 280, len 3, h: 0011: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 283, len 0, h: end constant_pool -// parsed:, offset 283, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 285, len 2, h: this_class: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_23} -// . . - 00 0a -// parsed:, offset 287, len 2, h: super_class: type{java.lang.Object} -// . . - 00 11 -// parsed:, offset 289, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 291, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 293, len 2, h: methods_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:, offset 295, len:47,desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 295, len 0, h: methods[0]: - // parsed:, offset 295, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 297, len 2, h: name: - // . . - 00 05 - // parsed:, offset 299, len 2, h: descriptor: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - // . . - 00 0c - // parsed:, offset 301, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 303, len 0, h: attributes[0]: - // parsed:, offset 303, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 305, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 309, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 311, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 313, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: aload_1 // 01 - // + - 2b - // parsed:, offset 5, len 5, h: 0005: invokeinterface ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:()V}, 0001 - // . . . . . -//@mod b9 00 01 01 00 - b9 01 01 01 00 - // parsed:, offset 10, len 1, h: 000a: return - // . - b1 - // parsed:, offset 328, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 330, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 332, len 0, h: end attributes[0] -// parsed:, offset 332, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 332, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 334, len 0, h: attributes[0]: - // parsed:, offset 334, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 336, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 340, len 2, h: source: utf8{"T_invokeinterface_23.java"} - // . . - 00 0f -// parsed:, offset 342, len 0, h: end attributes[0] -// parsed:, offset 342, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.j deleted file mode 100644 index 6aa596f0d927d5eb16e46be53f1e8808cfc9a002..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_23.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23 -.super java/lang/Object - -.method public (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial java/lang/Object/()V - - aload_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.java deleted file mode 100644 index da54e219118c294c38791adb79498438f8664986..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_23.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_23 { - - public T_invokeinterface_23 (ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_3.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_3.j deleted file mode 100644 index d1d46c1c786aa1fd5ed6f765edcd3a424a2469e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_3.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_3.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_3 -.super java/lang/Object - -.method public (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit locals 2 - aload_0 - invokespecial java/lang/Object/()V - - aload_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_3.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_3.java deleted file mode 100644 index 5d85c5a1791c678bdca120efbbd9a0be8f1859c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_3 { - - public T_invokeinterface_3 (ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_4.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_4.java deleted file mode 100644 index fa92a23c63a0ecca4d61f0077b2cd941139949b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_4 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_5.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_5.j deleted file mode 100644 index b3d3d592edb05c1c4a39510f5fc7d5f9e5772cb0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_5.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_5.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_5 -.super java/lang/Object - -.method public (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial java/lang/Object/()V - -; aload_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit()V 1 - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_5.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_5.java deleted file mode 100644 index e80580db6b977a536ceaf61bd5151c104a96d3ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_5 { - - public T_invokeinterface_5 (ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.cfh deleted file mode 100644 index 9d6c6f5386a9339891f92bce72df3a6063d7af25..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.cfh +++ /dev/null @@ -1,206 +0,0 @@ -//@class:dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0014 -// . . - 00 14 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 19, h: 0001: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 29, len 5, h: 0002: ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:(I)V} - // . . . . . - 0b 00 06 00 0a - // parsed:, offset 34, len 9, h: 0003: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 43, len 3, h: 0004: type{java.lang.Object} - // . . . - 07 00 01 - // parsed:, offset 46, len 5, h: 0005: nat{:()V} - // . . . . . - 0c 00 03 00 07 - // parsed:, offset 51, len 3, h: 0006: type{dxc.junit.opcodes.invokeinterface.jm.ITest} - // . . . - 07 00 0b - // parsed:, offset 54, len 6, h: 0007: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 60, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 67, len 59, h: 0009: utf8{"dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6"} - // . . 8 d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / T _ i n v o k e i n t e r f a c e _ 6 - 01 00 38 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 36 - // parsed:, offset 126, len 5, h: 000a: nat{doit:(I)V} - // . . . . . - 0c 00 0f 00 0d - // parsed:, offset 131, len 45, h: 000b: utf8{"dxc/junit/opcodes/invokeinterface/jm/ITest"} - // . . * d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 - // parsed:, offset 176, len 13, h: 000c: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 189, len 7, h: 000d: utf8{"(I)V"} - // . . . ( I ) V - 01 00 04 28 49 29 56 - // parsed:, offset 196, len 6, h: 000e: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 202, len 7, h: 000f: utf8{"doit"} - // . . . d o i t - 01 00 04 64 6f 69 74 - // parsed:, offset 209, len 5, h: 0010: method{java.lang.Object.:()V} - // . . . . . - 0a 00 04 00 05 - // parsed:, offset 214, len 27, h: 0011: utf8{"T_invokeinterface_6.java"} - // . . . T _ i n v o k e i n t e r f a c e _ 6 . j a v a - 01 00 18 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 36 2e 6a 61 76 61 - // parsed:, offset 241, len 3, h: 0012: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_6} - // . . . - 07 00 09 - // parsed:, offset 244, len 50, h: 0013: utf8{"(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V"} - // . . / ( L d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t ; ) V - 01 00 2f 28 4c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 3b 29 56 -// parsed:, offset 294, len 0, h: end constant_pool -// parsed:, offset 294, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 296, len 2, h: this_class: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_6} -// . . - 00 12 -// parsed:, offset 298, len 2, h: super_class: type{java.lang.Object} -// . . - 00 04 -// parsed:, offset 300, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 302, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 304, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 306, len:75,desc: ()V -// parsed:, offset 306, len 0, h: methods[0]: - // parsed:, offset 306, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 308, len 2, h: name: - // . . - 00 03 - // parsed:, offset 310, len 2, h: descriptor: ()V - // . . - 00 07 - // parsed:, offset 312, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 314, len 0, h: attributes[0]: - // parsed:, offset 314, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 316, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 320, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 322, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 324, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 10 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 333, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 335, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 337, len 0, h: end attributes[0] -// parsed:, offset 337, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 337, len:44,desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 337, len 0, h: methods[1]: - // parsed:, offset 337, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 339, len 2, h: name: run - // . . - 00 0e - // parsed:, offset 341, len 2, h: descriptor: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - // . . - 00 13 - // parsed:, offset 343, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 345, len 0, h: attributes[0]: - // parsed:, offset 345, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 347, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 351, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 353, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 355, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: iconst_1 // #+01 - // . - 04 - // parsed:, offset 2, len 5, h: 0002: invokeinterface ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:(I)V}, 0002 - // . . . . . -//@mod b9 00 02 02 00 - b9 00 02 02 01 - // parsed:, offset 7, len 1, h: 0007: return - // . - b1 - // parsed:, offset 367, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 369, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 371, len 0, h: end attributes[0] -// parsed:, offset 371, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 371, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 373, len 0, h: attributes[0]: - // parsed:, offset 373, len 2, h: name: SourceFile - // . . - 00 0c - // parsed:, offset 375, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 379, len 2, h: source: utf8{"T_invokeinterface_6.java"} - // . . - 00 11 -// parsed:, offset 381, len 0, h: end attributes[0] -// parsed:, offset 381, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.j deleted file mode 100644 index 8fff18f535ff37d568a118abc3e1c8d60b0a08a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_6.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - aload_1 - iconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit(I)V 2 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.java deleted file mode 100644 index b2a7846de9229f5d759b20d139c8a2c00604e3a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_6 { - - public void run(ITest test) { - test.doit(1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_7.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_7.j deleted file mode 100644 index 3001e7d3205a5a667be0e23558955880c6cbf1d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_7.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 1 - .limit locals 2 - - aload_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit1()V 1 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_7.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_7.java deleted file mode 100644 index 2a04c77db439848e04cb16294c2981bdef387b7e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_7 { - - public void run(ITest test) { - test.doit(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.cfh deleted file mode 100644 index 7305c39828c74c356624a81042384611ada0e3a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.cfh +++ /dev/null @@ -1,206 +0,0 @@ -//@class:dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0014 -// . . - 00 14 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 19, h: 0001: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 29, len 27, h: 0002: utf8{"T_invokeinterface_8.java"} - // . . . T _ i n v o k e i n t e r f a c e _ 8 . j a v a - 01 00 18 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 38 2e 6a 61 76 61 - // parsed:, offset 56, len 5, h: 0003: ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:(I)V} - // . . . . . - 0b 00 07 00 0b - // parsed:, offset 61, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 70, len 3, h: 0005: type{java.lang.Object} - // . . . - 07 00 01 - // parsed:, offset 73, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 08 - // parsed:, offset 78, len 3, h: 0007: type{dxc.junit.opcodes.invokeinterface.jm.ITest} - // . . . - 07 00 0c - // parsed:, offset 81, len 6, h: 0008: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 87, len 59, h: 0009: utf8{"dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8"} - // . . 8 d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / T _ i n v o k e i n t e r f a c e _ 8 - 01 00 38 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 5f 38 - // parsed:, offset 146, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 153, len 5, h: 000b: nat{doit:(I)V} - // . . . . . - 0c 00 10 00 0e - // parsed:, offset 158, len 45, h: 000c: utf8{"dxc/junit/opcodes/invokeinterface/jm/ITest"} - // . . * d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 - // parsed:, offset 203, len 13, h: 000d: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 216, len 7, h: 000e: utf8{"(I)V"} - // . . . ( I ) V - 01 00 04 28 49 29 56 - // parsed:, offset 223, len 6, h: 000f: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 229, len 7, h: 0010: utf8{"doit"} - // . . . d o i t - 01 00 04 64 6f 69 74 - // parsed:, offset 236, len 5, h: 0011: method{java.lang.Object.:()V} - // . . . . . - 0a 00 05 00 06 - // parsed:, offset 241, len 3, h: 0012: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_8} - // . . . - 07 00 09 - // parsed:, offset 244, len 50, h: 0013: utf8{"(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V"} - // . . / ( L d x c / j u n i t / o p c o d e s / i n v o k e i n t e r f a c e / j m / I T e s t ; ) V - 01 00 2f 28 4c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 69 6e 74 65 72 66 61 63 65 2f 6a 6d 2f 49 54 65 73 74 3b 29 56 -// parsed:, offset 294, len 0, h: end constant_pool -// parsed:, offset 294, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 296, len 2, h: this_class: type{dxc.junit.opcodes.invokeinterface.jm.T_invokeinterface_8} -// . . - 00 12 -// parsed:, offset 298, len 2, h: super_class: type{java.lang.Object} -// . . - 00 05 -// parsed:, offset 300, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 302, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 304, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 306, len:75,desc: ()V -// parsed:, offset 306, len 0, h: methods[0]: - // parsed:, offset 306, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 308, len 2, h: name: - // . . - 00 04 - // parsed:, offset 310, len 2, h: descriptor: ()V - // . . - 00 08 - // parsed:, offset 312, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 314, len 0, h: attributes[0]: - // parsed:, offset 314, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 316, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 320, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 322, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 324, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 11 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 333, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 335, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 337, len 0, h: end attributes[0] -// parsed:, offset 337, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 337, len:44,desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 337, len 0, h: methods[1]: - // parsed:, offset 337, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 339, len 2, h: name: run - // . . - 00 0f - // parsed:, offset 341, len 2, h: descriptor: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - // . . - 00 13 - // parsed:, offset 343, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 345, len 0, h: attributes[0]: - // parsed:, offset 345, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 347, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 351, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 353, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 355, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: iconst_1 // #+01 - // . - 04 - // parsed:, offset 2, len 5, h: 0002: invokeinterface ifaceMethod{dxc.junit.opcodes.invokeinterface.jm.ITest.doit:(I)V}, 0002 - // . . . . . -//@mod b9 00 03 02 00 - b9 00 03 01 00 - // parsed:, offset 7, len 1, h: 0007: return - // . - b1 - // parsed:, offset 367, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 369, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 371, len 0, h: end attributes[0] -// parsed:, offset 371, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V -// parsed:, offset 371, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 373, len 0, h: attributes[0]: - // parsed:, offset 373, len 2, h: name: SourceFile - // . . - 00 0d - // parsed:, offset 375, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 379, len 2, h: source: utf8{"T_invokeinterface_8.java"} - // . . - 00 02 -// parsed:, offset 381, len 0, h: end attributes[0] -// parsed:, offset 381, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.j deleted file mode 100644 index f96c46be6764f87fd2227dc53f9c491cbe872c55..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_8.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - aload_1 - iconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit(I)V 2 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.java deleted file mode 100644 index f64dd1fb8598c06a6c4fda92b01ef6f5e4d7f9e7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_8 { - - public void run(ITest test) { - test.doit(1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_9.j b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_9.j deleted file mode 100644 index a324d420b8ee589198aa03c76adaec0b64216d8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokeinterface_9.java -.class public dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(Ldxc/junit/opcodes/invokeinterface/jm/ITest;)V - .limit stack 2 - .limit locals 2 - - aload_1 -; iconst_1 - invokeinterface dxc/junit/opcodes/invokeinterface/jm/ITest/doit(I)V 2 - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_9.java b/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_9.java deleted file mode 100644 index 8438b8389f56e71c916f5fce967d33b421b63f24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokeinterface/jm/T_invokeinterface_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokeinterface.jm; - -public class T_invokeinterface_9 { - - public void run(ITest test) { - test.doit(1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/Test_invokespecial.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/Test_invokespecial.java deleted file mode 100644 index 3413c3da540ca8e43492a7d6b2ddc8fd7fc10e5a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/Test_invokespecial.java +++ /dev/null @@ -1,393 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_1; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_11; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_12; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_13; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_15; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_16; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_17; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_18; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_19; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_2; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_21; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_7; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_8; -import dxc.junit.opcodes.invokespecial.jm.T_invokespecial_9; - -public class Test_invokespecial extends DxTestCase { - /** - * @title Superclass' method call - */ - public void testN1() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - T_invokespecial_1 t = new T_invokespecial_1(); - assertEquals(5, t.run()); - } - - /** - * @title private method call - */ - public void testN2() { - T_invokespecial_2 t = new T_invokespecial_2(); - assertEquals(345, t.run()); - } - - /** - * @title Invoke method of superclass of superclass - */ - public void testN3() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper2 - T_invokespecial_15 t = new T_invokespecial_15(); - assertEquals(5, t.run()); - } - - /** - * @title Invoke protected method of superclass specifying "this" - * class - */ - public void testN4() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - T_invokespecial_17 t = new T_invokespecial_17(); - assertEquals(5, t.run()); - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Invoke protected method of superclass if method with the - * same name exists in "this" class - */ - public void testN5() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - T_invokespecial_18 t = new T_invokespecial_18(); - assertEquals(5, t.run()); - } - - /** - * @title Check that method's arguments are popped from stack - */ - public void testN6() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - T_invokespecial_19 t = new T_invokespecial_19(); - assertEquals(2, t.run()); - } - - /** - * @title Check that new frame is created by invokespecial - */ - public void testN7() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - T_invokespecial_21 t = new T_invokespecial_21(); - assertEquals(1, t.run()); - } - - /** - * @title Check that monitor is acquired if method is synchronized - */ - public void testN8() { - assertTrue(T_invokespecial_22.execute()); - } - - - - /** - * @title method doesn't exist in "this" and superclass - */ - public void testE1() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - T_invokespecial_7 t = new T_invokespecial_7(); - assertEquals(5, t.run()); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; early resolution - System.out.print("dvmvfe:"); - } - } - - /** - * @title method has different signature - */ - public void testE2() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - T_invokespecial_16 t = new T_invokespecial_16(); - assertEquals(5, t.run()); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; early resolution - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NullPointerException - */ - public void testE3() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - T_invokespecial_8 t = new T_invokespecial_8(); - try { - assertEquals(5, t.run()); - fail("expected NullPointerException"); - } catch (NullPointerException e) { - // expected - } - } - - /** - * @title Attempt to invoke static method - */ - public void testE4() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - T_invokespecial_11 t = new T_invokespecial_11(); - assertEquals(5, t.run()); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Native method can't be linked - */ - public void testE5() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - T_invokespecial_9 t = new T_invokespecial_9(); - try { - assertEquals(5, t.run()); - fail("expected UnsatisfiedLinkError"); - } catch (UnsatisfiedLinkError e) { - // expected - } - } - - /** - * @title Attempt to invoke private method of superclass - */ - public void testE6() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - T_invokespecial_12 t = new T_invokespecial_12(); - assertEquals(5, t.run()); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to invoke abstract method - */ - public void testE7() { - //@uses dxc.junit.opcodes.invokespecial.jm.TAbstract - T_invokespecial_13 t = new T_invokespecial_13(); - try { - assertEquals(5, t.run()); - fail("expected AbstractMethodError"); - } catch (AbstractMethodError e) { - // expected - } - } - - /** - * @constraint 4.8.1.13 - * @title valid index into constant pool table - */ - public void testVFE1() { - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.13 - * @title invalid index into constant pool table - */ - public void testVFE2() { - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_23"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.14 - * @title only <init> may be called - */ - public void testVFE3() { - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.7 - * @title invokespecial target must be in self or superclass - */ - public void testVFE4() { - //@uses dxc.junit.opcodes.invokespecial.jm.TPlain - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE5() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - int - */ - public void testVFE6() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.7 - * @title invokespecial must name method of "this" class or - * superclass - */ - public void testVFE7() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_20"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.7 - * @title number of arguments passed to method - */ - public void testVFE8() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_14"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.12 - * @title types of arguments passed to method - */ - public void testVFE9() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_24"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.13 - * @title assignment incompatible references when accessing - * protected method - */ - public void testVFE10() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - //@uses dxc.junit.opcodes.invokespecial.jm.TPlain - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_25"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.13 - * @title assignment incompatible references when accessing - * public method - */ - public void testVFE11() { - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper - //@uses dxc.junit.opcodes.invokespecial.jm.TSuper2 - try { - Class - .forName("dxc.junit.opcodes.invokespecial.jm.T_invokespecial_26"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TAbstract.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TAbstract.java deleted file mode 100644 index b37a27557217840d09e1723e0c34eea80c335fc3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TAbstract.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public abstract class TAbstract { - public abstract int toInt(); - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TPlain.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TPlain.java deleted file mode 100644 index 166c91a3d6ea22e2f929ae19580103214495acc3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TPlain.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class TPlain { - public int toInt() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TSuper.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TSuper.java deleted file mode 100644 index 3abf06f5719d88261d1060748681dd42aa59d65b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TSuper.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package dxc.junit.opcodes.invokespecial.jm; - -/** - * @author fjost - * - */ -public class TSuper { - public int toInt() { - return 5; - } - - public int toInt(float v) { - return (int)v; - } - - public int testArgsOrder(int a, int b) { - return a/b; - } - - public native int toIntNative(); - - public static int toIntStatic() { - return 5; - } - - protected int toIntP() { - return 5; - } - - private int toIntPvt() { - return 5; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TSuper2.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TSuper2.java deleted file mode 100644 index 049ceddfd09be4d89aa3a015ce2b2d85b0951a54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/TSuper2.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package dxc.junit.opcodes.invokespecial.jm; - -/** - * @author fjost - * - */ -public class TSuper2 extends TSuper { - - public int test() { - return 13; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_1.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_1.j deleted file mode 100644 index b2bbe6f7c14e383eff0d599c5d4b4fc4257fc326..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_1.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_1.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_1 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toInt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_1.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_1.java deleted file mode 100644 index 865d81f98b74e6451d4284b5ed7ab6344c3dd43f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_1 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_10.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_10.j deleted file mode 100644 index ece1dfc5cdda924e2de16a0073a4dcb086b768dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_10.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_10.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_10 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I -; aload_0 - iconst_1 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toInt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_10.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_10.java deleted file mode 100644 index 82226b1841db8b52ce82599574f6ae3783044dde..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_10 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_11.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_11.j deleted file mode 100644 index 7be1c3146dd41a64738b05a209a18662e0a130d0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_11.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_11.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_11 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toIntStatic()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_11.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_11.java deleted file mode 100644 index da69e2f87a7178039c028aedb3aeb2e7273a553b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_11 extends TSuper { - - public int run() { - return super.toIntStatic(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_12.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_12.j deleted file mode 100644 index 3396e82aa244ca1e7a43295548c7584bea520929..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_12.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_12.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_12 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toIntPvt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_12.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_12.java deleted file mode 100644 index 3ad0f097462f9efd5305cbb5d2445b0f7db93128..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_12.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_12 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_13.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_13.j deleted file mode 100644 index 1e639e1a6a93050630968c8eadbc79c609437985..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_13.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_13.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_13 -.super dxc/junit/opcodes/invokespecial/jm/TAbstract - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TAbstract/()V - return -.end method - - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TAbstract/toInt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_13.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_13.java deleted file mode 100644 index 9c43cdce3dde7550530c0281dec23cc9326dba65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_13.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_13 extends TAbstract { - - public int toInt() { - return 5; - } - - public int run() { - return toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_14.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_14.j deleted file mode 100644 index 983792ef8ef386a68c9a0db76ee87df175885bbc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_14.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_14.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_14 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - .limit stack 2 - aload_0 -; ldc 5.0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toInt(F)I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_14.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_14.java deleted file mode 100644 index 619f75f9b0d079d8df6c6a9b594051591b6fc68b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_14.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_14 extends TSuper { - - public int run() { - return super.toInt(5f); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_15.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_15.j deleted file mode 100644 index 51650d9fcffe35720dbabdadffc7e7e054df3e35..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_15.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_15.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_15 -.super dxc/junit/opcodes/invokespecial/jm/TSuper2 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper2/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper2/toInt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_15.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_15.java deleted file mode 100644 index cabb444d885fbd82e209fd4a40662a62489b9b44..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_15.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_15 extends TSuper2 { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_16.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_16.j deleted file mode 100644 index 76c397c1751b50892a69e8e8324f87b81c2a5245..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_16.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_16.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_16 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toInt()F - pop - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_16.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_16.java deleted file mode 100644 index 7cdb15ab26fd2e9591c23573f724838d9b20d764..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_16.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_16 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17.j deleted file mode 100644 index 6a02a3c7b27eccf76d2bc421dfb102df10fc5ec9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_17.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17/toIntP()I - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17.java deleted file mode 100644 index 6c9a6dae68da62c5a1634ac124134a231851f973..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_17.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_17 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_18.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_18.j deleted file mode 100644 index c12833bca99481b08ddfbea506ef53d1bd8f1aef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_18.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_18.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_18 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toIntP()I - ireturn - -.end method - -.method protected toIntP()I - - sipush 10 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_18.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_18.java deleted file mode 100644 index 7821f264dd960c0b357f2e5616edd202e56ca4b4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_18.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_18 extends TSuper { - - protected int toIntP() { - return 10; - } - - public int run() { - return super.toIntP(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_19.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_19.j deleted file mode 100644 index bcbee9bbd3721baa5b03da596b8b6c8202c3358c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_19.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_19.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_19 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - .limit stack 4 - .limit locals 2 - iconst_1 - aload_0 - sipush 128 - sipush 64 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/testArgsOrder(II)I - istore_1 - iconst_1 - if_icmpeq Label1 - iinc 1 1 -Label1: - iload_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_19.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_19.java deleted file mode 100644 index c828ff1eb39fcb9f1d5c75c48b676835120a4195..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_19.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_19 extends TSuper { - - public int run() { - return super.testArgsOrder(128, 64); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2.j deleted file mode 100644 index 4dbda7f041036a8a33e1ce65b49123d17da69452..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_2.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2/getInt()I - ireturn -.end method - -.method private getInt()I - sipush 345 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2.java deleted file mode 100644 index d7e604e4f362755d156a6754542fb3686883446c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_2.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_2 { - - public int run() { - return getInt(); - } - - private int getInt() { - return 345; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_20.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_20.j deleted file mode 100644 index b7e0b34fa87cd3d74bbc9f3ef784c661537c68d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_20.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_20.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_20 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - aload_0 - invokespecial toInt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_20.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_20.java deleted file mode 100644 index 48df5d2fe9d60bdc61dbb0c5476e1aeb2000ca62..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_20.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_20 extends TSuper { - - public int run() { - return toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21.j deleted file mode 100644 index 961b329de3cc33763287b2ff794680584c678a7f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21.j +++ /dev/null @@ -1,67 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_21.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - .limit locals 3 - .limit stack 5 - - sipush 123 - istore_1 - sipush 456 - istore_2 - - aload_0 - iconst_1 - iconst_2 - invokespecial dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21/test(II)I - - sipush 5 - if_icmpne Label0 - - iload_1 - sipush 123 - if_icmpne Label0 - - iload_2 - sipush 456 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn -.end method - -.method private test(II)I - .limit locals 3 - sipush 987 - istore_1 - sipush 765 - istore_2 - - sipush 5 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21.java deleted file mode 100644 index 2e3ab917843026121d0759ee59ff2ec7f1589b49..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_21.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_21 extends TSuper { - - - private int test(int a, int b) { - int i = 0; - int j = 0; - return 5; - } - - public int run() { - int i = 123; - int j = 456; - test(0, 1); - - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22.j deleted file mode 100644 index e2bdcbbbd71b8c9c0190b33615127bbff7760ad1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22.j +++ /dev/null @@ -1,159 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_22.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22 -.super java/lang/Object -.implements java/lang/Runnable - -.field value I -.field failed Z - -.method public ()V - .limit stack 3 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.value I - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.failed Z - - return - -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label4: - iload_1 - sipush 1000 - if_icmpge Label3 - - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22/test()V - - iinc 1 1 - - goto Label4 - - -Label3: - return - -.end method - - - -.method private synchronized test()V - .limit stack 3 - .limit locals 2 - -.line 16 - aload_0 - dup - getfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.value I - dup - istore_1 - - iconst_1 - iadd - putfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.value I - - iinc 1 1 - - invokestatic java/lang/Thread/yield()V - - iload_1 - aload_0 - getfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.value I - if_icmpeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.failed Z - -Label0: - return -.end method - - - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22 - dup - invokespecial dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: ; exception handler - astore_3 - goto Label3 - -Label0: - aload_0 - getfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.value I - sipush 2000 - if_icmpne Label3 - - aload_0 - getfield dxc.junit.opcodes.invokespecial.jm.T_invokespecial_22.failed Z - ifne Label3 - - iconst_1 - ireturn - -Label3: - iconst_0 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22.java deleted file mode 100644 index b9cb14fb1dd29fe3082664e58a67afffdfdabe1d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_22.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_22 implements Runnable { - public final static int CNT = 1000; - int value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized void test() { - value++; - int c = value; - Thread.yield(); - if(c != value) - failed = true; - } - - public static boolean execute() { - T_invokespecial_22 test = new T_invokespecial_22(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.cfh deleted file mode 100644 index feb9dcb05c51cef96bc032768f09247722f9fa96..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.cfh +++ /dev/null @@ -1,131 +0,0 @@ -//@class:dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000c -// . . - 00 0c -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0b 00 05 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 5, h: 0005: nat{:()V} - // . . . . . - 0c 00 04 00 09 - // parsed:, offset 61, len 56, h: 0006: utf8{"dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23"} - // . . 5 d x c / j u n i t / o p c o d e s / i n v o k e s p e c i a l / j m / T _ i n v o k e s p e c i a l _ 2 3 - 01 00 35 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 73 70 65 63 69 61 6c 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 73 70 65 63 69 61 6c 5f 32 33 - // parsed:, offset 117, len 7, h: 0007: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 124, len 26, h: 0008: utf8{"T_invokespecial_23.java"} - // . . . T _ i n v o k e s p e c i a l _ 2 3 . j a v a - 01 00 17 54 5f 69 6e 76 6f 6b 65 73 70 65 63 69 61 6c 5f 32 33 2e 6a 61 76 61 - // parsed:, offset 150, len 6, h: 0009: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 156, len 3, h: 000a: type{dxc.junit.opcodes.invokespecial.jm.T_invokespecial_23} - // . . . - 07 00 06 - // parsed:, offset 159, len 3, h: 000b: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.invokespecial.jm.T_invokespecial_23} -// . . - 00 0a -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0b -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:, offset 174, len:41,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 04 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . -//@mod b7 00 01 - b7 01 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// parsed:, offset 205, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 207, len 0, h: attributes[0]: - // parsed:, offset 207, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 209, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 213, len 2, h: source: utf8{"T_invokespecial_23.java"} - // . . - 00 08 -// parsed:, offset 215, len 0, h: end attributes[0] -// parsed:, offset 215, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.j deleted file mode 100644 index 4e92d4435d2b9ee5319d0d6e23d063be78394a79..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.j +++ /dev/null @@ -1,23 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_23.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.java deleted file mode 100644 index c4b048e1016931394296a0ded0a0e2547e701993..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_23.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_23 { - - public T_invokespecial_23() { - // only constructor - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_24.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_24.j deleted file mode 100644 index 487c7c61fad51d4b849f9a118650bfc5bb4cebf5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_24.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_24.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_24 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - .limit stack 3 - aload_0 - dconst_1 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toInt(F)I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_24.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_24.java deleted file mode 100644 index ef6235384eaa1d6f925cfb082c767fcd0b96dad8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_24.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_24 extends TSuper { - - public int run() { - return super.toInt(5f); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_25.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_25.j deleted file mode 100644 index 764c322a0db40d1b32f1bfcd0bd182faa038bd2d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_25.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_25.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_25 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - - return -.end method - - -.method public run()I - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/invokespecial/jm/TPlain - dup - invokespecial dxc/junit/opcodes/invokespecial/jm/TPlain/()V - astore_1 - - aload_1 - invokevirtual dxc/junit/opcodes/invokespecial/jm/TSuper/toIntP()I - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_25.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_25.java deleted file mode 100644 index 9f2a0052a3d685ba0bb4ce2f1e66792687f88880..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_25.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_25 extends TSuper { - - public int run() { - TPlain p = new TPlain(); - return p.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_26.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_26.j deleted file mode 100644 index ba28332604ab80649600f0e97b5e5ca0575c55ed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_26.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_26.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_26 -.super dxc/junit/opcodes/invokespecial/jm/TSuper2 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper2/()V - return -.end method - -.method public run()I - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/invokespecial/jm/TSuper - dup - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper2/test()I - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_26.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_26.java deleted file mode 100644 index ffd72f392968e24ab55ef2bcfc31bd9e6c6a94db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_26.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_26 extends TSuper2 { - - public int run() { - return super.test(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.cfh deleted file mode 100644 index 89ebfaebf13ef4c559826698d951a5e2c05497f5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.cfh +++ /dev/null @@ -1,132 +0,0 @@ -//@class:dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000c -// . . - 00 0c -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0b 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 55, h: 0003: utf8{"dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3"} - // . . 4 d x c / j u n i t / o p c o d e s / i n v o k e s p e c i a l / j m / T _ i n v o k e s p e c i a l _ 3 - 01 00 34 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 73 70 65 63 69 61 6c 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 73 70 65 63 69 61 6c 5f 33 - // parsed:, offset 89, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 102, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 111, len 25, h: 0006: utf8{"T_invokespecial_3.java"} - // . . . T _ i n v o k e s p e c i a l _ 3 . j a v a - 01 00 16 54 5f 69 6e 76 6f 6b 65 73 70 65 63 69 61 6c 5f 33 2e 6a 61 76 61 - // parsed:, offset 136, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0a - // parsed:, offset 141, len 3, h: 0008: type{dxc.junit.opcodes.invokespecial.jm.T_invokespecial_3} - // . . . - 07 00 03 - // parsed:, offset 144, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 151, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 157, len 3, h: 000b: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 160, len 0, h: end constant_pool -// parsed:, offset 160, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 162, len 2, h: this_class: type{dxc.junit.opcodes.invokespecial.jm.T_invokespecial_3} -// . . - 00 08 -// parsed:, offset 164, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0b -// parsed:, offset 166, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 168, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: methods_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:, offset 172, len:41,desc: ()V -// parsed:, offset 172, len 0, h: methods[0]: - // parsed:, offset 172, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 174, len 2, h: name: - // . . - 00 05 - // parsed:, offset 176, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 178, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 180, len 0, h: attributes[0]: - // parsed:, offset 180, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 182, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 186, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 188, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 190, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - //@mod:b7 00 01 - b7 00 02 - - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 199, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 201, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 203, len 0, h: end attributes[0] -// parsed:, offset 203, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// parsed:, offset 203, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 205, len 0, h: attributes[0]: - // parsed:, offset 205, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 207, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 211, len 2, h: source: utf8{"T_invokespecial_3.java"} - // . . - 00 06 -// parsed:, offset 213, len 0, h: end attributes[0] -// parsed:, offset 213, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.j deleted file mode 100644 index f62d5371629c6931f49a5fc2d8342e45e4c1359e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.j +++ /dev/null @@ -1,23 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_3.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.java deleted file mode 100644 index bd1a34ea584306fce4b7a2b79e004ce8a379df3b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_3 { - - public T_invokespecial_3() { - // only constructor - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_4.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_4.j deleted file mode 100644 index 072e67da6d3696bc743e098771a487337a7d22ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_4.j +++ /dev/null @@ -1,23 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_4.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_4.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_4.java deleted file mode 100644 index 04b907f1d5df5a29e98f38c7c6d0443b00dab0a6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_4 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_5.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_5.j deleted file mode 100644 index 1a6a6a75b74b8a5bcae463197e5ef2e9f06d9b4a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_5.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_5.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_5 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I -; aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toInt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_5.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_5.java deleted file mode 100644 index 40b961e451cb110ee3f6c7e3a82c892d7b8f37dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_5 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_6.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_6.j deleted file mode 100644 index 14db5c5b307943ccdbbd7d82d045934188f11301..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_6.j +++ /dev/null @@ -1,23 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_6.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TPlain/doit()V - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_6.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_6.java deleted file mode 100644 index eed67c7a68452d42b2534faf9fc11e59a89786e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_6.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_6 { - - public void run() { - pri(); - pro(); - } - - protected void pro() { - // TODO Auto-generated method stub - - } - - private void pri() { - // TODO Auto-generated method stub - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7.j deleted file mode 100644 index c1d5d80f390fcf734de1bae87ea50e61fa3324a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_7.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7/toInt1()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7.java deleted file mode 100644 index b62ed8ffbacc53ef8ecba69f0eb7d6f960361adc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_7 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_8.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_8.j deleted file mode 100644 index e8326609ee3f0d4877680a8289a2cbba3637f9cf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_8.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_8.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_8 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I -; aload_0 - aconst_null - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toInt()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_8.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_8.java deleted file mode 100644 index e11e63880f5bc211dea03bb1ac7499463c0ee01b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_8 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_9.j b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_9.j deleted file mode 100644 index 244fb4b350c99f41fdc35d0c205fbe7d4b9a90b7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_9.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokespecial_9.java -.class public dxc/junit/opcodes/invokespecial/jm/T_invokespecial_9 -.super dxc/junit/opcodes/invokespecial/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/()V - return -.end method - -.method public run()I - aload_0 - invokespecial dxc/junit/opcodes/invokespecial/jm/TSuper/toIntNative()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_9.java b/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_9.java deleted file mode 100644 index 4a0b27a58919c3382a32a1afb93a5ac63f9bab7d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokespecial/jm/T_invokespecial_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokespecial.jm; - -public class T_invokespecial_9 extends TSuper { - - public int run() { - return super.toInt(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/TestStubs.java deleted file mode 100644 index 9d5cfeaf23c3182c235756c498fc9fd5df34b161..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/TestStubs.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic; - -public class TestStubs { - - protected void TestStub() { - // used by testE9 - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/Test_invokestatic.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/Test_invokestatic.java deleted file mode 100644 index e506a30b088012d6e056cf984d5d673ed3e736f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/Test_invokestatic.java +++ /dev/null @@ -1,302 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_1; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_13; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_14; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_15; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_16; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_17; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_18; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_2; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_4; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_5; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_6; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_7; -import dxc.junit.opcodes.invokestatic.jm.T_invokestatic_8; - -public class Test_invokestatic extends DxTestCase { - - /** - * @title Static method from library class Math - */ - public void testN1() { - T_invokestatic_1 t = new T_invokestatic_1(); - assertEquals(1234567, t.run()); - } - - /** - * @title Static method from user class - */ - public void testN2() { - // @uses dxc.junit.opcodes.invokestatic.jm.TestClass - T_invokestatic_2 t = new T_invokestatic_2(); - assertEquals(777, t.run()); - } - - /** - * @title Check that is called - */ - public void testN3() { - assertEquals(123456789l, T_invokestatic_4.run()); - } - - /** - * @title Check that monitor is acquired if method is synchronized - */ - public void testN4() { - assertTrue(T_invokestatic_12.execute()); - } - - /** - * @title Check that new frame is created by invokestatic and - * arguments are passed to method - */ - public void testN5() { - // @uses dxc.junit.opcodes.invokestatic.jm.TestClass - T_invokestatic_15 t = new T_invokestatic_15(); - assertTrue(t.run()); - } - - /** - * @title Static protected method from other class in the same package - */ - public void testN6() { - // @uses dxc.junit.opcodes.invokestatic.jm.TestClass - T_invokestatic_18 t = new T_invokestatic_18(); - assertEquals(888, t.run()); - } - - /** - * @title attempt to call non-static method - * - */ - public void testE1() { - try { - T_invokestatic_5 t = new T_invokestatic_5(); - t.run(); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError icce) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Native method can't be linked - * - */ - public void testE2() { - T_invokestatic_6 t = new T_invokestatic_6(); - try { - t.run(); - fail("expected UnsatisfiedLinkError"); - } catch (UnsatisfiedLinkError ule) { - // expected - } - } - - /** - * @title NoSuchMethodError - */ - public void testE3() { - try { - T_invokestatic_7 t = new T_invokestatic_7(); - t.run(); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError nsme) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to call private method of other class - * - */ - public void testE5() { - // @uses dxc.junit.opcodes.invokestatic.jm.TestClass - try { - T_invokestatic_8 t = new T_invokestatic_8(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title method has different signature - */ - public void testE6() { - // @uses dxc.junit.opcodes.invokestatic.jm.TestClass - try { - T_invokestatic_13 t = new T_invokestatic_13(); - t.run(); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError nsme) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title initialization of referenced class throws exception - */ - public void testE7() { - // @uses dxc.junit.opcodes.invokestatic.jm.TestClassInitError - T_invokestatic_14 t = new T_invokestatic_14(); - try { - t.run(); - fail("expected Error"); - } catch (Error e) { - // expected - } - } - - /** - * @title Attempt to call abstract method of other class - * - */ - public void testE8() { - // @uses dxc.junit.opcodes.invokestatic.jm.TestClassAbstract - try { - T_invokestatic_16 t = new T_invokestatic_16(); - t.run(); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to call protected method of unrelated class - * - */ - public void testE9() { - // @uses dxc.junit.opcodes.invokestatic.TestStubs - try { - T_invokestatic_17 t = new T_invokestatic_17(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.13 - * @title invalid type into constant pool - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.invokestatic.jm.T_invokestatic_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.13 - * @title invalid index into constant pool table - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.invokestatic.jm.T_invokestatic_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.14 - * @title <clinit> may not be called using invokestatic - */ - public void testVFE3() { - try { - Class - .forName("dxc.junit.opcodes.invokestatic.jm.T_invokestatic_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments passed to method - */ - public void testVFE4() { - try { - Class - .forName("dxc.junit.opcodes.invokestatic.jm.T_invokestatic_11"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.14 - * @title <init> may not be called using invokestatic - */ - public void testVFE5() { - try { - Class - .forName("dxc.junit.opcodes.invokestatic.jm.T_invokestatic_19"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.12 - * @title types of arguments passed to method - */ - public void testVFE6() { - try { - Class - .forName("dxc.junit.opcodes.invokestatic.jm.T_invokestatic_20"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_1.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_1.j deleted file mode 100644 index 59b7ab8a275e3328521e0848c61a6d28c5be6393..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_1.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_1.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - ldc -1234567 - invokestatic java/lang/Math/abs(I)I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_1.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_1.java deleted file mode 100644 index c145a8eaea17ec0bdf66b2f3b5d678d0c469c1e8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_1 { - - public int run() { - return Math.abs(-1234567); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10.j deleted file mode 100644 index 4a82b56cea80da571e3bbc629145fc847e2239de..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_10.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10 -.super java/lang/Object - -.field static v I - -.method static ()V - .limit stack 2 - .limit locals 0 - - ldc 1 - putstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_10.v I - return -.end method - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - invokestatic dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10/()V - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10.java deleted file mode 100644 index aeabf231bc95f0474ecf694bc2c027fac2ca5715..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_10 { - - public int run() { - return Math.abs(-1234567); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_11.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_11.j deleted file mode 100644 index 49f3b5cd76f2f07ca21f0b52aea8ee13b12179a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_11.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_11.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I -; ldc -1234567 - invokestatic java/lang/Math/abs(I)I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_11.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_11.java deleted file mode 100644 index 89cf79854c562fe9c218a5c793cb06d7c046106f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_11 { - - public int run() { - return Math.abs(-1234567); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12.j deleted file mode 100644 index 1b1ab55b02bcfe699280c030d4954399e65729be..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12.j +++ /dev/null @@ -1,146 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_12.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12 -.super java/lang/Object -.implements java/lang/Runnable - -.field static value I -.field static failed Z - -.method static ()V - .limit stack 1 - iconst_0 - putstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.value I - - iconst_0 - putstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.failed Z - - return -.end method - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - - Label1: - invokestatic dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12/test()V - - iinc 1 1 - - iload_1 - sipush 1000 - if_icmplt Label1 - - return - -.end method - - -.method private static synchronized test()V - .limit stack 2 - .limit locals 1 - - getstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.value I - iconst_1 - iadd - putstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.value I - - getstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.value I - istore_0 - - invokestatic java/lang/Thread/yield()V - - iload_0 - getstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.value I - if_icmpeq Label0 - - iconst_1 - putstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.failed Z - -Label0: - return -.end method - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12 - dup - invokespecial dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: - astore_3 - iconst_0 - ireturn - -Label0: - getstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.value I - sipush 2000 - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - getstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_12.failed Z - ifeq Label2 - iconst_0 - ireturn - -Label2: - iconst_1 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12.java deleted file mode 100644 index 11fc236c2f00d4b86d53afa3590fccb3355254b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_12.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_12 implements Runnable { - public final static int CNT = 1000; - static int value = 0; - static boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized static void test() { - value++; - int c = value; - Thread.yield(); - if(c != value) - failed = true; - } - - public static boolean execute() { - T_invokestatic_12 test = new T_invokestatic_12(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(value != CNT * 2) - return false; - return !failed; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_13.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_13.j deleted file mode 100644 index 9b008f7c876ab1074ca5da76345137b21e2b2bd4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_13.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_13.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_13 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 1 - .limit locals 1 - - fconst_1 - invokestatic dxc/junit/opcodes/invokestatic/jm/TestClass/test1(F)I - pop - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_13.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_13.java deleted file mode 100644 index e265d150b2e00ca2a86b364384b3a2b3bdcc9ca4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_13.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_13 { - - public void run(){ - TestClass.test1(1); - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_14.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_14.j deleted file mode 100644 index ce3423ca0045c895c033d91314e5f701b9c6dfd8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_14.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_14.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_14 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/invokestatic/jm/TestClassInitError/test()V - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_14.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_14.java deleted file mode 100644 index c003d1538e6ec02db26d77bacab5e59c0c7b2bbc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_14.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_14 { - - public void run(){ - TestClassInitError.test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_15.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_15.j deleted file mode 100644 index dfbf89643d929a8f2f846e97f6977b68641c019b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_15.j +++ /dev/null @@ -1,60 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_15.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_15 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Z - .limit stack 2 - .limit locals 3 - - bipush 123 - istore_1 - - sipush 345 - istore_2 - - sipush 12 - sipush 6 - - invokestatic dxc/junit/opcodes/invokestatic/jm/TestClass/testArgsOrder(II)I - - iconst_2 - if_icmpne Label0 - - iload_1 - bipush 123 - if_icmpne Label0 - - iload_2 - sipush 345 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_15.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_15.java deleted file mode 100644 index 26dfe061f6b5f63fac173d211edc19ff4ca1478b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_15.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_15 { - - public boolean run(){ - int i = 123; - int j = 345; - if(TestClass.testArgsOrder(12, 2) == 6) - if(i == 123) - if(j == 345) - return true; - return false; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_16.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_16.j deleted file mode 100644 index 4b88c39e0fffe72b8d3b39b4cea798cbadbb9cdb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_16.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_16.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_16 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/invokestatic/jm/TestClassAbstract/test()V - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_16.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_16.java deleted file mode 100644 index e59ad7847142a23a7b74329316c5f4b947b53720..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_16.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_16 { - - public void run(){ - // TestClassAbstract.test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_17.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_17.j deleted file mode 100644 index ce62483a3d1e08aec4bbf8b52811b4d026c1ba0b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_17.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_17.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_17 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/invokestatic/TestStubs/TestStub()V - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_17.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_17.java deleted file mode 100644 index 995e4dadd0b9cf23eead63f7857264621693dc67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_17.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_17 { - - public void run(){ - // TestStubs.TestStub(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_18.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_18.j deleted file mode 100644 index 1089e3575c38393d8a4ff9dae563e5dfee915928..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_18.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_18.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_18 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - invokestatic dxc/junit/opcodes/invokestatic/jm/TestClass/testP()I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_18.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_18.java deleted file mode 100644 index 7a168c67dbb5d9df5d4334323746ac811cd44b82..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_18.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -import dxc.junit.opcodes.invokestatic.jm.TestClass; - -public class T_invokestatic_18 { - - public int run() { - return TestClass.testP(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_19.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_19.j deleted file mode 100644 index 70b7401a257dc5a3b8a6b9faa547647a076e7681..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_19.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_19.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_19 -.super java/lang/Object - -.method public ()V - aload_0 - invokestatic java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - iconst_0 - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_19.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_19.java deleted file mode 100644 index 0c712c1f9070349357b233b8fda987eefda6311b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_19.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_19 { - - public int run() { - return Math.abs(-1234567); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_2.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_2.j deleted file mode 100644 index 7eb536296561273ff3fe14ed91cddd0eb70f2b16..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_2.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_2.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - invokestatic dxc/junit/opcodes/invokestatic/jm/TestClass/test()I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_2.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_2.java deleted file mode 100644 index 3ca965e852838a203fd9008bed9aaf4dfae51fd5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -import dxc.junit.opcodes.invokestatic.jm.TestClass; - -public class T_invokestatic_2 { - - public int run() { - return TestClass.test(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_20.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_20.j deleted file mode 100644 index 638d7a84a1c86f9f7e025e0163cb3fe84c65727d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_20.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_20.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_20 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 2 -; ldc -1234567 - ldc2_w 1 - invokestatic java/lang/Math/abs(I)I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_20.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_20.java deleted file mode 100644 index 7aabdc0c94977a994d3694f36c341149bf490984..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_20.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_20 { - - public int run() { - return Math.abs(-1234567); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.cfh deleted file mode 100644 index d3cdaf8a11ad5bb618fac152bdd31bbdab6dae7a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.cfh +++ /dev/null @@ -1,206 +0,0 @@ -//@class:dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0015 -// . . - 00 15 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 19, h: 0001: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 29, len 9, h: 0002: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 38, len 3, h: 0003: type{java.lang.Object} - // . . . - 07 00 01 - // parsed:, offset 41, len 5, h: 0004: nat{:()V} - // . . . . . - 0c 00 02 00 05 - // parsed:, offset 46, len 6, h: 0005: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 52, len 7, h: 0006: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 59, len 13, h: 0007: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 72, len 6, h: 0008: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 78, len 6, h: 0009: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 84, len 3, h: 000a: type{java.lang.Math} - // . . . - 07 00 11 - // parsed:, offset 87, len 6, h: 000b: utf8{"abs"} - // . . . a b s - 01 00 03 61 62 73 - // parsed:, offset 93, len 5, h: 000c: method{java.lang.Object.:()V} - // . . . . . - 0a 00 03 00 04 - // parsed:, offset 98, len 5, h: 000d: method{java.lang.Math.abs:(I)I} - // . . . . . - 0a 00 0a 00 13 - // parsed:, offset 103, len 53, h: 000e: utf8{"dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3"} - // . . 2 d x c / j u n i t / o p c o d e s / i n v o k e s t a t i c / j m / T _ i n v o k e s t a t i c _ 3 - 01 00 32 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 73 74 61 74 69 63 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 73 74 61 74 69 63 5f 33 - // parsed:, offset 156, len 7, h: 000f: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 - // parsed:, offset 163, len 3, h: 0010: type{dxc.junit.opcodes.invokestatic.jm.T_invokestatic_3} - // . . . - 07 00 0e - // parsed:, offset 166, len 17, h: 0011: utf8{"java/lang/Math"} - // . . . j a v a / l a n g / M a t h - 01 00 0e 6a 61 76 61 2f 6c 61 6e 67 2f 4d 61 74 68 - // parsed:, offset 183, len 5, h: 0012: int{0xffed2979 / -1234567} - // . . . ) y - 03 ff ed 29 79 - // parsed:, offset 188, len 5, h: 0013: nat{abs:(I)I} - // . . . . . - 0c 00 0b 00 0f - // parsed:, offset 193, len 24, h: 0014: utf8{"T_invokestatic_3.java"} - // . . . T _ i n v o k e s t a t i c _ 3 . j a v a - 01 00 15 54 5f 69 6e 76 6f 6b 65 73 74 61 74 69 63 5f 33 2e 6a 61 76 61 -// parsed:, offset 217, len 0, h: end constant_pool -// parsed:, offset 217, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 219, len 2, h: this_class: type{dxc.junit.opcodes.invokestatic.jm.T_invokestatic_3} -// . . - 00 10 -// parsed:, offset 221, len 2, h: super_class: type{java.lang.Object} -// . . - 00 03 -// parsed:, offset 223, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 225, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 227, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 229, len:73,desc: ()V -// parsed:, offset 229, len 0, h: methods[0]: - // parsed:, offset 229, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 231, len 2, h: name: - // . . - 00 02 - // parsed:, offset 233, len 2, h: descriptor: ()V - // . . - 00 05 - // parsed:, offset 235, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 237, len 0, h: attributes[0]: - // parsed:, offset 237, len 2, h: name: Code - // . . - 00 06 - // parsed:, offset 239, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 243, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 245, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 247, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 0c - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 256, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 258, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 260, len 0, h: end attributes[0] -// parsed:, offset 260, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 260, len:42,desc: ()I -// parsed:, offset 260, len 0, h: methods[1]: - // parsed:, offset 260, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 262, len 2, h: name: run - // . . - 00 09 - // parsed:, offset 264, len 2, h: descriptor: ()I - // . . - 00 08 - // parsed:, offset 266, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 268, len 0, h: attributes[0]: - // parsed:, offset 268, len 2, h: name: Code - // . . - 00 06 - // parsed:, offset 270, len 4, h: length: 00000012 - // . . . . - 00 00 00 12 - // parsed:, offset 274, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 276, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 278, len 4, h: code_length: 00000006 - // . . . . - 00 00 00 06 - // parsed:, offset 0, len 2, h: 0000: ldc #-0012d687 - // . . - 12 12 - // parsed:, offset 2, len 3, h: 0002: invokestatic method{java.lang.Math.abs:(I)I} - // . . . -//@mod b8 00 0d - b8 00 0e - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 288, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 290, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 292, len 0, h: end attributes[0] -// parsed:, offset 292, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 292, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 294, len 0, h: attributes[0]: - // parsed:, offset 294, len 2, h: name: SourceFile - // . . - 00 07 - // parsed:, offset 296, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 300, len 2, h: source: utf8{"T_invokestatic_3.java"} - // . . - 00 14 -// parsed:, offset 302, len 0, h: end attributes[0] -// parsed:, offset 302, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.j deleted file mode 100644 index 271a935e6cee8519a4085cbd2dd23997e2f19361..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_3.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - ldc -1234567 - invokestatic java/lang/Math/abs(I)I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.java deleted file mode 100644 index e6fb064c02bb99c1458357dff3295a6186bfce98..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_3 { - - public int run() { - return Math.abs(-1234567); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_4.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_4.j deleted file mode 100644 index f8c2bb111f373d181ecfb5e97553dcd3de61421f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_4.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_4.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_4 -.super java/lang/Object - -.field static v2 J - -.method static ()V - .limit stack 2 - .limit locals 0 - - ldc2_w 123456789 - putstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_4.v2 J - return -.end method - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()J - .limit stack 2 - .limit locals 2 - - getstatic dxc.junit.opcodes.invokestatic.jm.T_invokestatic_4.v2 J - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_4.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_4.java deleted file mode 100644 index d87b044243f6aa573bd1ea7eca0eb3a4f1603459..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_4.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_4 { - - static long v2 = 123456789l; - - public static long run() { - return v2; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5.j deleted file mode 100644 index c75484f8db201696b94a4d47c6b5e793e9b00066..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_5.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 2 - .limit locals 1 - - aload_0 - iconst_5 - invokestatic dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5/test(I)I - ireturn - -.end method - -.method public test(I)I - .limit stack 1 - .limit locals 2 - - iload_1 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5.java deleted file mode 100644 index c9448c1d60f3068e554cc54d3a24a8b41dfb426b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_5.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_5 { - - public int run() { - return test(5); - } - - public int test(int i1) { - return i1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6.j deleted file mode 100644 index 3ad06d88397219e5ddeb6c319a9bfca03e0f0cae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_6.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static native test()V -.end method - -.method public run()V - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6/test()V - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6.java deleted file mode 100644 index 4d3885843931bf374b051c7343a9e0efae3e1543..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_6.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_6 { - - public static native void test(); - - public void run() { - test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7.j deleted file mode 100644 index 97d9b7b1b36f49fc1568d7fba672ec39f9f6cf2b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_7.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static test()V - .limit stack 0 - .limit locals 0 - return -.end method - -.method public run()V - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7/test1()V - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7.java deleted file mode 100644 index 187b33d36094ef257b8882826ae3a557df1a7fdb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_7.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_7 { - - public static void test(){ - } - - public void run(){ - test(); - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_8.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_8.j deleted file mode 100644 index fdc33e20280d4ac8fba70002eeada19112deb772..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_8.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_8.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - invokestatic dxc/junit/opcodes/invokestatic/jm/TestClass/testPvt()V - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_8.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_8.java deleted file mode 100644 index 35a31572d45e19925f01dcd72b62b67d24ae8063..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_8 { - - public void run(){ - TestClass.test(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.cfh deleted file mode 100644 index 7add6ce129e34a66c5e87bacf5118f25c1dac8a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.cfh +++ /dev/null @@ -1,206 +0,0 @@ -//@class:dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0015 -// . . - 00 15 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 19, h: 0001: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 29, len 9, h: 0002: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 38, len 3, h: 0003: type{java.lang.Object} - // . . . - 07 00 01 - // parsed:, offset 41, len 5, h: 0004: nat{:()V} - // . . . . . - 0c 00 02 00 05 - // parsed:, offset 46, len 6, h: 0005: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 52, len 7, h: 0006: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 59, len 13, h: 0007: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 72, len 53, h: 0008: utf8{"dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9"} - // . . 2 d x c / j u n i t / o p c o d e s / i n v o k e s t a t i c / j m / T _ i n v o k e s t a t i c _ 9 - 01 00 32 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 73 74 61 74 69 63 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 73 74 61 74 69 63 5f 39 - // parsed:, offset 125, len 6, h: 0009: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 131, len 6, h: 000a: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 137, len 3, h: 000b: type{java.lang.Math} - // . . . - 07 00 12 - // parsed:, offset 140, len 6, h: 000c: utf8{"abs"} - // . . . a b s - 01 00 03 61 62 73 - // parsed:, offset 146, len 5, h: 000d: method{java.lang.Object.:()V} - // . . . . . - 0a 00 03 00 04 - // parsed:, offset 151, len 5, h: 000e: method{java.lang.Math.abs:(I)I} - // . . . . . - 0a 00 0b 00 14 - // parsed:, offset 156, len 3, h: 000f: type{dxc.junit.opcodes.invokestatic.jm.T_invokestatic_9} - // . . . - 07 00 08 - // parsed:, offset 159, len 24, h: 0010: utf8{"T_invokestatic_9.java"} - // . . . T _ i n v o k e s t a t i c _ 9 . j a v a - 01 00 15 54 5f 69 6e 76 6f 6b 65 73 74 61 74 69 63 5f 39 2e 6a 61 76 61 - // parsed:, offset 183, len 7, h: 0011: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 - // parsed:, offset 190, len 17, h: 0012: utf8{"java/lang/Math"} - // . . . j a v a / l a n g / M a t h - 01 00 0e 6a 61 76 61 2f 6c 61 6e 67 2f 4d 61 74 68 - // parsed:, offset 207, len 5, h: 0013: int{0xffed2979 / -1234567} - // . . . ) y - 03 ff ed 29 79 - // parsed:, offset 212, len 5, h: 0014: nat{abs:(I)I} - // . . . . . - 0c 00 0c 00 11 -// parsed:, offset 217, len 0, h: end constant_pool -// parsed:, offset 217, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 219, len 2, h: this_class: type{dxc.junit.opcodes.invokestatic.jm.T_invokestatic_9} -// . . - 00 0f -// parsed:, offset 221, len 2, h: super_class: type{java.lang.Object} -// . . - 00 03 -// parsed:, offset 223, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 225, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 227, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 229, len:73,desc: ()V -// parsed:, offset 229, len 0, h: methods[0]: - // parsed:, offset 229, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 231, len 2, h: name: - // . . - 00 02 - // parsed:, offset 233, len 2, h: descriptor: ()V - // . . - 00 05 - // parsed:, offset 235, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 237, len 0, h: attributes[0]: - // parsed:, offset 237, len 2, h: name: Code - // . . - 00 06 - // parsed:, offset 239, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 243, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 245, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 247, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 0d - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 256, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 258, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 260, len 0, h: end attributes[0] -// parsed:, offset 260, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 260, len:42,desc: ()I -// parsed:, offset 260, len 0, h: methods[1]: - // parsed:, offset 260, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 262, len 2, h: name: run - // . . - 00 0a - // parsed:, offset 264, len 2, h: descriptor: ()I - // . . - 00 09 - // parsed:, offset 266, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 268, len 0, h: attributes[0]: - // parsed:, offset 268, len 2, h: name: Code - // . . - 00 06 - // parsed:, offset 270, len 4, h: length: 00000012 - // . . . . - 00 00 00 12 - // parsed:, offset 274, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 276, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 278, len 4, h: code_length: 00000006 - // . . . . - 00 00 00 06 - // parsed:, offset 0, len 2, h: 0000: ldc #-0012d687 - // . . - 12 13 - // parsed:, offset 2, len 3, h: 0002: invokestatic method{java.lang.Math.abs:(I)I} - // . . . -//@mod b8 00 0e - b8 01 0e - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 288, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 290, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 292, len 0, h: end attributes[0] -// parsed:, offset 292, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 292, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 294, len 0, h: attributes[0]: - // parsed:, offset 294, len 2, h: name: SourceFile - // . . - 00 07 - // parsed:, offset 296, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 300, len 2, h: source: utf8{"T_invokestatic_9.java"} - // . . - 00 10 -// parsed:, offset 302, len 0, h: end attributes[0] -// parsed:, offset 302, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.j b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.j deleted file mode 100644 index edcc8c6cb2050ba723c7e358de9838e12c4cf45b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokestatic_9.java -.class public dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - ldc -1234567 - invokestatic java/lang/Math/abs(I)I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.java deleted file mode 100644 index 4944efd6aeb575e14f8c0fed989b390ea41b3b05..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/T_invokestatic_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class T_invokestatic_9 { - - public int run() { - return Math.abs(-1234567); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClass.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClass.java deleted file mode 100644 index ef8723f6c41012815ffa75abaf1c6e980f9f1e8e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClass.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class TestClass { - - public static int test(){ - return 777; - } - - public static int test1(int i1){ - int i = i1 + 5; - return i; - } - - public static int testArgsOrder(int i1, int i2){ - int a = 3454; - int b = 2302; - int i = i1 / i2; - return i; - } - - protected static int testP(){ - return 888; - } - - private static void testPvt(){ - - } -} - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClassAbstract.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClassAbstract.java deleted file mode 100644 index 5d24d39d9c45d0726b3333497c02c1ff8a9117a9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClassAbstract.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public abstract class TestClassAbstract { - - public abstract void test(); -} - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClassInitError.java b/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClassInitError.java deleted file mode 100644 index c2d176e44af4cf7bccb64bdf20c8a76e3c7c8a33..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokestatic/jm/TestClassInitError.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokestatic.jm; - -public class TestClassInitError { - static int a = 1 / 0; - public static void test() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/TProtected.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/TProtected.java deleted file mode 100644 index 78c0ddb3abc7e72926538e08cb410cee7de17280..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/TProtected.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual; - -public class TProtected { - - @SuppressWarnings("unused") - private void TestStub() { - // used by testE6 - } - - - protected void TestStubP() { - // used by testE7 - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/Test_invokevirtual.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/Test_invokevirtual.java deleted file mode 100644 index 17260677456f8ded43bf859d8734fb5da9f08612..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/Test_invokevirtual.java +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_1; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_13; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_14; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_15; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_17; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_18; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_19; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_20; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_3; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_4; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_5; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_6; -import dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_7; - -public class Test_invokevirtual extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_invokevirtual_1 t = new T_invokevirtual_1(); - int a = 1; - String sa = "a" + a; - String sb = "a1"; - assertTrue(t.run(sa, sb)); - assertFalse(t.run(this, sa)); - assertFalse(t.run(sb, this)); - } - - /** - * @title Check that monitor is acquired if method is synchronized - */ - public void testN2() { - assertTrue(T_invokevirtual_2.execute()); - } - - /** - * @title Invoke protected method of superclass - */ - public void testN3() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - T_invokevirtual_7 t = new T_invokevirtual_7(); - assertEquals(5, t.run()); - } - - /** - * @title Private method call - */ - public void testN4() { - T_invokevirtual_13 t = new T_invokevirtual_13(); - assertEquals(345, t.run()); - } - - /** - * @title Check that new frame is created by invokevirtual and - * arguments are passed to method - */ - public void testN5() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - T_invokevirtual_14 t = new T_invokevirtual_14(); - assertTrue(t.run()); - } - - /** - * @title Recursion of method lookup procedure - */ - public void testN6() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - T_invokevirtual_17 t = new T_invokevirtual_17(); - assertEquals(5, t.run()); - } - - /** - * @title - */ - public void testE1() { - T_invokevirtual_3 t = new T_invokevirtual_3(); - String s = "s"; - try { - t.run(null, s); - fail("expected NullPointerException"); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @title Native method can't be linked - */ - public void testE2() { - T_invokevirtual_4 t = new T_invokevirtual_4(); - try { - t.run(); - fail("expected UnsatisfiedLinkError"); - } catch (UnsatisfiedLinkError ule) { - // expected - } - } - - /** - * @title Attempt to invoke static method - */ - public void testE3() { - try { - T_invokevirtual_5 t = new T_invokevirtual_5(); - t.run(); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError icce) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to invoke abstract method - */ - public void testE4() { - // @uses dxc.junit.opcodes.invokevirtual.jm.ATest - T_invokevirtual_6 t = new T_invokevirtual_6(); - try { - t.run(); - fail("expected AbstractMethodError"); - } catch (AbstractMethodError iae) { - // expected - } - } - - /** - * @title Attempt to invoke non-existing method - */ - public void testE5() { - try { - T_invokevirtual_15 t = new T_invokevirtual_15(); - t.run(); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to invoke private method of other class - */ - public void testE6() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - // @uses dxc.junit.opcodes.invokevirtual.TProtected - try { - T_invokevirtual_18 t = new T_invokevirtual_18(); - t.run(new TProtected()); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Attempt to invoke protected method of other class - */ - public void testE7() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - // @uses dxc.junit.opcodes.invokevirtual.TProtected - try { - T_invokevirtual_20 t = new T_invokevirtual_20(); - t.run(new TProtected()); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title method has different signature - */ - public void testE8() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - try { - T_invokevirtual_19 t = new T_invokevirtual_19(); - t.run(); - fail("expected NoSuchMethodError"); - } catch (NoSuchMethodError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.13 - * @title valid index into constant pool table - */ - public void testVFE1() { - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.13 - * @title invalid index into constant pool table - */ - public void testVFE2() { - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.14 - * @title <clinit> may not be called using invokevirtual - */ - public void testVFE3() { - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments passed to method - */ - public void testVFE4() { - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_11"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - int - */ - public void testVFE5() { - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_12"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.14 - * @title <init> may not be called using invokevirtual - */ - public void testVFE6() { - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_16"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.12 - * @title types of arguments passed to method - */ - public void testVFE7() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_21"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.13 - * @title assignment incompatible references when accessing - * protected method - */ - public void testVFE8() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - // @uses dxc.junit.opcodes.invokevirtual.jm.TPlain - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_22"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.13 - * @title assignment incompatible references when accessing - * public method - */ - public void testVFE9() { - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper - // @uses dxc.junit.opcodes.invokevirtual.jm.TSuper2 - try { - Class - .forName("dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_23"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/ATest.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/ATest.java deleted file mode 100644 index d0189acac815cbee422a2382f26442e6d479f027..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/ATest.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public abstract class ATest { - - public abstract void test(); - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TPlain.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TPlain.java deleted file mode 100644 index 29393594e2e5606bf4c4a6671e8b78a510b4348e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TPlain.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package dxc.junit.opcodes.invokevirtual.jm; - -/** - * @author fjost - * - */ -public class TPlain { - public int toInt() { - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TSuper.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TSuper.java deleted file mode 100644 index cc198ab0d97ef89beb4ed035684b5cda34445266..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TSuper.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package dxc.junit.opcodes.invokevirtual.jm; - -/** - * @author fjost - * - */ -public class TSuper { - public int toInt() { - return 5; - } - - public int toInt(float v) { - return (int)v; - } - - public native int toIntNative(); - - public static int toIntStatic() { - return 5; - } - - protected int toIntP() { - return 5; - } - - private int toIntPvt() { - return 5; - } - - public int testArgsOrder(int a, int b){ - int i = 349; - int j = 344656; - return a / b; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TSuper2.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TSuper2.java deleted file mode 100644 index 6fcbefe59c71545de948189e6f05c2d939400513..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/TSuper2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokespecial.jm.TSuper; - -public class TSuper2 extends TSuper { - - public int test() { - return 13; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_1.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_1.j deleted file mode 100644 index b64e0c7db33f6cffb795f19fe7a0699d53f50ee4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_1.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - aload_1 - aload_2 - invokevirtual java/lang/Object/equals(Ljava/lang/Object;)Z - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_1.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_1.java deleted file mode 100644 index 1bbaec3688add70f9f26e1c74712edf79b0c4ac9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_1 { - - public boolean run(Object x, Object y) { - return x.equals(y); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_10.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_10.j deleted file mode 100644 index e12428b92628fd298a7e97e259d37d78bb1edbde..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_10.j +++ /dev/null @@ -1,23 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_10.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokevirtual java/lang/Object/()V - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_10.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_10.java deleted file mode 100644 index 0bdaf58edccf9ef3fe6a6f516a855341824cdba4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_10.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_10 { - - public void run() { - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_11.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_11.j deleted file mode 100644 index 5fb634d1e6a1f3db9b33446d5885e17893ba9812..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_11.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_11.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - aload_0 -; aload_1 - invokevirtual java/lang/Object/equals(Ljava/lang/Object;)Z - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_11.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_11.java deleted file mode 100644 index 7c28cae29cb538e48190d4e00af5dcb062489c1b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_11 { - - public boolean run(Object x, Object y) { - return x.equals(y); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_12.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_12.j deleted file mode 100644 index 293a6e5ca501cb5d1561d6bb7e419f2de600080d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_12.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_12.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_12 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - iconst_1 - aload_1 - invokevirtual java/lang/Object/equals(Ljava/lang/Object;)Z - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_12.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_12.java deleted file mode 100644 index 62e19712da81619b46847dcd0552caa8bb365889..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_12.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_12 { - - public boolean run(Object x, Object y) { - return x.equals(y); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13.j deleted file mode 100644 index f7f0f0a22736fc3ccd59eae3f54b65f01f729679..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_13.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13/getInt()I - ireturn -.end method - -.method private getInt()I - sipush 345 - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13.java deleted file mode 100644 index dfa61792170ebca06e2e619ccb6d72b9c0df2028..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_13.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_13 { - - public int run() { - return getInt(); - } - - private int getInt() { - return 345; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14.j deleted file mode 100644 index ebbad2c068ff62e9be7c02f5b0f3af23f2a2224b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14.j +++ /dev/null @@ -1,59 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_14.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - - -.method public run()Z - .limit stack 3 - .limit locals 3 - - bipush 123 - istore_1 - - sipush 659 - istore_2 - - aload_0 - sipush 300 - iconst_3 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14/testArgsOrder(II)I - - bipush 100 - if_icmpne Label0 - - iload_1 - bipush 123 - if_icmpne Label0 - - iload_2 - sipush 659 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14.java deleted file mode 100644 index d039fbe8b9adcc2be1b111f69a1849bb8c8c4246..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_14.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokevirtual.jm.TSuper; - - -public class T_invokevirtual_14 extends TSuper { - - public boolean run() { - int a = 123; - int b = 659; - if(testArgsOrder(300, 3) == 100) - if(a == 123) - if(b == 659) - return true; - return false; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15.j deleted file mode 100644 index 61a84e01ceeeb86046281aa3f3205ac1ea47ba0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_15.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public test()V - .limit stack 0 - .limit locals 1 - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 1 - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15/test1()V - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15.java deleted file mode 100644 index fae4bbad0de369c13715c1a756abe0ce7bee6918..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_15.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_15 { - - public void test(){ - } - - public void run() { - test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_16.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_16.j deleted file mode 100644 index fc2d18c609a87b95a99888103bc5711c1ae3b297..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_16.j +++ /dev/null @@ -1,23 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_16.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_16 -.super java/lang/Object - -.method public ()V - aload_0 - invokevirtual java/lang/Object/()V - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_16.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_16.java deleted file mode 100644 index c30e960a8a770d588ec54986864aa4b169d6661c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_16.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_16 { - - public void run() { - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17.j deleted file mode 100644 index ac29622a377b9bb7cb68d6b83dadeb61c89cc9fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_17.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17/toInt()I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17.java deleted file mode 100644 index 639d499cbc8496e46c3ca343ca29a9bd5ae68874..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_17.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokevirtual.jm.TSuper; - - -public class T_invokevirtual_17 extends TSuper { - - public int run() { - return toInt(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_18.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_18.j deleted file mode 100644 index c38f212cc6a56fe5feaf1958568039eb3f05cc30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_18.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_18.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_18 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - - - -.method public run(Ldxc/junit/opcodes/invokevirtual/TProtected;)V - .limit stack 1 - .limit locals 2 - - aload_1 - invokevirtual dxc/junit/opcodes/invokevirtual/TProtected/TestStub()V - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_18.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_18.java deleted file mode 100644 index d027bf23f0e833116395f47310a1c1f3339dd6e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_18.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokevirtual.TProtected; - - - -public class T_invokevirtual_18 extends TSuper { - - public void run(TProtected obj) { - //obj.TestStub(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19.j deleted file mode 100644 index 1214d1b94910ad9d6a991900e1dc97a20f0a76c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_19.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - - - -.method public run()I - .limit stack 2 - .limit locals 1 - - aload_0 - iconst_1 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19/toInt(I)I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19.java deleted file mode 100644 index 564c27fad5eba7ec45fd5102c2f0bf4e23e93511..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_19.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokevirtual.jm.TSuper; - - -public class T_invokevirtual_19 extends TSuper { - - public int run() { - return toInt(3.14f); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2.j deleted file mode 100644 index 0386883a17225982935509243558bef7930cb5cc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2.j +++ /dev/null @@ -1,158 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_2.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2 -.super java/lang/Object -.implements java/lang/Runnable - -.field value I -.field failed Z - -.method public ()V - .limit stack 2 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.value I - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.failed Z - - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label1: - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2/test()V - - iinc 1 1 - -Label0: - iload_1 - sipush 1000 - if_icmplt Label1 - - return -.end method - - - -.method public synchronized test()V - .limit stack 3 - .limit locals 2 - - aload_0 - dup - getfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.value I - iconst_1 - iadd - putfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.value I - - aload_0 - getfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.value I - istore_1 - - invokestatic java/lang/Thread/yield()V - - iload_1 - aload_0 - getfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.value I - if_icmpeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.failed Z - -Label0: - return -.end method - - - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2 - dup - invokespecial dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: - astore_3 - - iconst_0 - ireturn - -Label0: - aload_0 - getfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.value I - sipush 2000 - if_icmpeq Label1 - - iconst_0 - ireturn - -Label1: - - aload_0 - getfield dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_2.failed Z - ifeq Label2 - iconst_0 - ireturn - -Label2: - iconst_1 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2.java deleted file mode 100644 index 92bb8a86b77db74ea8799bd4d5127da35fe5a58c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_2.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_2 implements Runnable { - public final static int CNT = 1000; - int value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - public synchronized void test() { - value++; - int c = value; - Thread.yield(); - if(c != value) - failed = true; - } - - public static boolean execute() { - T_invokevirtual_2 test = new T_invokevirtual_2(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_20.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_20.j deleted file mode 100644 index e34016293432efe272fa8707f4e9ddd2caefb614..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_20.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_20.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_20 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - - - -.method public run(Ldxc/junit/opcodes/invokevirtual/TProtected;)V - .limit stack 1 - .limit locals 2 - - aload_1 - invokevirtual dxc/junit/opcodes/invokevirtual/TProtected/TestStubP()V - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_20.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_20.java deleted file mode 100644 index aa2c8d82f379fa95da10162182f39290c175f8f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_20.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokevirtual.TProtected; - - -public class T_invokevirtual_20 extends TSuper { - - public void run(TProtected obj) { - //obj.TestStubP(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21.j deleted file mode 100644 index af0a530bb4304985e04105ba0d71a5655a033671..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_21.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - - -.method public run()I - .limit stack 3 - .limit locals 1 - - aload_0 -; ldc 5.0 - dconst_1 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21/toInt(F)I - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21.java deleted file mode 100644 index 50333e88eb7a5d7b208ddb3205c1ef600475a442..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_21.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_21 extends TSuper { - - public int run() { - return toInt(5f); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_22.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_22.j deleted file mode 100644 index d3c3164c7c501c40893f6f4ea21a63ce06d22ed2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_22.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_22.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_22 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - - -.method public run()I - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/invokevirtual/jm/TPlain - dup - invokespecial dxc/junit/opcodes/invokevirtual/jm/TPlain/()V - - invokevirtual dxc/junit/opcodes/invokevirtual/jm/TSuper/toIntP()I - - Label1: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_22.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_22.java deleted file mode 100644 index b002637f7b44433415e5b407627fd7eaf8405188..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_22.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokevirtual.jm.TSuper; - -public class T_invokevirtual_22 extends TSuper { - - public int run() { - TPlain p = new TPlain(); - return p.toInt(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_23.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_23.j deleted file mode 100644 index 8c7eec81c80fe57009e1ef1db42371a28fadc799..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_23.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_23.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_23 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper2 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper2/()V - return -.end method - -.method public run()I - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/invokevirtual/jm/TSuper - dup - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - - invokevirtual dxc/junit/opcodes/invokevirtual/jm/TSuper2/test()I - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_23.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_23.java deleted file mode 100644 index b2ef484efb880699f82d702020b646add0f07307..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_23.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_23 extends TSuper2 { - - public int run() { - return super.test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_3.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_3.j deleted file mode 100644 index c1fd20fe286616efabba39e62ec56b084d927ee1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_3.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - aload_1 - aload_2 - invokevirtual java/lang/Object/equals(Ljava/lang/Object;)Z - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_3.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_3.java deleted file mode 100644 index 8f0fb676e840a704b6319a04a257d26d43d41731..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_3 { - - public boolean run(Object x, Object y) { - return x.equals(y); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4.j deleted file mode 100644 index c4efa884531eb1aada311a2b98fc167cc1104439..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_4.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public native test()V -.end method - -.method public run()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4/test()V - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4.java deleted file mode 100644 index 08a969bc1b84d213f1088d35401950b5ff318f1d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_4.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_4 { - - public native void test(); - - public void run() { - test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5.j deleted file mode 100644 index d751a75a7338fa5377c12a724e813307bbab5a1b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_5.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static test()V - .limit stack 0 - .limit locals 1 - return -.end method - -.method public run()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5/test()V - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5.java deleted file mode 100644 index c931ce476b4ae5c85b5acb5d51cfdb918bb262d2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_5.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_5 { - - public void test(){ - } - - public void run() { - test(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_6.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_6.j deleted file mode 100644 index 56612ff54d3b276326b0a4d3a16e3dbaf43c35c1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_6.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_6 -.super dxc/junit/opcodes/invokevirtual/jm/ATest - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/ATest/()V - return -.end method - -.method public run()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/ATest/test()V - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_6.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_6.java deleted file mode 100644 index 0d18e83c28e6ff5410d5e0e5d67dba6566d4ba5f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_6.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_6 extends ATest { - - public void test(){ - int i = 2+5; - } - - public void run() { - test(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7.j deleted file mode 100644 index 07e6f8805afd9861da22d4e84e9d7756d0c66beb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_7.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7 -.super dxc/junit/opcodes/invokevirtual/jm/TSuper - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/invokevirtual/jm/TSuper/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - aload_0 - invokevirtual dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7/toIntP()I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7.java deleted file mode 100644 index abff1dbf8bd1c61200818d2b90cd897d2036760f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_7.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -import dxc.junit.opcodes.invokevirtual.jm.TSuper; - - -public class T_invokevirtual_7 extends TSuper { - - public int run() { - return toIntP(); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.cfh deleted file mode 100644 index d8991a9dc18b489ab363683d9aa86cfd4d7f58c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 25, h: 0001: utf8{"T_invokevirtual_8.java"} - // . . . T _ i n v o k e v i r t u a l _ 8 . j a v a - 01 00 16 54 5f 69 6e 76 6f 6b 65 76 69 72 74 75 61 6c 5f 38 2e 6a 61 76 61 - // parsed:, offset 35, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 11 00 09 - // parsed:, offset 40, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 59, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 72, len 24, h: 0005: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 96, len 9, h: 0006: utf8{"equals"} - // . . . e q u a l s - 01 00 06 65 71 75 61 6c 73 - // parsed:, offset 105, len 9, h: 0007: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 114, len 6, h: 0008: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 120, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 07 00 0f - // parsed:, offset 125, len 5, h: 000a: method{java.lang.Object.equals:(Ljava/lang/Object;)Z} - // . . . . . - 0a 00 11 00 0e - // parsed:, offset 130, len 7, h: 000b: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 137, len 42, h: 000c: utf8{"(Ljava/lang/Object;Ljava/lang/Object;)Z"} - // . . ' ( L j a v a / l a n g / O b j e c t ; L j a v a / l a n g / O b j e c t ; ) Z - 01 00 27 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 179, len 55, h: 000d: utf8{"dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8"} - // . . 4 d x c / j u n i t / o p c o d e s / i n v o k e v i r t u a l / j m / T _ i n v o k e v i r t u a l _ 8 - 01 00 34 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 76 69 72 74 75 61 6c 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 76 69 72 74 75 61 6c 5f 38 - // parsed:, offset 234, len 5, h: 000e: nat{equals:(Ljava/lang/Object;)Z} - // . . . . . - 0c 00 06 00 05 - // parsed:, offset 239, len 6, h: 000f: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 245, len 3, h: 0010: type{dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_8} - // . . . - 07 00 0d - // parsed:, offset 248, len 3, h: 0011: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 251, len 0, h: end constant_pool -// parsed:, offset 251, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 253, len 2, h: this_class: type{dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_8} -// . . - 00 10 -// parsed:, offset 255, len 2, h: super_class: type{java.lang.Object} -// . . - 00 11 -// parsed:, offset 257, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 259, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 261, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 263, len:73,desc: ()V -// parsed:, offset 263, len 0, h: methods[0]: - // parsed:, offset 263, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 265, len 2, h: name: - // . . - 00 07 - // parsed:, offset 267, len 2, h: descriptor: ()V - // . . - 00 0f - // parsed:, offset 269, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 271, len 0, h: attributes[0]: - // parsed:, offset 271, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 273, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 277, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 279, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 281, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 290, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 292, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 294, len 0, h: end attributes[0] -// parsed:, offset 294, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 294, len:42,desc: (Ljava/lang/Object;Ljava/lang/Object;)Z -// parsed:, offset 294, len 0, h: methods[1]: - // parsed:, offset 294, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 296, len 2, h: name: run - // . . - 00 08 - // parsed:, offset 298, len 2, h: descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z - // . . - 00 0c - // parsed:, offset 300, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 302, len 0, h: attributes[0]: - // parsed:, offset 302, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 304, len 4, h: length: 00000012 - // . . . . - 00 00 00 12 - // parsed:, offset 308, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 310, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 312, len 4, h: code_length: 00000006 - // . . . . - 00 00 00 06 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: aload_2 // 02 - // , - 2c - // parsed:, offset 2, len 3, h: 0002: invokevirtual method{java.lang.Object.equals:(Ljava/lang/Object;)Z} - // . . . -//@mod b6 00 0a - b6 00 0b - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 322, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 324, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 326, len 0, h: end attributes[0] -// parsed:, offset 326, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;Ljava/lang/Object;)Z -// parsed:, offset 326, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 328, len 0, h: attributes[0]: - // parsed:, offset 328, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 330, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 334, len 2, h: source: utf8{"T_invokevirtual_8.java"} - // . . - 00 01 -// parsed:, offset 336, len 0, h: end attributes[0] -// parsed:, offset 336, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.j deleted file mode 100644 index 14fc66b52f7b221ccf5820918569f730bccac6c2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_8.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - aload_2 - invokevirtual java/lang/Object/equals(Ljava/lang/Object;)Z - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.java deleted file mode 100644 index 4c9fac611579e806e2403d7856e9f33ac78be853..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_8 { - - public boolean run(Object x, Object y) { - return x.equals(y); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.cfh b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.cfh deleted file mode 100644 index a98e1d72a6d8b8a53cc79aa23d3cc738eae12f86..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 11 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 24, h: 0004: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 71, len 9, h: 0005: utf8{"equals"} - // . . . e q u a l s - 01 00 06 65 71 75 61 6c 73 - // parsed:, offset 80, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 89, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 95, len 25, h: 0008: utf8{"T_invokevirtual_9.java"} - // . . . T _ i n v o k e v i r t u a l _ 9 . j a v a - 01 00 16 54 5f 69 6e 76 6f 6b 65 76 69 72 74 75 61 6c 5f 39 2e 6a 61 76 61 - // parsed:, offset 120, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 06 00 0f - // parsed:, offset 125, len 5, h: 000a: method{java.lang.Object.equals:(Ljava/lang/Object;)Z} - // . . . . . - 0a 00 11 00 0e - // parsed:, offset 130, len 7, h: 000b: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 137, len 42, h: 000c: utf8{"(Ljava/lang/Object;Ljava/lang/Object;)Z"} - // . . ' ( L j a v a / l a n g / O b j e c t ; L j a v a / l a n g / O b j e c t ; ) Z - 01 00 27 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 179, len 55, h: 000d: utf8{"dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9"} - // . . 4 d x c / j u n i t / o p c o d e s / i n v o k e v i r t u a l / j m / T _ i n v o k e v i r t u a l _ 9 - 01 00 34 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 69 6e 76 6f 6b 65 76 69 72 74 75 61 6c 2f 6a 6d 2f 54 5f 69 6e 76 6f 6b 65 76 69 72 74 75 61 6c 5f 39 - // parsed:, offset 234, len 5, h: 000e: nat{equals:(Ljava/lang/Object;)Z} - // . . . . . - 0c 00 05 00 04 - // parsed:, offset 239, len 6, h: 000f: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 245, len 3, h: 0010: type{dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_9} - // . . . - 07 00 0d - // parsed:, offset 248, len 3, h: 0011: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 251, len 0, h: end constant_pool -// parsed:, offset 251, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 253, len 2, h: this_class: type{dxc.junit.opcodes.invokevirtual.jm.T_invokevirtual_9} -// . . - 00 10 -// parsed:, offset 255, len 2, h: super_class: type{java.lang.Object} -// . . - 00 11 -// parsed:, offset 257, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 259, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 261, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 263, len:73,desc: ()V -// parsed:, offset 263, len 0, h: methods[0]: - // parsed:, offset 263, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 265, len 2, h: name: - // . . - 00 06 - // parsed:, offset 267, len 2, h: descriptor: ()V - // . . - 00 0f - // parsed:, offset 269, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 271, len 0, h: attributes[0]: - // parsed:, offset 271, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 273, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 277, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 279, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 281, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 290, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 292, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 294, len 0, h: end attributes[0] -// parsed:, offset 294, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 294, len:42,desc: (Ljava/lang/Object;Ljava/lang/Object;)Z -// parsed:, offset 294, len 0, h: methods[1]: - // parsed:, offset 294, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 296, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 298, len 2, h: descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z - // . . - 00 0c - // parsed:, offset 300, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 302, len 0, h: attributes[0]: - // parsed:, offset 302, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 304, len 4, h: length: 00000012 - // . . . . - 00 00 00 12 - // parsed:, offset 308, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 310, len 2, h: max_locals: 0003 - // . . - 00 03 - // parsed:, offset 312, len 4, h: code_length: 00000006 - // . . . . - 00 00 00 06 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 1, h: 0001: aload_2 // 02 - // , - 2c - // parsed:, offset 2, len 3, h: 0002: invokevirtual method{java.lang.Object.equals:(Ljava/lang/Object;)Z} - // . . . -//@mod b6 00 0a - b6 01 0a - // parsed:, offset 5, len 1, h: 0005: ireturn - // . - ac - // parsed:, offset 322, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 324, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 326, len 0, h: end attributes[0] -// parsed:, offset 326, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;Ljava/lang/Object;)Z -// parsed:, offset 326, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 328, len 0, h: attributes[0]: - // parsed:, offset 328, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 330, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 334, len 2, h: source: utf8{"T_invokevirtual_9.java"} - // . . - 00 08 -// parsed:, offset 336, len 0, h: end attributes[0] -// parsed:, offset 336, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.j b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.j deleted file mode 100644 index d72271b3aa0120ad3932d8990a040f08b86f2f14..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_invokevirtual_9.java -.class public dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;Ljava/lang/Object;)Z - .limit stack 2 - .limit locals 3 - - aload_1 - aload_2 - invokevirtual java/lang/Object/equals(Ljava/lang/Object;)Z - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.java b/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.java deleted file mode 100644 index 22b9bb0db703e0294944d5e491436d9a4503e796..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/invokevirtual/jm/T_invokevirtual_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.invokevirtual.jm; - -public class T_invokevirtual_9 { - - public boolean run(Object x, Object y) { - return x.equals(y); - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/Test_ior.java b/tools/dx-tests/src/dxc/junit/opcodes/ior/Test_ior.java deleted file mode 100644 index e035cf3003c7c50832b3fdac291d821377657e4d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/Test_ior.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ior; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ior.jm.T_ior_1; - -public class Test_ior extends DxTestCase { - - /** - * @title Arguments = 15, 8 - */ - public void testN1() { - T_ior_1 t = new T_ior_1(); - assertEquals(15, t.run(15, 8)); - } - - /** - * @title Arguments = 0xfffffff8, 0xfffffff1 - */ - public void testN2() { - T_ior_1 t = new T_ior_1(); - assertEquals(0xfffffff9, t.run(0xfffffff8, 0xfffffff1)); - } - - /** - * @title Arguments = 0xcafe & -1 - */ - public void testN3() { - T_ior_1 t = new T_ior_1(); - assertEquals(-1, t.run(0xcafe, -1)); - } - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_ior_1 t = new T_ior_1(); - assertEquals(-1, t.run(0, -1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE & Integer.MIN_VALUE - */ - public void testB2() { - T_ior_1 t = new T_ior_1(); - assertEquals(0xffffffff, t.run(Integer.MAX_VALUE, Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ior.jm.T_ior_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ior.jm.T_ior_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ior.jm.T_ior_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ior.jm.T_ior_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_1.j deleted file mode 100644 index 66611f11fe2c376b6573cfb94d5df456df9a20bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ior_1.java -.class public dxc/junit/opcodes/ior/jm/T_ior_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - ior - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_1.java deleted file mode 100644 index 98f023e0f56a810d5ec87292dd3979ad0365080b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ior.jm; - -public class T_ior_1 { - - public int run(int a, int b) { - return a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_2.j deleted file mode 100644 index 39e9a3d83468ec8be4d824605e4fbd0ec8426f03..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ior_2.java -.class public dxc/junit/opcodes/ior/jm/T_ior_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - ior - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_2.java deleted file mode 100644 index db93a0b66d30131ee088ddc0fa120f2c2dba1ad1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ior.jm; - -public class T_ior_2 { - - public int run(int a, int b) { - return a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_3.j deleted file mode 100644 index fea22c527cc2f9ff3e2102c5e31284a5089d216a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ior_3.java -.class public dxc/junit/opcodes/ior/jm/T_ior_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DI)I - .limit stack 3 - .limit locals 4 - - dload_1 - iload_3 - ior - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_3.java deleted file mode 100644 index d000987524b23f9ab2b96379d63b3f9585935a61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ior.jm; - -public class T_ior_3 { - - public int run(double a, int b) { - return (int)a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_4.j deleted file mode 100644 index 1d2140749110b2434b347bcbcdccb6d56bfac5cf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ior_4.java -.class public dxc/junit/opcodes/ior/jm/T_ior_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(IJ)I - .limit stack 3 - .limit locals 4 - - iload_1 - lload_2 - ior - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_4.java deleted file mode 100644 index c8cc013ea1e1a4cf093e8c86db28463fc9b10ad5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ior.jm; - -public class T_ior_4 { - - public int run(int a, long b) { - return a | (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_5.j deleted file mode 100644 index 75289583bf78f31af0254f0d57517290d532f131..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ior_5.java -.class public dxc/junit/opcodes/ior/jm/T_ior_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - ior - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_5.java deleted file mode 100644 index 6dfc5aa4ddef1e1a0cc57235aac95c4490dd3551..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ior/jm/T_ior_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ior.jm; - -public class T_ior_5 { - - public int run(int a, int b) { - return a | b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/Test_irem.java b/tools/dx-tests/src/dxc/junit/opcodes/irem/Test_irem.java deleted file mode 100644 index ce72810f575fb094be5762a203a0813767563103..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/Test_irem.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.irem; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.irem.jm.T_irem_1; - -public class Test_irem extends DxTestCase { - - /** - * @title Arguments = 8, 4 - */ - public void testN1() { - T_irem_1 t = new T_irem_1(); - assertEquals(0, t.run(8, 4)); - } - - /** - * @title Arguments = 1073741823, 4 - */ - public void testN2() { - T_irem_1 t = new T_irem_1(); - assertEquals(3, t.run(1073741823, 4)); - } - - /** - * @title Dividend = 0 - */ - public void testN3() { - T_irem_1 t = new T_irem_1(); - assertEquals(0, t.run(0, 4)); - } - - /** - * @title Dividend is negative - */ - public void testN4() { - T_irem_1 t = new T_irem_1(); - assertEquals(-1, t.run(-10, 3)); - } - - /** - * @title Divisor is negative - */ - public void testN5() { - T_irem_1 t = new T_irem_1(); - assertEquals(1, t.run(1073741824, -3)); - } - - /** - * @title Both Dividend and divisor are negative - */ - public void testN6() { - T_irem_1 t = new T_irem_1(); - assertEquals(-697, t.run(-17895697, -3000)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, -1 - */ - public void testB1() { - T_irem_1 t = new T_irem_1(); - // result is MIN_VALUE because overflow occurs in this case - assertEquals(0, t.run(Integer.MIN_VALUE, -1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, 1 - */ - public void testB2() { - T_irem_1 t = new T_irem_1(); - assertEquals(0, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, 1 - */ - public void testB3() { - T_irem_1 t = new T_irem_1(); - assertEquals(0, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, Integer.MAX_VALUE - */ - public void testB4() { - T_irem_1 t = new T_irem_1(); - assertEquals(-1, t.run(Integer.MIN_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = 1, Integer.MAX_VALUE - */ - public void testB5() { - T_irem_1 t = new T_irem_1(); - assertEquals(1, t.run(1, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = 1, Integer.MIN_VALUE - */ - public void testB6() { - T_irem_1 t = new T_irem_1(); - assertEquals(1, t.run(1, Integer.MIN_VALUE)); - } - - /** - * @title Divisor is 0 - */ - public void testE1() { - T_irem_1 t = new T_irem_1(); - try { - t.run(1, 0); - fail("expected ArithmeticException"); - } catch (ArithmeticException ae) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.irem.jm.T_irem_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.irem.jm.T_irem_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.irem.jm.T_irem_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.irem.jm.T_irem_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_1.j b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_1.j deleted file mode 100644 index 2f13c91260605838bed4315ab9c56162b38ec106..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_irem_1.java -.class public dxc/junit/opcodes/irem/jm/T_irem_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - irem - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_1.java b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_1.java deleted file mode 100644 index e966deac8be813df0dcc8b40dc9306ab786f2d01..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.irem.jm; - -public class T_irem_1 { - - public int run(int a, int b) { - return a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_2.j b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_2.j deleted file mode 100644 index 9c9bf8be69f0068414095472186630ac7d97ba8f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_irem_2.java -.class public dxc/junit/opcodes/irem/jm/T_irem_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - ; iload_2 - irem - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_2.java b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_2.java deleted file mode 100644 index 4ab9d2d043b6fef7dfb83a673cf55e8fefbf7684..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.irem.jm; - -public class T_irem_2 { - - public int run(int a, int b) { - return a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_3.j b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_3.j deleted file mode 100644 index e07bfeadb7bd1b93c173dd15f151dde5964ae0bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_irem_3.java -.class public dxc/junit/opcodes/irem/jm/T_irem_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(ID)I - .limit stack 3 - .limit locals 5 - iload_1 - dload_2 - irem - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_3.java b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_3.java deleted file mode 100644 index a7cbab2cd63741b34191767e7f29ae115cb3e110..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.irem.jm; - -public class T_irem_3 { - - public int run(int a, double b) { - return a%(int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_4.j b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_4.j deleted file mode 100644 index 7571e37719282e6cdd4cb9866a5fe8d76fe2137b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_irem_4.java -.class public dxc/junit/opcodes/irem/jm/T_irem_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)I - .limit stack 3 - .limit locals 4 - - lload_1 -; l2i - iload_3 - irem - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_4.java b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_4.java deleted file mode 100644 index 75b88317e49e0e71f152d741d7384638d9642d6f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.irem.jm; - -public class T_irem_4 { - - public int run(long a, int b) { - return (int)a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_5.j b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_5.j deleted file mode 100644 index 803b81fda74f95029e81bcce7b1a32bfbc4edb32..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_irem_5.java -.class public dxc/junit/opcodes/irem/jm/T_irem_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - irem - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_5.java b/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_5.java deleted file mode 100644 index 397fb9cd4d72c0ea8da2559d11a223482f5ee7a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/irem/jm/T_irem_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.irem.jm; - -public class T_irem_5 { - - public int run(int a, int b) { - return a%b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/Test_ireturn.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/Test_ireturn.java deleted file mode 100644 index cdb64505c5a9b36a73fcbd8450c085ba2cec1c89..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/Test_ireturn.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ireturn.jm.T_ireturn_1; -import dxc.junit.opcodes.ireturn.jm.T_ireturn_6; -import dxc.junit.opcodes.ireturn.jm.T_ireturn_7; -import dxc.junit.opcodes.ireturn.jm.T_ireturn_8; -import dxc.junit.opcodes.ireturn.jm.T_ireturn_9; - -public class Test_ireturn extends DxTestCase { - - /** - * @title simple - */ - public void testN1() { - T_ireturn_1 t = new T_ireturn_1(); - assertEquals(123456, t.run()); - } - - /** - * @title check that frames are discarded and reinstananted correctly - */ - public void testN2() { - T_ireturn_6 t = new T_ireturn_6(); - assertEquals(123456, t.run()); - } - - /** - * @title check that monitor is released by ireturn - */ - public void testN3() { - assertTrue(T_ireturn_7.execute()); - } - - /** - * @title Method is synchronized but thread is not monitor owner - */ - public void testE1() { - T_ireturn_8 t = new T_ireturn_8(); - try { - assertTrue(t.run()); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title Lock structural rule 1 is violated - */ - public void testE2() { - T_ireturn_9 t = new T_ireturn_9(); - try { - assertEquals(1, t.run()); - // the JVM spec says that it is optional to implement the structural - // lock rules, see JVM spec 8.13 and monitorenter/exit opcodes. - System.out.print("dvmvfe:"); - //fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - void - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ireturn.jm.T_ireturn_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ireturn.jm.T_ireturn_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ireturn.jm.T_ireturn_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ireturn.jm.T_ireturn_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ireturn.jm.T_ireturn_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ireturn.jm.T_ireturn_11"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_1.j deleted file mode 100644 index 8ba1dafffe3ee4f590274b17352f030f6ba5e592..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_1.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - ldc 123456 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_1.java deleted file mode 100644 index fe00032f3696deb6243a83eb91c517ba9fe14036..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_1 { - - public int run() { - return 123456; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_10.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_10.j deleted file mode 100644 index f8779af8c69cd446cb3b2e2da9c802636edb9c7d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_10.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_10.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_10 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private static test()I - .limit stack 1 - .limit locals 0 - - iconst_1 - ireturn -.end method - - - -.method public run()I - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/ireturn/jm/T_ireturn_10/test()I - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_10.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_10.java deleted file mode 100644 index 929c22a5294919bc7a3e7beec7ae21a59064886e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_10.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_10 { - - private static int test() { - return 1; - } - - public int run() { - return test(); - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_11.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_11.j deleted file mode 100644 index fa54cc5d55920fd03db3c46363dc6a7d0afd23f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_11.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_11.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_11.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_11.java deleted file mode 100644 index a58a6ba88b2c5a4fb578e13f9606ac832f6a2955..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_11 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_2.j deleted file mode 100644 index c5d10b06d9d308c0328fffdd88573651a754f941..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_2.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 1 - - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_2.java deleted file mode 100644 index 074dfd879ef12f3aca6074b3d68fd6ca7d365c3e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_2 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_3.j deleted file mode 100644 index 7afc97df4febee9948d3c12ec1df8a6e438bd0ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_3.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()D - .limit stack 1 - .limit locals 1 - - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_3.java deleted file mode 100644 index dba74eeee5d2fff804d6685711845e5440dc9549..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_3 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_4.j deleted file mode 100644 index 961ad405a64d58798d338e7093f8fef1490cbef3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_4.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 - .limit locals 1 - - ;iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_4.java deleted file mode 100644 index 9b0b1bcf93ebdb388aba4135b042e10e2a202a76..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_4 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_5.j deleted file mode 100644 index dbd1ac53a0725f41b0cc7e94f490fb32f2940a1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_5.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 2 - .limit locals 1 - - dconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_5.java deleted file mode 100644 index bdeba53e6ea42459d28778efaba809dc41e550e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_5 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_6.j deleted file mode 100644 index 3ed78c7f89c7ec1aa4fe2b750ab1a40535864abd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_6.j +++ /dev/null @@ -1,85 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_6.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit locals 6 - .limit stack 6 - - iconst_1 - istore_1 - iconst_2 - istore_2 - iconst_3 - istore 3 - - iconst_4 - - invokestatic dxc/junit/opcodes/ireturn/jm/T_ireturn_6/test()I - - ldc 0xcafe - if_icmpne Label1 - - iconst_4 - if_icmpne Label0 - - iload_1 - iconst_1 - if_icmpne Label0 - - iload_2 - iconst_2 - if_icmpne Label0 - - iload_3 - iconst_3 - if_icmpne Label0 - - ldc 123456 - ireturn - -Label1: - pop -Label0: - iconst_0 - ireturn - -.end method - -.method private static test()I - .limit locals 4 - .limit stack 4 - - ldc 0xaaa - istore_1 - ldc 0xbbbb - istore_2 - ldc 0xcccc - istore_3 - - ldc 0xdddd - - ldc 0xcafe - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_6.java deleted file mode 100644 index dbf74381056f23fe49929483c43cb6a6f7f64778..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_6.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_6 { - - public int run() { - return 123456; - } - - private static int test() { - int a = 0xaaaa; - int b = 0xbbbb; - int c = 0xcccc; - return 0xcafe; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_7.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_7.j deleted file mode 100644 index d1b790939bebb8898535945cd562e505dc70fe28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_7.j +++ /dev/null @@ -1,161 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_7.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_7 -.super java/lang/Object -.implements java/lang/Runnable - -.field value I -.field failed Z - -.method public ()V - .limit stack 3 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.value I - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.failed Z - - return - -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label4: - iload_1 - sipush 1000 - if_icmpge Label3 - - aload_0 - invokespecial dxc/junit/opcodes/ireturn/jm/T_ireturn_7/test()I - pop - - iinc 1 1 - - goto Label4 - - -Label3: - return - -.end method - - - -.method private synchronized test()I - .limit stack 3 - .limit locals 2 - -.line 16 - aload_0 - dup - getfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.value I - dup - istore_1 - - iconst_1 - iadd - putfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.value I - - iinc 1 1 - - invokestatic java/lang/Thread/yield()V - - iload_1 - aload_0 - getfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.value I - if_icmpeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.failed Z - -Label0: - iload_1 - ireturn -.end method - - - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/ireturn/jm/T_ireturn_7 - dup - invokespecial dxc/junit/opcodes/ireturn/jm/T_ireturn_7/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: ; exception handler - astore_3 - goto Label3 - -Label0: - aload_0 - getfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.value I - sipush 2000 - if_icmpne Label3 - - aload_0 - getfield dxc.junit.opcodes.ireturn.jm.T_ireturn_7.failed Z - ifne Label3 - - iconst_1 - ireturn - -Label3: - iconst_0 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_7.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_7.java deleted file mode 100644 index 3505f19f76b16534d61ab55c7205eeae5034d809..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_7.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_7 implements Runnable { - public final static int CNT = 1000; - int value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized int test() { - value++; - int c = value; - Thread.yield(); - if(c != value) - failed = true; - return c; - } - - public static boolean execute() { - T_ireturn_7 test = new T_ireturn_7(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_8.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_8.j deleted file mode 100644 index ad9d5283d464fd6576c63645a6db7aae4325c9db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_8.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_8.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private synchronized test()I - .limit stack 1 - aload_0 - monitorexit - iconst_0 - ireturn -.end method - - - -.method public run()Z - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/ireturn/jm/T_ireturn_8/test()I - pop - - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_8.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_8.java deleted file mode 100644 index 9ed48afd812df39734afce8f039823891cffe773..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_8.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_8 { - - private synchronized int test() { - return 0; - } - - public boolean run() { - test(); - return true; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_9.j b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_9.j deleted file mode 100644 index 42230f3aca74284a3cd5b8f32de3a1b5f22e46a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ireturn_9.java -.class public dxc/junit/opcodes/ireturn/jm/T_ireturn_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 - .limit locals 1 - - aload_0 - monitorenter - - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_9.java b/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_9.java deleted file mode 100644 index 50bc299d0298e37120128c0012a34c8cbf2f4151..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ireturn/jm/T_ireturn_9.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ireturn.jm; - -public class T_ireturn_9 { - - public int run() { - return 1; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/Test_ishl.java b/tools/dx-tests/src/dxc/junit/opcodes/ishl/Test_ishl.java deleted file mode 100644 index b433c8936d960a6c2b260203d10b2f67ced29df3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/Test_ishl.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishl; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ishl.jm.T_ishl_1; - -public class Test_ishl extends DxTestCase { - - /** - * @title 15 << 1 - */ - public void testN1() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(30, t.run(15, 1)); - } - - /** - * @title 33 << 2 - */ - public void testN2() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(132, t.run(33, 2)); - } - - /** - * @title -15 << 1 - */ - public void testN3() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(-30, t.run(-15, 1)); - } - - /** - * @title Arguments = 1 & -1 - */ - public void testN4() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(0x80000000, t.run(1, -1)); - } - - /** - * @title Verify that shift distance is actually in range 0 to 32. - */ - public void testN5() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(66, t.run(33, 33)); - } - - /** - * FIXME: do we need to check that all the shift distances (0..31) works - * fine? - */ - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(0, t.run(0, -1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE & 1 - */ - public void testB2() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(0xfffffffe, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE & 1 - */ - public void testB3() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(0, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = 1 & 0 - */ - public void testB4() { - T_ishl_1 t = new T_ishl_1(); - assertEquals(1, t.run(1, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ishl.jm.T_ishl_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ishl.jm.T_ishl_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ishl.jm.T_ishl_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ishl.jm.T_ishl_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_1.j deleted file mode 100644 index a703b28246becdcf9acd77b836fb53e3e5f9e5d1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishl_1.java -.class public dxc/junit/opcodes/ishl/jm/T_ishl_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - ishl - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_1.java deleted file mode 100644 index 179d4f8148cb4f7b0b8a3ee380cff38783fd8a42..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishl.jm; - -public class T_ishl_1 { - - public int run(int a, int b) { - return a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_2.j deleted file mode 100644 index 015f57fe552f43950792b576e96c218979f2c128..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishl_2.java -.class public dxc/junit/opcodes/ishl/jm/T_ishl_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - ishl - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_2.java deleted file mode 100644 index 94479b420ade2eeda235ae9bb3e92df49ae3f4ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishl.jm; - -public class T_ishl_2 { - - public int run(int a, int b) { - return a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_3.j deleted file mode 100644 index d1a4f05d7e9a37b0db2632b4d442cdaf3c3d4df6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishl_3.java -.class public dxc/junit/opcodes/ishl/jm/T_ishl_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DI)I - .limit stack 3 - .limit locals 4 - - dload_1 -; d2i - iload_3 - ishl - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_3.java deleted file mode 100644 index e29bdcb983fc8f4d3b52c53f6113d1160147b682..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishl.jm; - -public class T_ishl_3 { - - public int run(double a, int b) { - return (int)a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_4.j deleted file mode 100644 index bf5cfb75250d8065b1ac66f90fdf838b6473476e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishl_4.java -.class public dxc/junit/opcodes/ishl/jm/T_ishl_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(IJ)I - .limit stack 3 - .limit locals 4 - - iload_1 - lload_2 -; l2i - ishl - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_4.java deleted file mode 100644 index ea7a5ff2356c22c11b95ef17e18406dd77cb2e99..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishl.jm; - -public class T_ishl_4 { - - public int run(int a, long b) { - return a << (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_5.j deleted file mode 100644 index f5af8bd05df6982563f7decf2af2f8a8eeab3820..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishl_5.java -.class public dxc/junit/opcodes/ishl/jm/T_ishl_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - ishl - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_5.java deleted file mode 100644 index 6db63ced584e9206691cdaf8a77f8db7bf2314c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishl/jm/T_ishl_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishl.jm; - -public class T_ishl_5 { - - public int run(int a, int b) { - return a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/Test_ishr.java b/tools/dx-tests/src/dxc/junit/opcodes/ishr/Test_ishr.java deleted file mode 100644 index eaed21c6a7162a4989ef8f4bc1bb552f360174be..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/Test_ishr.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishr; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ishr.jm.T_ishr_1; - -public class Test_ishr extends DxTestCase { - - /** - * @title 15 >> 1 - */ - public void testN1() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(7, t.run(15, 1)); - } - - /** - * @title 33 >> 2 - */ - public void testN2() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(8, t.run(33, 2)); - } - - /** - * @title -15 >> 1 - */ - public void testN3() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(-8, t.run(-15, 1)); - } - - /** - * @title Arguments = 1 & -1 - */ - public void testN4() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(0, t.run(1, -1)); - } - - /** - * @title Verify that shift distance is actually in range 0 to 32. - */ - public void testN5() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(16, t.run(33, 33)); - } - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(0, t.run(0, -1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE & 1 - */ - public void testB2() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(0x3FFFFFFF, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE & 1 - */ - public void testB3() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(0xc0000000, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = 1 & 0 - */ - public void testB4() { - T_ishr_1 t = new T_ishr_1(); - assertEquals(1, t.run(1, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ishr.jm.T_ishr_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ishr.jm.T_ishr_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ishr.jm.T_ishr_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ishr.jm.T_ishr_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_1.j deleted file mode 100644 index 227936cd6fe4ccc7c1255bd113c3325d2eae0c65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishr_1.java -.class public dxc/junit/opcodes/ishr/jm/T_ishr_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - ishr - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_1.java deleted file mode 100644 index 388f28d25c98286f285c949c21981b88693a86d4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishr.jm; - -public class T_ishr_1 { - - public int run(int a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_2.j deleted file mode 100644 index 21e352f1ef1fe554b23f2e9cf0301983e0234259..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishr_2.java -.class public dxc/junit/opcodes/ishr/jm/T_ishr_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - ishr - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_2.java deleted file mode 100644 index 4e5a4aafd5c180f04a7a8e4e65acfc480075e275..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishr.jm; - -public class T_ishr_2 { - - public int run(int a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_3.j deleted file mode 100644 index 26d6bd5fd84ad4b0b8b5b29b34f73f5d66340c2d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishr_3.java -.class public dxc/junit/opcodes/ishr/jm/T_ishr_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DI)I - .limit stack 3 - .limit locals 4 - - dload_1 -; d2i - iload_3 - ishr - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_3.java deleted file mode 100644 index bee515fd5886ce430fb76eea530a6d9d407f991c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishr.jm; - -public class T_ishr_3 { - - public int run(double a, int b) { - return (int)a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_4.j deleted file mode 100644 index 78f5c70c3d797093959ed8a699fe30fdf148106a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishr_4.java -.class public dxc/junit/opcodes/ishr/jm/T_ishr_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(IJ)I - .limit stack 3 - .limit locals 4 - - iload_1 - lload_2 -; l2i - ishr - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_4.java deleted file mode 100644 index c8c90be9862613767b48d507c340fab733aad305..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishr.jm; - -public class T_ishr_4 { - - public int run(int a, long b) { - return a >> (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_5.j deleted file mode 100644 index 8abb1aeaec80c0e9052676501953171ea0320f99..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ishr_5.java -.class public dxc/junit/opcodes/ishr/jm/T_ishr_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - ishr - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_5.java deleted file mode 100644 index 158f7403a9fdfa51941d05a41b3ca057af0f8383..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ishr/jm/T_ishr_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ishr.jm; - -public class T_ishr_5 { - - public int run(int a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/Test_istore.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/Test_istore.java deleted file mode 100644 index 0bf0a72f5557338dd35ac50335aeaefaca8054af..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/Test_istore.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.istore.jm.T_istore_1; -import dxc.junit.opcodes.istore.jm.T_istore_1_w; -import dxc.junit.opcodes.istore.jm.T_istore_5; -import dxc.junit.opcodes.istore.jm.T_istore_5_w; - -public class Test_istore extends DxTestCase { - - /* - * NORMAL ISTORE VERSION - */ - - /** - * @title istore 0 - */ - public void testN1() { - assertEquals(3, T_istore_1.run()); - } - - /** - * @title istore 255 - */ - public void testN2() { - assertEquals(3, T_istore_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.istore.jm.T_istore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.istore.jm.T_istore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.istore.jm.T_istore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE ISTORE VERSION - */ - - /** - * @title istore_w 0 - */ - public void testN3() { - assertEquals(3, T_istore_1_w.run()); - } - - /** - * @title istore 257 - */ - public void testN4() { - assertEquals(3, T_istore_5_w.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.istore.jm.T_istore_2_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.istore.jm.T_istore_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.istore.jm.T_istore_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1.j deleted file mode 100644 index 2b56c03d4d9b184a7f9541653962375f277656e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_1.java -.class public dxc/junit/opcodes/istore/jm/T_istore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 1 - - iconst_3 - istore 0 - iconst_4 - iload 0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1.java deleted file mode 100644 index 26bb4245f48a8d82278edeff15b251da7ee99d21..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1_w.j deleted file mode 100644 index fd4e41538fa611d25f39356b81f01971dcf24a5b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_1_w.java -.class public dxc/junit/opcodes/istore/jm/T_istore_1_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 1 - - iconst_3 - istore_w 0 - iconst_4 - iload 0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1_w.java deleted file mode 100644 index 4de9c680d44a1751b9838051300ccc5434878667..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_1_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_1_w { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2.j deleted file mode 100644 index c84ab6f2b72320913c3104ba631c8afee9ca4d72..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_2.java -.class public dxc/junit/opcodes/istore/jm/T_istore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - istore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2.java deleted file mode 100644 index 7c31a2f6881760ed37c2fad8354b88d1353af1fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2_w.j deleted file mode 100644 index 43668070a0ab46924f374bba112c39a41a091802..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_2_w.java -.class public dxc/junit/opcodes/istore/jm/T_istore_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - istore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2_w.java deleted file mode 100644 index eea683b0b561145560de94d9345ef9e063a8e417..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_2_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_2_w { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3.j deleted file mode 100644 index d7bd3b642230a8c6e4bfc3542e4ef3d49fe93dcb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_3.java -.class public dxc/junit/opcodes/istore/jm/T_istore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - istore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3.java deleted file mode 100644 index 094c6c6a93d64c4af024d8f254e0dd4d69f19df7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3_w.j deleted file mode 100644 index dfac8937a245324901c1e12cf929427ace259694..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_3_w.java -.class public dxc/junit/opcodes/istore/jm/T_istore_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - istore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3_w.java deleted file mode 100644 index 9b2f31279ed865000b26e8b1edf9eaa0a53a2bb0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_3_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_3_w { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4.j deleted file mode 100644 index 6252b442e603e08696bf94bd0d62750c77b4f3db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_4.java -.class public dxc/junit/opcodes/istore/jm/T_istore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - istore 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4.java deleted file mode 100644 index c7882a3f290a9b1989af3d9b7f57e63bacd36f4a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4_w.j deleted file mode 100644 index 7050afa093d26c5eca0e0f48b2d909ea8446204b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_4_w.java -.class public dxc/junit/opcodes/istore/jm/T_istore_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - istore_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4_w.java deleted file mode 100644 index 79d0d0a8ed1891310cb6996b7041e77cb3b22333..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_4_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_4_w { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5.j deleted file mode 100644 index 41e7c1fc0cd1daa75473e705e6f9693a3a612236..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_5.java -.class public dxc/junit/opcodes/istore/jm/T_istore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 300 - - iconst_3 - istore 255 - iconst_4 - iload 255 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5.java deleted file mode 100644 index 51761df9ec4febc837e40e3fe31faf102c0612b9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_5 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5_w.j deleted file mode 100644 index 79ddbacb212d2c0ff2e7447b36c469671e614124..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_5_w.java -.class public dxc/junit/opcodes/istore/jm/T_istore_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 300 - - iconst_3 - istore_w 257 - iconst_4 - iload 257 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5_w.java deleted file mode 100644 index 456e1c61605bc73fd680028d1f7bc2ac2dcc8e86..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore/jm/T_istore_5_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore.jm; - -public class T_istore_5_w { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/Test_istore_0.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/Test_istore_0.java deleted file mode 100644 index 5db3ee1dfd53cae09323bf9749e2ee15a67fb425..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/Test_istore_0.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.istore_0.jm.T_istore_0_1; -import dxc.junit.opcodes.istore_0.jm.T_istore_0_5; - -public class Test_istore_0 extends DxTestCase { - - /** - * @title - * "The value of local variable at is pushed onto the operand stack." - */ - public void testN1() { - assertEquals(3, T_istore_0_1.run()); - } - - /** - * @title - * "Each of the istore_ instructions is the same as istore with an index of " - */ - public void testN2() { - assertTrue(T_istore_0_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.istore_0.jm.T_istore_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.istore_0.jm.T_istore_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.istore_0.jm.T_istore_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_1.j deleted file mode 100644 index 018b594d869736d6b2e6c70566418ccfc28f8db7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_0_1.java -.class public dxc/junit/opcodes/istore_0/jm/T_istore_0_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 1 - - iconst_3 - istore_0 - iconst_4 - iload_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_1.java deleted file mode 100644 index 1674efdc9a5461d8949f3d750312e04a56a3567e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_0.jm; - -public class T_istore_0_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_2.j deleted file mode 100644 index 72a9b7ef54013d9dcb998f455e22e361ad6468d5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_0_2.java -.class public dxc/junit/opcodes/istore_0/jm/T_istore_0_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - istore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_2.java deleted file mode 100644 index 072ea724531349f561ce357a75226cf4c146ef39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_0.jm; - -public class T_istore_0_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_3.j deleted file mode 100644 index 8e48f0cfefd42ffa22447c832ce44660abb7ed21..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_0_3.java -.class public dxc/junit/opcodes/istore_0/jm/T_istore_0_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - istore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_3.java deleted file mode 100644 index 7b4b791d75d051be82c06193061567f00568e81a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_0.jm; - -public class T_istore_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_4.j deleted file mode 100644 index 97a9b31a422ba305cb0efdbb0fc60b3988e5aa69..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_0_4.java -.class public dxc/junit/opcodes/istore_0/jm/T_istore_0_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - istore_0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_4.java deleted file mode 100644 index afe446339d002603e228dac1e12e411173f9bdc0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_0.jm; - -public class T_istore_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_5.j deleted file mode 100644 index 2d44529e4cc396205d8b92ab7e91050515be8565..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_5.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_0_5.java -.class public dxc/junit/opcodes/istore_0/jm/T_istore_0_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 2 - - iconst_4 - istore_0 - iload_0 - - iconst_4 - istore 0 - iload_0 - - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_5.java deleted file mode 100644 index f1de7816fe9a3d4eef8abd6c4ff7d1e0d3cfbc39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_0/jm/T_istore_0_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_0.jm; - -public class T_istore_0_5 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/Test_istore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/Test_istore_1.java deleted file mode 100644 index f19e001158c68533301e246fc32e5fc22b36f4e9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/Test_istore_1.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.istore_1.jm.T_istore_1_1; -import dxc.junit.opcodes.istore_1.jm.T_istore_1_5; - -public class Test_istore_1 extends DxTestCase { - - /** - * @title value of local variable at is pushed onto the operand stack - */ - public void testN1() { - assertEquals(3, T_istore_1_1.run()); - } - - /** - * @title each of the istore_ instructions is the same as istore with an index of - */ - public void testN2() { - assertTrue(T_istore_1_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.istore_1.jm.T_istore_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.istore_1.jm.T_istore_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.istore_1.jm.T_istore_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_1.j deleted file mode 100644 index 19950d59712cb826f4d42c3bc6d6aa361342efe9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_1_1.java -.class public dxc/junit/opcodes/istore_1/jm/T_istore_1_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 2 - - iconst_3 - istore_1 - iconst_4 - iload_1 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_1.java deleted file mode 100644 index 862a5ee7c2a9813dcc7d5df5b5e5def179654d55..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_1.jm; - -public class T_istore_1_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_2.j deleted file mode 100644 index 5e4ba56907f93f45f757ff6154433a49c51c5b16..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_1_2.java -.class public dxc/junit/opcodes/istore_1/jm/T_istore_1_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - istore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_2.java deleted file mode 100644 index 914e29a73f791356f46a6764271ee167c5b96fd1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_1.jm; - -public class T_istore_1_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_3.j deleted file mode 100644 index 46c98826e41bc95e62634c1a78e56bd69440542d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_1_3.java -.class public dxc/junit/opcodes/istore_1/jm/T_istore_1_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - istore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_3.java deleted file mode 100644 index 4e6c9068d0dcb34caa80c1cf29fdbf64fe161689..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_1.jm; - -public class T_istore_1_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_4.j deleted file mode 100644 index f5d9dd641239dfd5143da5b839a3f1da28d31ed3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_1_4.java -.class public dxc/junit/opcodes/istore_1/jm/T_istore_1_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - istore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_4.java deleted file mode 100644 index ef863a0b2673a424c5c4d4684b4a00d6f9ba9e84..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_1.jm; - -public class T_istore_1_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_5.j deleted file mode 100644 index 2f36d55a3a6951c3d784fe7cecc6f064d8b45726..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_5.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_1_5.java -.class public dxc/junit/opcodes/istore_1/jm/T_istore_1_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 2 - - iconst_4 - istore_1 - iload_1 - - iconst_4 - istore 1 - iload_1 - - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_5.java deleted file mode 100644 index 11695142d8c5d378722c039ae74491758c88b4af..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_1.jm; - -public class T_istore_1_5 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_6.java deleted file mode 100644 index 91d705a7f8797839871f85a385c2f75c848d5d92..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_1/jm/T_istore_1_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_1.jm; - -public class T_istore_1_6 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/Test_istore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/Test_istore_2.java deleted file mode 100644 index 5969a29a54a1525fb4a400358592fb9a99bb6f91..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/Test_istore_2.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.istore_2.jm.T_istore_2_1; -import dxc.junit.opcodes.istore_2.jm.T_istore_2_5; - -public class Test_istore_2 extends DxTestCase { - - /** - * @title value of local variable at is pushed onto the operand stack. - */ - public void testN1() { - assertEquals(3, T_istore_2_1.run()); - } - - /** - * @title Each of the istore_ instructions is the same as istore with an index of - */ - public void testN2() { - assertTrue(T_istore_2_5.run()); - } - - /** - * /** @constraint 4.8.1.22 - * @title index must be no greater than the - * value of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.istore_2.jm.T_istore_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.istore_2.jm.T_istore_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.istore_2.jm.T_istore_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_1.j deleted file mode 100644 index 08ecc36e1991052e0ebde30efb89e3715a343623..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_2_1.java -.class public dxc/junit/opcodes/istore_2/jm/T_istore_2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 4 - - iconst_3 - istore_2 - iconst_4 - iload_2 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_1.java deleted file mode 100644 index ee46237966f161ffa94db06eb534fcf744de3435..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_2.jm; - -public class T_istore_2_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_2.j deleted file mode 100644 index a87b68b8d680ab017a3053bc9dabe72d06fd574e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_2_2.java -.class public dxc/junit/opcodes/istore_2/jm/T_istore_2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - istore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_2.java deleted file mode 100644 index 0bd11f7e35277291c9427b62291c216eb487a9ce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_2.jm; - -public class T_istore_2_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_3.j deleted file mode 100644 index c3a6c6f9919f014c6e31cad2c4ecb175818bac30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_2_3.java -.class public dxc/junit/opcodes/istore_2/jm/T_istore_2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - istore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_3.java deleted file mode 100644 index 7b1052c2d542e3f2daae56acf05f8dc5c61090bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_2.jm; - -public class T_istore_2_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_4.j deleted file mode 100644 index e78662a8a259ca83dfa9da4c9ee255ca89742190..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_2_4.java -.class public dxc/junit/opcodes/istore_2/jm/T_istore_2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - istore_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_4.java deleted file mode 100644 index ef0a44b8c5d7e6fdddeb2163c567314edcdd55eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_2.jm; - -public class T_istore_2_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_5.j deleted file mode 100644 index 65212ec010578af3e5e657c977fca90966db3cb2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_5.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_2_5.java -.class public dxc/junit/opcodes/istore_2/jm/T_istore_2_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 3 - - iconst_4 - istore_2 - iload_2 - - iconst_4 - istore 2 - iload_2 - - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_5.java deleted file mode 100644 index 3d852d389e66bf9e7798a7a2397e45b54fd7a857..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_2/jm/T_istore_2_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_2.jm; - -public class T_istore_2_5 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/Test_istore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/Test_istore_3.java deleted file mode 100644 index 39353383a3c412280755002c4b18c9a5bff2004c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/Test_istore_3.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.istore_3.jm.T_istore_3_1; -import dxc.junit.opcodes.istore_3.jm.T_istore_3_5; - -public class Test_istore_3 extends DxTestCase { - - /** - * @title value of local variable at is pushed onto the operand stack. - */ - public void testN1() { - assertEquals(3, T_istore_3_1.run()); - } - - /** - * @title Each of the istore_ instructions is the same as istore with an index of - */ - public void testN2() { - assertTrue(T_istore_3_5.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.istore_3.jm.T_istore_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.istore_3.jm.T_istore_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.istore_3.jm.T_istore_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_1.j deleted file mode 100644 index 4500a87cf885fe95ac7ac0c2afa5845f03a57aa4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_3_1.java -.class public dxc/junit/opcodes/istore_3/jm/T_istore_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()I - .limit stack 2 - .limit locals 4 - - iconst_3 - istore_3 - iconst_4 - iload_3 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_1.java deleted file mode 100644 index 6e26daca1c4069d687e104188d29e8b8333ecefe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_3.jm; - -public class T_istore_3_1 { - - public static int run() { - return 3; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_2.j deleted file mode 100644 index 0be8ae98ebfed86114bb81cfad0abc69ee8c7d95..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_3_2.java -.class public dxc/junit/opcodes/istore_3/jm/T_istore_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - istore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_2.java deleted file mode 100644 index cd6cc2e9b8f448f06e678addedcfe18bccfdedfe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_3.jm; - -public class T_istore_3_2 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_3.j deleted file mode 100644 index e481f786050e8ac1c25a665bfdca3e435b49b784..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_3_3.java -.class public dxc/junit/opcodes/istore_3/jm/T_istore_3_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - istore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_3.java deleted file mode 100644 index b51534a2388f8dd695085da9776586e6c130ae7e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_3.jm; - -public class T_istore_3_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_4.j deleted file mode 100644 index 0c6e9472b7581c442315c59ea6386c7bd09a8e15..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_3_4.java -.class public dxc/junit/opcodes/istore_3/jm/T_istore_3_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()V - .limit stack 4 - .limit locals 4 - - lconst_1 - istore_3 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_4.java deleted file mode 100644 index 9eebda6cda08c93d0dc513b4b817dbb910114ece..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_3.jm; - -public class T_istore_3_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_5.j deleted file mode 100644 index 6a10077f5b2ddf655433ad35980a9e54199d2cab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_5.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_istore_3_5.java -.class public dxc/junit/opcodes/istore_3/jm/T_istore_3_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public static run()Z - .limit stack 2 - .limit locals 4 - - iconst_4 - istore_3 - iload_3 - - iconst_4 - istore 3 - iload_3 - - if_icmpne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_5.java deleted file mode 100644 index dc6c7ef6b1a53623ff116e2ef526dc3eede8e4a3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/istore_3/jm/T_istore_3_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.istore_3.jm; - -public class T_istore_3_5 { - - public static boolean run() { - int i = 4; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/Test_isub.java b/tools/dx-tests/src/dxc/junit/opcodes/isub/Test_isub.java deleted file mode 100644 index a31f856395905849dc6e6e2b61caef8dde593b13..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/Test_isub.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.isub; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.isub.jm.T_isub_1; - -public class Test_isub extends DxTestCase { - - /** - * @title Arguments = 8, 4 - */ - public void testN1() { - T_isub_1 t = new T_isub_1(); - assertEquals(4, t.run(8, 4)); - } - - /** - * @title Arguments = 0, 255 - */ - public void testN2() { - T_isub_1 t = new T_isub_1(); - assertEquals(-255, t.run(0, 255)); - } - - /** - * @title Arguments = 0, -65536 - */ - public void testN3() { - T_isub_1 t = new T_isub_1(); - assertEquals(65536, t.run(0, -65536)); - } - - /** - * @title Arguments = 0, -2147483647 - */ - public void testN4() { - T_isub_1 t = new T_isub_1(); - assertEquals(Integer.MAX_VALUE, t.run(0, -2147483647)); - } - - /** - * @title Arguments = 0, Integer.MAX_VALUE - */ - public void testB1() { - T_isub_1 t = new T_isub_1(); - assertEquals(-2147483647, t.run(0, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE - */ - public void testB2() { - T_isub_1 t = new T_isub_1(); - assertEquals(0, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, -1 - */ - public void testB3() { - T_isub_1 t = new T_isub_1(); - assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, -1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE, 1 - */ - public void testB4() { - T_isub_1 t = new T_isub_1(); - assertEquals(Integer.MAX_VALUE, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_isub_1 t = new T_isub_1(); - assertEquals(0, t.run(0, 0)); - } - - /** - * @title Arguments = 0, -Integer.MIN_VALUE - */ - public void testB6() { - T_isub_1 t = new T_isub_1(); - assertEquals(-2147483648, t.run(0, -Integer.MIN_VALUE)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, 1 - */ - public void testB7() { - T_isub_1 t = new T_isub_1(); - assertEquals(2147483646, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = 1, Integer.MIN_VALUE - */ - public void testB8() { - T_isub_1 t = new T_isub_1(); - assertEquals(-2147483647, t.run(1, Integer.MIN_VALUE)); - } - - /** - * @title Arguments = Integer.MAX_VALUE, Integer.MIN_VALUE - */ - public void testB9() { - T_isub_1 t = new T_isub_1(); - assertEquals(-1, t.run(Integer.MAX_VALUE, Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.isub.jm.T_isub_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.isub.jm.T_isub_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.isub.jm.T_isub_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.isub.jm.T_isub_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_1.j b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_1.j deleted file mode 100644 index d4060388949e3756f348d615157f23a5c0072d7d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_isub_1.java -.class public dxc/junit/opcodes/isub/jm/T_isub_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - isub - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_1.java b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_1.java deleted file mode 100644 index bcb204e8483ba92b1fd03207f00d6db43600aa64..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.isub.jm; - -public class T_isub_1 { - - public int run(int a, int b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_2.j b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_2.j deleted file mode 100644 index d9c100a4683f2d3f401ebd83fd3716bc2e9fbeac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_isub_2.java -.class public dxc/junit/opcodes/isub/jm/T_isub_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - ; iload_2 - isub - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_2.java b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_2.java deleted file mode 100644 index b0c22d1bc2208619ef31b65cf466bbc451f2d2ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.isub.jm; - -public class T_isub_2 { - - public int run(int a, int b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_3.j b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_3.j deleted file mode 100644 index e8afde90035a3bbe371895878c4425d23d4da572..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_isub_3.java -.class public dxc/junit/opcodes/isub/jm/T_isub_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(ID)I - .limit stack 3 - .limit locals 5 - iload_1 - dload_2 - isub - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_3.java b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_3.java deleted file mode 100644 index 0bfd571df75b903428c95916eaa5bf9f5a99232f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.isub.jm; - -public class T_isub_3 { - - public int run(int a, double b) { - return a-(int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_4.j b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_4.j deleted file mode 100644 index 93d9f1d7839f4e2a43ccb2392b137078bc29812e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_isub_4.java -.class public dxc/junit/opcodes/isub/jm/T_isub_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)I - .limit stack 3 - .limit locals 4 - - lload_1 -; l2i - iload_3 - isub - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_4.java b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_4.java deleted file mode 100644 index 66b92740167797f52aee6a391ec35076c6f1bd13..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.isub.jm; - -public class T_isub_4 { - - public int run(long a, int b) { - return (int)a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_5.j b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_5.j deleted file mode 100644 index 3ec22ff9327caa6942e37c63be8b8c4c3b1eef8c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_isub_5.java -.class public dxc/junit/opcodes/isub/jm/T_isub_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - isub - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_5.java b/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_5.java deleted file mode 100644 index f7660cbb757e99a9c841b83482c46858fe395afe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/isub/jm/T_isub_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.isub.jm; - -public class T_isub_5 { - - public int run(int a, int b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/Test_iushr.java b/tools/dx-tests/src/dxc/junit/opcodes/iushr/Test_iushr.java deleted file mode 100644 index 2f20bafff5b09b438b7897f9cb3d2f431011c020..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/Test_iushr.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iushr; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.iushr.jm.T_iushr_1; - -public class Test_iushr extends DxTestCase { - - /** - * @title 15 >> 1 - */ - public void testN1() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(7, t.run(15, 1)); - } - - /** - * @title 33 >> 2 - */ - public void testN2() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(8, t.run(33, 2)); - } - - /** - * @title -15 >> 1 - */ - public void testN3() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(0x7FFFFFF8, t.run(-15, 1)); - } - - /** - * @title Arguments = 1 & -1 - */ - public void testN4() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(0, t.run(1, -1)); - } - - /** - * @title Verify that shift distance is actually in range 0 to 32. - */ - public void testN5() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(16, t.run(33, 33)); - } - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(0, t.run(0, -1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE & 1 - */ - public void testB2() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(0x3FFFFFFF, t.run(Integer.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Integer.MIN_VALUE & 1 - */ - public void testB3() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(0x40000000, t.run(Integer.MIN_VALUE, 1)); - } - - /** - * @title Arguments = 1 & 0 - */ - public void testB4() { - T_iushr_1 t = new T_iushr_1(); - assertEquals(1, t.run(1, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.iushr.jm.T_iushr_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.iushr.jm.T_iushr_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.iushr.jm.T_iushr_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.iushr.jm.T_iushr_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_1.j b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_1.j deleted file mode 100644 index d155b857e3153f9fa88257321a2c50e3883c6606..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iushr_1.java -.class public dxc/junit/opcodes/iushr/jm/T_iushr_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - iushr - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_1.java b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_1.java deleted file mode 100644 index bef049918b4e5f6d380e3605e9858e188ee23704..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iushr.jm; - -public class T_iushr_1 { - - public int run(int a, int b) { - return a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_2.j b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_2.j deleted file mode 100644 index 211cd493a48004e4f0c15fc2bb027b93c40040f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iushr_2.java -.class public dxc/junit/opcodes/iushr/jm/T_iushr_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - iushr - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_2.java b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_2.java deleted file mode 100644 index 951c9db6a5e1f812cdccaa4db377cb8496d23974..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iushr.jm; - -public class T_iushr_2 { - - public int run(int a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_3.j b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_3.j deleted file mode 100644 index 37f6b3cc314d383d3f6a325457329b953da5b261..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iushr_3.java -.class public dxc/junit/opcodes/iushr/jm/T_iushr_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DI)I - .limit stack 3 - .limit locals 4 - - dload_1 -; d2i - iload_3 - iushr - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_3.java b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_3.java deleted file mode 100644 index ede613c1de8ce2dad35cb0bbf8fe9f0151b8a650..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iushr.jm; - -public class T_iushr_3 { - - public int run(double a, int b) { - return (int)a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_4.j b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_4.j deleted file mode 100644 index c6e4744a0549eed2d70a9a89dbced1fa1c4fe77a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iushr_4.java -.class public dxc/junit/opcodes/iushr/jm/T_iushr_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(IJ)I - .limit stack 3 - .limit locals 4 - - iload_1 - lload_2 -; l2i - iushr - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_4.java b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_4.java deleted file mode 100644 index 41c782988e0ec9d9709458961d9b70f2c97a1d05..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iushr.jm; - -public class T_iushr_4 { - - public int run(int a, long b) { - return a >> (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_5.j b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_5.j deleted file mode 100644 index 4e4ae339f56952ad0713caebd700b3adb3429e39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_iushr_5.java -.class public dxc/junit/opcodes/iushr/jm/T_iushr_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - iushr - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_5.java b/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_5.java deleted file mode 100644 index beb152c86442455ab598be4922e0eeb8b7576f60..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/iushr/jm/T_iushr_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.iushr.jm; - -public class T_iushr_5 { - - public int run(int a, int b) { - return a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/Test_ixor.java b/tools/dx-tests/src/dxc/junit/opcodes/ixor/Test_ixor.java deleted file mode 100644 index 5425b9ee45951a424839300f7db423e39981baff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/Test_ixor.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ixor; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ixor.jm.T_ixor_1; - -public class Test_ixor extends DxTestCase { - - /** - * @title Arguments = 15, 8 - */ - public void testN1() { - T_ixor_1 t = new T_ixor_1(); - assertEquals(7, t.run(15, 8)); - } - - /** - * @title Arguments = 0xfffffff8, 0xfffffff1 - */ - public void testN2() { - T_ixor_1 t = new T_ixor_1(); - assertEquals(9, t.run(0xfffffff8, 0xfffffff1)); - } - - /** - * @title Arguments = 0xcafe & -1 - */ - public void testN3() { - T_ixor_1 t = new T_ixor_1(); - assertEquals(0xFFFF3501, t.run(0xcafe, -1)); - } - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_ixor_1 t = new T_ixor_1(); - assertEquals(-1, t.run(0, -1)); - } - - /** - * @title Arguments = Integer.MAX_VALUE & Integer.MIN_VALUE - */ - public void testB2() { - T_ixor_1 t = new T_ixor_1(); - assertEquals(0xffffffff, t.run(Integer.MAX_VALUE, Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ixor.jm.T_ixor_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ixor.jm.T_ixor_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ixor.jm.T_ixor_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ixor.jm.T_ixor_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_1.j deleted file mode 100644 index 56ae3a0e7585f1edb1a4ad9845a70de7bd5876b9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ixor_1.java -.class public dxc/junit/opcodes/ixor/jm/T_ixor_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - ixor - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_1.java deleted file mode 100644 index c4ae6bb0a79c45e7701de1c3be21bd06e88845c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ixor.jm; - -public class T_ixor_1 { - - public int run(int a, int b) { - return a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_2.j deleted file mode 100644 index 5d80b380eeb675e1275bb8a7844340eec60764a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ixor_2.java -.class public dxc/junit/opcodes/ixor/jm/T_ixor_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - ixor - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_2.java deleted file mode 100644 index 57fbb223463378115e45f17656631d85b9fe85aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ixor.jm; - -public class T_ixor_2 { - - public int run(int a, int b) { - return a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_3.j deleted file mode 100644 index 577338898712c191b6175fbdbccd7096632cf044..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ixor_3.java -.class public dxc/junit/opcodes/ixor/jm/T_ixor_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DI)I - .limit stack 3 - .limit locals 4 - - dload_1 -; d2i - iload_3 - ixor - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_3.java deleted file mode 100644 index 8b968eda48015068f523cb8e224f20fc3721309d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ixor.jm; - -public class T_ixor_3 { - - public int run(double a, int b) { - return (int)a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_4.j deleted file mode 100644 index 68649a2fccebf04f4f2f1c5f95b2809c84ae539a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ixor_4.java -.class public dxc/junit/opcodes/ixor/jm/T_ixor_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(IJ)I - .limit stack 3 - .limit locals 4 - - iload_1 - lload_2 -; l2i - ixor - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_4.java deleted file mode 100644 index 6406bc9221b010ea728a098b22e800a8553307db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ixor.jm; - -public class T_ixor_4 { - - public int run(int a, long b) { - return a ^ (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_5.j deleted file mode 100644 index 53c64f49aa63cdd983e734e74a75f2dde427f036..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ixor_5.java -.class public dxc/junit/opcodes/ixor/jm/T_ixor_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - - aload_0 - iload_2 - ixor - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_5.java deleted file mode 100644 index 3b52886b31379c08d2c096b8f3582baefe78f19e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ixor/jm/T_ixor_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ixor.jm; - -public class T_ixor_5 { - - public int run(int a, int b) { - return a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/Test_jsr.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr/Test_jsr.java deleted file mode 100644 index 5a737a95e6d1bf7d833a5739ecc1e85f26ea02fd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/Test_jsr.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.jsr.jm.T_jsr_1; -import dxc.junit.opcodes.jsr.jm.T_jsr_2; - -public class Test_jsr extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_jsr_1 t = new T_jsr_1(); - assertTrue(t.run()); - } - - /** - * @title nested jsrs - */ - public void testN2() { - T_jsr_2 t = new T_jsr_2(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.23 - * @title recursion of jsr - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.jsr.jm.T_jsr_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.jsr.jm.T_jsr_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target inside wide instruction - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.jsr.jm.T_jsr_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_1.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_1.j deleted file mode 100644 index 5e97c777de08f054ecbcafbf8599122db711fc29..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_1.j +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_1.java -.class public dxc/junit/opcodes/jsr/jm/T_jsr_1 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr SetField - - aload_0 - getfield dxc.junit.opcodes.jsr.jm.T_jsr_1.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr.jm.T_jsr_1.i1 I - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_1.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_1.java deleted file mode 100644 index d148104c914e29c9a00a14936b30d2fd173f1f37..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_1.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr.jm; - -public class T_jsr_1 { - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_2.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_2.j deleted file mode 100644 index ee1ffacff1bc2d034d2e08f8ef6dd57ddbb3b950..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_2.j +++ /dev/null @@ -1,61 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_2.java -.class public dxc/junit/opcodes/jsr/jm/T_jsr_2 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 3 - - jsr SetField - - aload_0 - getfield dxc.junit.opcodes.jsr.jm.T_jsr_2.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 500 - putfield dxc.junit.opcodes.jsr.jm.T_jsr_2.i1 I - - jsr SetField1 - - ret 1 - -SetField1: - astore_2 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr.jm.T_jsr_2.i1 I - ret 2 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_2.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_2.java deleted file mode 100644 index 10e4303cbf4aaa9c041c5ce4b7ca120a9a3be437..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_2.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr.jm; - -public class T_jsr_2 { - public int i1; - - private void setfield() { - i1 = 500; - setfield1(); - } - - private void setfield1() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.cfh deleted file mode 100644 index 6deff5645d016530e7aa3944d4d529001b5f2379..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.cfh +++ /dev/null @@ -1,219 +0,0 @@ -//@class:dxc/junit/opcodes/jsr/jm/T_jsr_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 3, h: 0005: type{dxc.junit.opcodes.jsr.jm.T_jsr_3} - // . . . - 07 00 0d - // parsed:, offset 59, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 65, len 5, h: 0007: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 70, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 04 00 0c - // parsed:, offset 75, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 82, len 6, h: 000a: utf8{"()Z"} - // . . . ( ) Z - 01 00 03 28 29 5a - // parsed:, offset 88, len 15, h: 000b: utf8{"T_jsr_3.java"} - // . . . T _ j s r _ 3 . j a v a - 01 00 0c 54 5f 6a 73 72 5f 33 2e 6a 61 76 61 - // parsed:, offset 103, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 109, len 35, h: 000d: utf8{"dxc/junit/opcodes/jsr/jm/T_jsr_3"} - // . . d x c / j u n i t / o p c o d e s / j s r / j m / T _ j s r _ 3 - 01 00 20 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6a 73 72 2f 6a 6d 2f 54 5f 6a 73 72 5f 33 - // parsed:, offset 144, len 4, h: 000e: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 148, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 151, len 0, h: end constant_pool -// parsed:, offset 151, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 153, len 2, h: this_class: type{dxc.junit.opcodes.jsr.jm.T_jsr_3} -// . . - 00 05 -// parsed:, offset 155, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 157, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 159, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 161, len:90,desc: I -// parsed:, offset 161, len 0, h: fields[0]: - // parsed:, offset 161, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 163, len 2, h: name: i1 - // . . - 00 07 - // parsed:, offset 165, len 2, h: descriptor: I - // . . - 00 0e - // parsed:, offset 167, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 169, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 169, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 171, len:80,desc: ()V -// parsed:, offset 171, len 0, h: methods[0]: - // parsed:, offset 171, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 173, len 2, h: name: - // . . - 00 04 - // parsed:, offset 175, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 177, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 179, len 0, h: attributes[0]: - // parsed:, offset 179, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 181, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 185, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 187, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 189, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 198, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 200, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 202, len 0, h: end attributes[0] -// parsed:, offset 202, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 202, len:49,desc: ()Z -// parsed:, offset 202, len 0, h: methods[1]: - // parsed:, offset 202, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 204, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 206, len 2, h: descriptor: ()Z - // . . - 00 0a - // parsed:, offset 208, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 210, len 0, h: attributes[0]: - // parsed:, offset 210, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 212, len 4, h: length: 00000019 - // . . . . - 00 00 00 19 - // parsed:, offset 216, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 218, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 220, len 4, h: code_length: 0000000d - // . . . . - 00 00 00 0d - // parsed:, offset 0, len 3, h: 0000: jsr 0007 - // . . . -//@mod a8 00 07 - a8 00 08 - // parsed:, offset 3, len 1, h: 0003: iconst_0 // #+00 - // . - 03 - // parsed:, offset 4, len 1, h: 0004: ireturn - // . - ac - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 4, h: 0007: wide astore 0001 - // . : . . - c4 3a 00 01 - // parsed:, offset 11, len 2, h: 000b: ret 01 - // . . - a9 01 - // parsed:, offset 237, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 239, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 241, len 0, h: end attributes[0] -// parsed:, offset 241, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()Z -// parsed:, offset 241, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 243, len 0, h: attributes[0]: - // parsed:, offset 243, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 245, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 249, len 2, h: source: utf8{"T_jsr_3.java"} - // . . - 00 0b -// parsed:, offset 251, len 0, h: end attributes[0] -// parsed:, offset 251, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.j deleted file mode 100644 index f0f987a873e95e339483eb01d3177458b7272fe4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_3.java -.class public dxc/junit/opcodes/jsr/jm/T_jsr_3 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr SetField - - iconst_0 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_w 1 - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.java deleted file mode 100644 index 2d5b6a5a3200d05308e661d90bfd8938809f3b40..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_3.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr.jm; - -public class T_jsr_3 { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_4.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_4.j deleted file mode 100644 index 328206179f8a4e3c9515c754951ad33120e5a22a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_4.j +++ /dev/null @@ -1,53 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_4.java -.class public dxc/junit/opcodes/jsr/jm/T_jsr_4 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr SetField - aload_0 - getfield dxc.junit.opcodes.jsr.jm.T_jsr_4.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr.jm.T_jsr_4.i1 I - - jsr SetField - - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_4.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_4.java deleted file mode 100644 index ec13147d16bbebbd157c7985193085a05f29db18..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_4.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr.jm; - -public class T_jsr_4 { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.cfh deleted file mode 100644 index 6ecea6a375584a5cb4f154c94b554d162db162e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.cfh +++ /dev/null @@ -1,246 +0,0 @@ -//@class:dxc/junit/opcodes/jsr/jm/T_jsr_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 3, h: 0004: type{dxc.junit.opcodes.jsr.jm.T_jsr_5} - // . . . - 07 00 0e - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 65, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0d - // parsed:, offset 70, len 5, h: 0008: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 75, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 82, len 15, h: 000a: utf8{"T_jsr_5.java"} - // . . . T _ j s r _ 5 . j a v a - 01 00 0c 54 5f 6a 73 72 5f 35 2e 6a 61 76 61 - // parsed:, offset 97, len 6, h: 000b: utf8{"()Z"} - // . . . ( ) Z - 01 00 03 28 29 5a - // parsed:, offset 103, len 5, h: 000c: field{dxc.junit.opcodes.jsr.jm.T_jsr_5.i1:I} - // . . . . . - 09 00 04 00 11 - // parsed:, offset 108, len 6, h: 000d: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 114, len 35, h: 000e: utf8{"dxc/junit/opcodes/jsr/jm/T_jsr_5"} - // . . d x c / j u n i t / o p c o d e s / j s r / j m / T _ j s r _ 5 - 01 00 20 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6a 73 72 2f 6a 6d 2f 54 5f 6a 73 72 5f 35 - // parsed:, offset 149, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 152, len 4, h: 0010: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 156, len 5, h: 0011: nat{i1:I} - // . . . . . - 0c 00 08 00 10 -// parsed:, offset 161, len 0, h: end constant_pool -// parsed:, offset 161, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 163, len 2, h: this_class: type{dxc.junit.opcodes.jsr.jm.T_jsr_5} -// . . - 00 04 -// parsed:, offset 165, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 167, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 169, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 171, len:104,desc: I -// parsed:, offset 171, len 0, h: fields[0]: - // parsed:, offset 171, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 173, len 2, h: name: i1 - // . . - 00 08 - // parsed:, offset 175, len 2, h: descriptor: I - // . . - 00 10 - // parsed:, offset 177, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 179, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 179, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 181, len:94,desc: ()V -// parsed:, offset 181, len 0, h: methods[0]: - // parsed:, offset 181, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 183, len 2, h: name: - // . . - 00 05 - // parsed:, offset 185, len 2, h: descriptor: ()V - // . . - 00 0d - // parsed:, offset 187, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 189, len 0, h: attributes[0]: - // parsed:, offset 189, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 191, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 195, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 197, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 199, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 208, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 210, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 212, len 0, h: end attributes[0] -// parsed:, offset 212, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 212, len:63,desc: ()Z -// parsed:, offset 212, len 0, h: methods[1]: - // parsed:, offset 212, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 214, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 216, len 2, h: descriptor: ()Z - // . . - 00 0b - // parsed:, offset 218, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 220, len 0, h: attributes[0]: - // parsed:, offset 220, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 222, len 4, h: length: 00000027 - // . . . ' - 00 00 00 27 - // parsed:, offset 226, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 228, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 230, len 4, h: code_length: 0000001b - // . . . . - 00 00 00 1b - // parsed:, offset 0, len 3, h: 0000: jsr 0011 - // . . . -//@mod a8 00 11 - a8 00 ff - // parsed:, offset 3, len 1, h: 0003: aload_0 // 00 - // * - 2a - // parsed:, offset 4, len 3, h: 0004: getfield field{dxc.junit.opcodes.jsr.jm.T_jsr_5.i1:I} - // . . . - b4 00 0c - // parsed:, offset 7, len 3, h: 0007: sipush #+03e8 - // . . . - 11 03 e8 - // parsed:, offset 10, len 3, h: 000a: if_icmpne 000f - // . . . - a0 00 05 - // parsed:, offset 13, len 1, h: 000d: iconst_1 // #+01 - // . - 04 - // parsed:, offset 14, len 1, h: 000e: ireturn - // . - ac - // parsed:, offset 15, len 1, h: 000f: iconst_0 // #+00 - // . - 03 - // parsed:, offset 16, len 1, h: 0010: ireturn - // . - ac - // parsed:, offset 17, len 1, h: 0011: astore_1 // 01 - // L - 4c - // parsed:, offset 18, len 1, h: 0012: aload_0 // 00 - // * - 2a - // parsed:, offset 19, len 3, h: 0013: sipush #+03e8 - // . . . - 11 03 e8 - // parsed:, offset 22, len 3, h: 0016: putfield field{dxc.junit.opcodes.jsr.jm.T_jsr_5.i1:I} - // . . . - b5 00 0c - // parsed:, offset 25, len 2, h: 0019: ret 01 - // . . - a9 01 - // parsed:, offset 261, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 263, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 265, len 0, h: end attributes[0] -// parsed:, offset 265, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()Z -// parsed:, offset 265, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 267, len 0, h: attributes[0]: - // parsed:, offset 267, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 269, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 273, len 2, h: source: utf8{"T_jsr_5.java"} - // . . - 00 0a -// parsed:, offset 275, len 0, h: end attributes[0] -// parsed:, offset 275, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.j deleted file mode 100644 index d3693893f16bbab44a6be77a986923ccff534c02..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_5.java -.class public dxc/junit/opcodes/jsr/jm/T_jsr_5 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr SetField - - aload_0 - getfield dxc.junit.opcodes.jsr.jm.T_jsr_5.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr.jm.T_jsr_5.i1 I - - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.java deleted file mode 100644 index 6e99e92df9bc6c7e9b933f6b4ed7b48c05ef3a67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr/jm/T_jsr_5.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr.jm; - -public class T_jsr_5 { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/Test_jsr_w.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/Test_jsr_w.java deleted file mode 100644 index 65e33203c7124eb3eb97443cffb444d1efa165bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/Test_jsr_w.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr_w; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.jsr_w.jm.T_jsr_w_1; -import dxc.junit.opcodes.jsr_w.jm.T_jsr_w_2; - -public class Test_jsr_w extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_jsr_w_1 t = new T_jsr_w_1(); - assertTrue(t.run()); - } - - /** - * @title nested jsrs - */ - public void testN2() { - T_jsr_w_2 t = new T_jsr_w_2(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.2.23 - * @title recursion of jsr - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.jsr_w.jm.T_jsr_w_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target inside wide instruction - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.jsr_w.jm.T_jsr_w_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_1.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_1.j deleted file mode 100644 index b1e3523e88328f14f80326f1a0bb84c4ebc9e887..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_1.j +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_w_1.java -.class public dxc/junit/opcodes/jsr_w/jm/T_jsr_w_1 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr_w SetField - - aload_0 - getfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_1.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_1.i1 I - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_1.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_1.java deleted file mode 100644 index 7dbb6b5f4a8adbd3cb8b81f500982c7bd53d1013..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_1.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr_w.jm; - -public class T_jsr_w_1 { - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_2.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_2.j deleted file mode 100644 index c9eb7b58c5efd9bf797e90f9d5419b1855118e39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_2.j +++ /dev/null @@ -1,61 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_w_2.java -.class public dxc/junit/opcodes/jsr_w/jm/T_jsr_w_2 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 3 - - jsr_w SetField - - aload_0 - getfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_2.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 500 - putfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_2.i1 I - - jsr_w SetField1 - - ret 1 - -SetField1: - astore_2 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_2.i1 I - ret 2 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_2.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_2.java deleted file mode 100644 index cd78013bdc8cdd5989418d2965f1189834b72e1c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_2.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr_w.jm; - -public class T_jsr_w_2 { - public int i1; - - private void setfield() { - i1 = 500; - setfield1(); - } - - private void setfield1() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.cfh deleted file mode 100644 index af25bac8270828995ed6273b2d94c029978362e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.cfh +++ /dev/null @@ -1,219 +0,0 @@ -//@class:dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 17, h: 0004: utf8{"T_jsr_w_3.java"} - // . . . T _ j s r _ w _ 3 . j a v a - 01 00 0e 54 5f 6a 73 72 5f 77 5f 33 2e 6a 61 76 61 - // parsed:, offset 64, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 73, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 79, len 5, h: 0007: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 84, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0d - // parsed:, offset 89, len 39, h: 0009: utf8{"dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3"} - // . . $ d x c / j u n i t / o p c o d e s / j s r _ w / j m / T _ j s r _ w _ 3 - 01 00 24 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6a 73 72 5f 77 2f 6a 6d 2f 54 5f 6a 73 72 5f 77 5f 33 - // parsed:, offset 128, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 135, len 6, h: 000b: utf8{"()Z"} - // . . . ( ) Z - 01 00 03 28 29 5a - // parsed:, offset 141, len 3, h: 000c: type{dxc.junit.opcodes.jsr_w.jm.T_jsr_w_3} - // . . . - 07 00 09 - // parsed:, offset 144, len 6, h: 000d: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 150, len 4, h: 000e: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 154, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 157, len 0, h: end constant_pool -// parsed:, offset 157, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 159, len 2, h: this_class: type{dxc.junit.opcodes.jsr_w.jm.T_jsr_w_3} -// . . - 00 0c -// parsed:, offset 161, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 163, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 165, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 167, len:92,desc: I -// parsed:, offset 167, len 0, h: fields[0]: - // parsed:, offset 167, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 169, len 2, h: name: i1 - // . . - 00 07 - // parsed:, offset 171, len 2, h: descriptor: I - // . . - 00 0e - // parsed:, offset 173, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 175, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 175, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 177, len:82,desc: ()V -// parsed:, offset 177, len 0, h: methods[0]: - // parsed:, offset 177, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 179, len 2, h: name: - // . . - 00 05 - // parsed:, offset 181, len 2, h: descriptor: ()V - // . . - 00 0d - // parsed:, offset 183, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 185, len 0, h: attributes[0]: - // parsed:, offset 185, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 187, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 191, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 193, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 195, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 204, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 206, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 208, len 0, h: end attributes[0] -// parsed:, offset 208, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 208, len:51,desc: ()Z -// parsed:, offset 208, len 0, h: methods[1]: - // parsed:, offset 208, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 210, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 212, len 2, h: descriptor: ()Z - // . . - 00 0b - // parsed:, offset 214, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 218, len 4, h: length: 0000001b - // . . . . - 00 00 00 1b - // parsed:, offset 222, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 224, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 226, len 4, h: code_length: 0000000f - // . . . . - 00 00 00 0f - // parsed:, offset 0, len 5, h: 0000: jsr_w 00000009 - // . . . . . -//@mod c9 00 00 00 09 - c9 00 00 00 0a - // parsed:, offset 5, len 1, h: 0005: iconst_0 // #+00 - // . - 03 - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 7, len 1, h: 0007: iconst_0 // #+00 - // . - 03 - // parsed:, offset 8, len 1, h: 0008: ireturn - // . - ac - // parsed:, offset 9, len 4, h: 0009: wide astore 0001 - // . : . . - c4 3a 00 01 - // parsed:, offset 13, len 2, h: 000d: ret 01 - // . . - a9 01 - // parsed:, offset 245, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 247, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 249, len 0, h: end attributes[0] -// parsed:, offset 249, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()Z -// parsed:, offset 249, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 251, len 0, h: attributes[0]: - // parsed:, offset 251, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 253, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 257, len 2, h: source: utf8{"T_jsr_w_3.java"} - // . . - 00 04 -// parsed:, offset 259, len 0, h: end attributes[0] -// parsed:, offset 259, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.j deleted file mode 100644 index 7be029bc8432dff4951b7f3fa35700a8ffd861f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_w_3.java -.class public dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr_w SetField - - iconst_0 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_w 1 - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.java deleted file mode 100644 index 125de8a1bb1d50f0a1bd09e7f8970aa43509e6f7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_3.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr_w.jm; - -public class T_jsr_w_3 { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_4.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_4.j deleted file mode 100644 index 0fdd704f9c73c4470a4c95bf1140810e4a2469a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_4.j +++ /dev/null @@ -1,54 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_w_4.java -.class public dxc/junit/opcodes/jsr_w/jm/T_jsr_w_4 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr_w SetField - - aload_0 - getfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_4.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_4.i1 I - - jsr_w SetField - - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_4.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_4.java deleted file mode 100644 index c58f2f744a072a4a71072f79b8ffa58cddd017be..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_4.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr_w.jm; - -public class T_jsr_w_4 { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.cfh deleted file mode 100644 index b0bb2e1db263551a950bea122433d5f7439d46b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.cfh +++ /dev/null @@ -1,246 +0,0 @@ -//@class:dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 3, h: 0004: type{dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5} - // . . . - 07 00 07 - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 65, len 39, h: 0007: utf8{"dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5"} - // . . $ d x c / j u n i t / o p c o d e s / j s r _ w / j m / T _ j s r _ w _ 5 - 01 00 24 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6a 73 72 5f 77 2f 6a 6d 2f 54 5f 6a 73 72 5f 77 5f 35 - // parsed:, offset 104, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 109, len 5, h: 0009: utf8{"i1"} - // . . . i 1 - 01 00 02 69 31 - // parsed:, offset 114, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 121, len 6, h: 000b: utf8{"()Z"} - // . . . ( ) Z - 01 00 03 28 29 5a - // parsed:, offset 127, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 133, len 5, h: 000d: field{dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5.i1:I} - // . . . . . - 09 00 04 00 11 - // parsed:, offset 138, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 141, len 4, h: 000f: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 145, len 17, h: 0010: utf8{"T_jsr_w_5.java"} - // . . . T _ j s r _ w _ 5 . j a v a - 01 00 0e 54 5f 6a 73 72 5f 77 5f 35 2e 6a 61 76 61 - // parsed:, offset 162, len 5, h: 0011: nat{i1:I} - // . . . . . - 0c 00 09 00 0f -// parsed:, offset 167, len 0, h: end constant_pool -// parsed:, offset 167, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 169, len 2, h: this_class: type{dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5} -// . . - 00 04 -// parsed:, offset 171, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 173, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 175, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:i1, offset 177, len:106,desc: I -// parsed:, offset 177, len 0, h: fields[0]: - // parsed:, offset 177, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 179, len 2, h: name: i1 - // . . - 00 09 - // parsed:, offset 181, len 2, h: descriptor: I - // . . - 00 0f - // parsed:, offset 183, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 185, len 0, h: end fields[0] -// ========== end-ParseMember:i1, desc: I -// parsed:, offset 185, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 187, len:96,desc: ()V -// parsed:, offset 187, len 0, h: methods[0]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: - // . . - 00 05 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 197, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 201, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 214, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 216, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 218, len 0, h: end attributes[0] -// parsed:, offset 218, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 218, len:65,desc: ()Z -// parsed:, offset 218, len 0, h: methods[1]: - // parsed:, offset 218, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 220, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 222, len 2, h: descriptor: ()Z - // . . - 00 0b - // parsed:, offset 224, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 226, len 0, h: attributes[0]: - // parsed:, offset 226, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 228, len 4, h: length: 00000029 - // . . . ) - 00 00 00 29 - // parsed:, offset 232, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 234, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 236, len 4, h: code_length: 0000001d - // . . . . - 00 00 00 1d - // parsed:, offset 0, len 5, h: 0000: jsr_w 00000013 - // . . . . . -//@mod c9 00 00 00 13 - c9 00 00 00 ff - // parsed:, offset 5, len 1, h: 0005: aload_0 // 00 - // * - 2a - // parsed:, offset 6, len 3, h: 0006: getfield field{dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5.i1:I} - // . . . - b4 00 0d - // parsed:, offset 9, len 3, h: 0009: sipush #+03e8 - // . . . - 11 03 e8 - // parsed:, offset 12, len 3, h: 000c: if_icmpne 0011 - // . . . - a0 00 05 - // parsed:, offset 15, len 1, h: 000f: iconst_1 // #+01 - // . - 04 - // parsed:, offset 16, len 1, h: 0010: ireturn - // . - ac - // parsed:, offset 17, len 1, h: 0011: iconst_0 // #+00 - // . - 03 - // parsed:, offset 18, len 1, h: 0012: ireturn - // . - ac - // parsed:, offset 19, len 1, h: 0013: astore_1 // 01 - // L - 4c - // parsed:, offset 20, len 1, h: 0014: aload_0 // 00 - // * - 2a - // parsed:, offset 21, len 3, h: 0015: sipush #+03e8 - // . . . - 11 03 e8 - // parsed:, offset 24, len 3, h: 0018: putfield field{dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5.i1:I} - // . . . - b5 00 0d - // parsed:, offset 27, len 2, h: 001b: ret 01 - // . . - a9 01 - // parsed:, offset 269, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 271, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 273, len 0, h: end attributes[0] -// parsed:, offset 273, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()Z -// parsed:, offset 273, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 275, len 0, h: attributes[0]: - // parsed:, offset 275, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 277, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 281, len 2, h: source: utf8{"T_jsr_w_5.java"} - // . . - 00 10 -// parsed:, offset 283, len 0, h: end attributes[0] -// parsed:, offset 283, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.j b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.j deleted file mode 100644 index 41dd4bb00eb53aeb31173372be14bae424e48b75..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.j +++ /dev/null @@ -1,52 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_jsr_w_5.java -.class public dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr_w SetField - - aload_0 - getfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.jsr_w.jm.T_jsr_w_5.i1 I - - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.java b/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.java deleted file mode 100644 index 4693529277987b4a70081e876411fe9c5750efc4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/jsr_w/jm/T_jsr_w_5.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.jsr_w.jm; - -public class T_jsr_w_5 { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/Test_l2d.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/Test_l2d.java deleted file mode 100644 index 6b27eab0c4d36b3f15dec84bb756a5f83d5dc6e8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/Test_l2d.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.l2d.jm.T_l2d_1; - -public class Test_l2d extends DxTestCase { - - /** - * @title Argument = 50000000000 - */ - public void testN1() { - T_l2d_1 t = new T_l2d_1(); - assertEquals(5.0E10d, t.run(50000000000l), 0d); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_l2d_1 t = new T_l2d_1(); - assertEquals(1d, t.run(1l), 0d); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_l2d_1 t = new T_l2d_1(); - assertEquals(-1d, t.run(-1l), 0d); - } - - /** - * @title Argument = Long.MAX_VALUE - */ - public void testB1() { - T_l2d_1 t = new T_l2d_1(); - assertEquals(9.223372036854776E18d, t.run(Long.MAX_VALUE), 0d); - } - - /** - * @title Argument = Long.MIN_VALUE - */ - public void testB2() { - T_l2d_1 t = new T_l2d_1(); - assertEquals(-9.223372036854776E18, t.run(Long.MIN_VALUE), 0d); - } - - /** - * @title Argument = 0 - */ - public void testB3() { - T_l2d_1 t = new T_l2d_1(); - assertEquals(0d, t.run(0), 0d); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.l2d.jm.T_l2d_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.l2d.jm.T_l2d_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - integer - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.l2d.jm.T_l2d_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.l2d.jm.T_l2d_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_1.j b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_1.j deleted file mode 100644 index 0a98eb784a37990f80a1aaed241a9d3a818aea66..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2d_1.java -.class public dxc/junit/opcodes/l2d/jm/T_l2d_1 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(J)D - .limit stack 2 - .limit locals 3 - - lload_1 - l2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_1.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_1.java deleted file mode 100644 index 0d4f01447b96a10e2b033e5467ddb18957d604e3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d.jm; - -public class T_l2d_1 { - - public double run(long a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_2.j b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_2.j deleted file mode 100644 index ecf0bf8277b26688b5292a50aa2b4625a60a9cbc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_2.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2d_2.java -.class public dxc/junit/opcodes/l2d/jm/T_l2d_2 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(J)D - .limit stack 2 - .limit locals 3 - -; lload_1 - l2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_2.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_2.java deleted file mode 100644 index fbba547e8871ddb86c310bf5e5710e9aec11286d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d.jm; - -public class T_l2d_2 { - - public double run(long a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_3.j b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_3.j deleted file mode 100644 index b529402a0c1ab085c252e73e7c3f779aebe589b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_3.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2d_3.java -.class public dxc/junit/opcodes/l2d/jm/T_l2d_3 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(F)D - .limit stack 2 - .limit locals 2 - - fload_1 - l2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_3.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_3.java deleted file mode 100644 index 92a342f94bb4a652afa3ffbae8f6e392a6a9872a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d.jm; - -public class T_l2d_3 { - - public double run(float a) { - return a; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_4.j b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_4.j deleted file mode 100644 index 42c4e7e0eccf066daff88b97b5d34f1006deacbb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_4.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2d_4.java -.class public dxc/junit/opcodes/l2d/jm/T_l2d_4 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(I)D - .limit stack 2 - .limit locals 2 - - iload_1 - l2d - - dreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_4.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_4.java deleted file mode 100644 index 717aedbe7c850c86b3ac33c3ff3b7eff810c5b41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d.jm; - -public class T_l2d_4 { - - public double run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_5.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_5.java deleted file mode 100644 index 4a3ebb5c697838e26c6e3021cc9303ab80676b4e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d.jm; - -public class T_l2d_5 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_6.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_6.java deleted file mode 100644 index f79957ede964e8105b7f726561656c315a6e4b5c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d.jm; - -public class T_l2d_6 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_7.j b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_7.j deleted file mode 100644 index 70fbabb3bb3eb496b8890a45dd1e3a1b90f49186..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_7.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2d_7.java -.class public dxc/junit/opcodes/l2d/jm/T_l2d_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)D - .limit stack 2 - .limit locals 3 - - aload_0 - l2d - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_7.java b/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_7.java deleted file mode 100644 index 2d04278a6f3359dee65c10ee9dedd5fa0058cdb7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2d/jm/T_l2d_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2d.jm; - -public class T_l2d_7 { - - public double run(long a) { - return a; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/Test_l2f.java b/tools/dx-tests/src/dxc/junit/opcodes/l2f/Test_l2f.java deleted file mode 100644 index 7b1d27726d62a9bce06b7d8d5a9f8a90a9f80f04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/Test_l2f.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2f; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.l2f.jm.T_l2f_1; - -public class Test_l2f extends DxTestCase { - - /** - * @title Argument = 123456789012345 - */ - public void testN1() { - T_l2f_1 t = new T_l2f_1(); - assertEquals(1.23456788E14f, t.run(123456789012345l), 0f); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_l2f_1 t = new T_l2f_1(); - assertEquals(1f, t.run(1l), 0f); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_l2f_1 t = new T_l2f_1(); - assertEquals(-1f, t.run(-1l), 0f); - } - - /** - * @title Argument = Long.MAX_VALUE - */ - public void testB1() { - T_l2f_1 t = new T_l2f_1(); - assertEquals(9.223372036854776E18, t.run(Long.MAX_VALUE), 0f); - } - - /** - * @title Argument = Long.MIN_VALUE - */ - public void testB2() { - T_l2f_1 t = new T_l2f_1(); - assertEquals(-9.223372036854776E18, t.run(Long.MIN_VALUE), 0f); - } - - /** - * @title Argument = 0 - */ - public void testB3() { - T_l2f_1 t = new T_l2f_1(); - assertEquals(0f, t.run(0l), 0f); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.l2f.jm.T_l2f_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.l2f.jm.T_l2f_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - integer - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.l2f.jm.T_l2f_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.l2f.jm.T_l2f_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_1.j b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_1.j deleted file mode 100644 index 69cd1050b2fc090f312dc6e477a18722fd1ec7be..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2f_1.java -.class public dxc/junit/opcodes/l2f/jm/T_l2f_1 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(J)F - .limit stack 2 - .limit locals 3 - - lload_1 - l2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_1.java b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_1.java deleted file mode 100644 index a115daf315ad74f4aa98d950201274bc040020e9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2f.jm; - -public class T_l2f_1 { - - public float run(long a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_2.j b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_2.j deleted file mode 100644 index abc3a022b1200a08b15d6f0b5695c9f23a967ef2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_2.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2f_2.java -.class public dxc/junit/opcodes/l2f/jm/T_l2f_2 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(J)F - .limit stack 2 - .limit locals 3 - -; lload_1 - l2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_2.java b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_2.java deleted file mode 100644 index fde8820eb8af5af8cc7a587c15abf7dda793481a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2f.jm; - -public class T_l2f_2 { - - public float run(long a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_3.j b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_3.j deleted file mode 100644 index 55b3efd63046fca1472fe81c10fdc427dff2766c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_3.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2f_3.java -.class public dxc/junit/opcodes/l2f/jm/T_l2f_3 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(D)F - .limit stack 2 - .limit locals 3 - - dload_1 - l2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_3.java b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_3.java deleted file mode 100644 index e4e034293b6a2d116100aee813a52094eb5169c0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2f.jm; - -public class T_l2f_3 { - - public float run(double a) { - return (float)a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_4.j b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_4.j deleted file mode 100644 index 7fa40366ab584c112c3408e53c2d82a56e9fa784..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_4.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2f_4.java -.class public dxc/junit/opcodes/l2f/jm/T_l2f_4 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(I)F - .limit stack 2 - .limit locals 3 - - iload_1 - l2f - - freturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_4.java b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_4.java deleted file mode 100644 index 6bdd0dc5e974fb54cde77af281683be564e7d7ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2f.jm; - -public class T_l2f_4 { - - public float run(int a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_5.j b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_5.j deleted file mode 100644 index 8addc20b2b9400bbe59aa3e6c65cf6127ddbcff5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2f_5.java -.class public dxc/junit/opcodes/l2f/jm/T_l2f_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)F - .limit stack 2 - .limit locals 3 - - aload_0 - l2f - freturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_5.java b/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_5.java deleted file mode 100644 index dae1222b5373ccd8cab0fb62b497fd55861e927a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2f/jm/T_l2f_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2f.jm; - -public class T_l2f_5 { - - public float run(long a) { - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/Test_l2i.java b/tools/dx-tests/src/dxc/junit/opcodes/l2i/Test_l2i.java deleted file mode 100644 index 627e5fca5d8d2db995294a256132c1a663af6dbd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/Test_l2i.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2i; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.l2i.jm.T_l2i_1; - -public class Test_l2i extends DxTestCase { - - /** - * @title Argument = 0xAAAAFFEEDDCCl - */ - public void testN1() { - T_l2i_1 t = new T_l2i_1(); - assertEquals(0xFFEEDDCC, t.run(0xAAAAFFEEDDCCl)); - } - - /** - * @title Argument = -123456789 - */ - public void testN2() { - T_l2i_1 t = new T_l2i_1(); - assertEquals(-123456789, t.run(-123456789l)); - } - - /** - * @title Argument = 1 - */ - public void testN3() { - T_l2i_1 t = new T_l2i_1(); - assertEquals(1, t.run(1l)); - } - - /** - * @title Argument = -1 - */ - public void testN4() { - T_l2i_1 t = new T_l2i_1(); - assertEquals(-1, t.run(-1l)); - } - - /** - * @title Argument = Long.MAX_VALUE - */ - public void testB1() { - T_l2i_1 t = new T_l2i_1(); - assertEquals(-1, t.run(Long.MAX_VALUE)); - } - - /** - * @title Argument = Long.MIN_VALUE - */ - public void testB2() { - T_l2i_1 t = new T_l2i_1(); - assertEquals(0, t.run(Long.MIN_VALUE)); - } - - /** - * @title Argument = 0 - */ - public void testB3() { - T_l2i_1 t = new T_l2i_1(); - assertEquals(0, t.run(0l)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.l2i.jm.T_l2i_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.l2i.jm.T_l2i_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.l2i.jm.T_l2i_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.l2i.jm.T_l2i_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_1.j b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_1.j deleted file mode 100644 index 7acd7e2cd91924ad92bfbb3026f3c20542ebca3e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2i_1.java -.class public dxc/junit/opcodes/l2i/jm/T_l2i_1 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(J)I - .limit stack 2 - .limit locals 3 - - lload_1 - l2i - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_1.java b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_1.java deleted file mode 100644 index a8717711ebb10dab9433ebc894e477b0c19f8a44..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2i.jm; - -public class T_l2i_1 { - - public int run(long a) { - return (int) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_2.j b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_2.j deleted file mode 100644 index d2a23ac99252e4dc859f35b489739e2377d1e978..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_2.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2i_2.java -.class public dxc/junit/opcodes/l2i/jm/T_l2i_2 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(J)I - .limit stack 2 - .limit locals 3 - -; lload_1 - l2i - - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_2.java b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_2.java deleted file mode 100644 index beabb5f9ec2ba2b221452bdd5ea803ca923834ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2i.jm; - -public class T_l2i_2 { - - public int run(long a) { - return (int) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_3.j b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_3.j deleted file mode 100644 index 013f9b1d8ac94704710c462ebb870b5a6e480405..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_3.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2i_3.java -.class public dxc/junit/opcodes/l2i/jm/T_l2i_3 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(D)I - .limit stack 2 - .limit locals 3 - - dload_1 - l2i - - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_3.java b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_3.java deleted file mode 100644 index edcc6d97c3ae35cb3238cceaa52b63242f0036a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2i.jm; - -public class T_l2i_3 { - - public int run(double a) { - return (int) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_4.j b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_4.j deleted file mode 100644 index acc31bd40f4d65b2e7096f2ece26f8eb793b98f8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_4.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2i_4.java -.class public dxc/junit/opcodes/l2i/jm/T_l2i_4 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(F)I - .limit stack 2 - .limit locals 3 - - fload_1 - l2i - - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_4.java b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_4.java deleted file mode 100644 index af8320cb119dec1a074f63be9ab8a5ac6a720fe7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2i.jm; - -public class T_l2i_4 { - - public int run(float a) { - return (int) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_5.j b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_5.j deleted file mode 100644 index 8ee7bcdc339c49c45c4c0eca76e516cd64ba413d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_l2i_5.java -.class public dxc/junit/opcodes/l2i/jm/T_l2i_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)I - .limit stack 2 - .limit locals 3 - - aload_0 - l2i - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_5.java b/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_5.java deleted file mode 100644 index 1ffbb57a3faada1dd0e586f033edc515222c74dc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/l2i/jm/T_l2i_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.l2i.jm; - -public class T_l2i_5 { - - public int run(long a) { - return (int) a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/Test_ladd.java b/tools/dx-tests/src/dxc/junit/opcodes/ladd/Test_ladd.java deleted file mode 100644 index 7c3773903038396d99b818743274d8dbae02222c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/Test_ladd.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ladd; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ladd.jm.T_ladd_1; - -public class Test_ladd extends DxTestCase { - - /** - * @title Arguments = 12345678l, 87654321l - */ - public void testN1() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(99999999l, t.run(12345678l, 87654321l)); - } - - /** - * @title Arguments = 0l, 87654321l - */ - public void testN2() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(87654321l, t.run(0l, 87654321l)); - } - - /** - * @title Arguments = -12345678l, 0l - */ - public void testN3() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(-12345678l, t.run(-12345678l, 0l)); - } - - /** - * @title Arguments: 0 + Long.MAX_VALUE - */ - public void testB1() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); - } - - /** - * @title Arguments: 0 + Long.MIN_VALUE - */ - public void testB2() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(-9223372036854775808L, t.run(0l, Long.MIN_VALUE)); - } - - /** - * @title Arguments: 0 + 0 - */ - public void testB3() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(0l, t.run(0l, 0l)); - } - - /** - * @title Arguments: Long.MAX_VALUE + Long.MAX_VALUE - */ - public void testB4() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(-2, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); - } - - /** - * @title Arguments: Long.MAX_VALUE + Long.MIN_VALUE - */ - public void testB5() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(-1l, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); - } - - /** - * @title Arguments: Long.MIN_VALUE + Long.MIN_VALUE - */ - public void testB6() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(0l, t.run(Long.MIN_VALUE, Long.MIN_VALUE)); - } - - /** - * @title Arguments: Long.MIN_VALUE + 1 - */ - public void testB7() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(-9223372036854775807l, t.run(Long.MIN_VALUE, 1l)); - } - - /** - * @title Arguments: Long.MAX_VALUE + 1 - */ - public void testB8() { - T_ladd_1 t = new T_ladd_1(); - assertEquals(-9223372036854775808l, t.run(Long.MAX_VALUE, 1l)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ladd.jm.T_ladd_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ladd.jm.T_ladd_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / integer - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ladd.jm.T_ladd_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ladd.jm.T_ladd_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ladd.jm.T_ladd_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_1.j deleted file mode 100644 index 03b8556f6219d28fe924d381a9e589b1282af42f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_1.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ladd_1.java -.class public dxc/junit/opcodes/ladd/jm/T_ladd_1 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - ladd - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_1.java deleted file mode 100644 index 56c7f9a102383412f08d0dff25b87fe3fb5bdc59..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ladd.jm; - -public class T_ladd_1 { - - public long run(long a, long b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_2.j deleted file mode 100644 index 5757930ffa2fa432e631f2686c96eb3576a1b9d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_2.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ladd_2.java -.class public dxc/junit/opcodes/ladd/jm/T_ladd_2 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - -; lload_1 - lload_3 - ladd - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_2.java deleted file mode 100644 index 98d4e7869abb9f1aa521d3dc34f35d6c7d0c4550..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ladd.jm; - -public class T_ladd_2 { - - public long run(long a, long b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_3.j deleted file mode 100644 index 0fb7885170bbbfa5b8f1938b58214f0aef5227e9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_3.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ladd_3.java -.class public dxc/junit/opcodes/ladd/jm/T_ladd_3 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(JD)J - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 -; d2l - ladd - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_3.java deleted file mode 100644 index cc306afdbd316a46519d80ac7c50229c50f0b98c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ladd.jm; - -public class T_ladd_3 { - - public long run(long a, double b) { - return (long)(a+b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_4.j deleted file mode 100644 index da9d27f98fb4a96b889854240f96888dc266bcd4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_4.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ladd_4.java -.class public dxc/junit/opcodes/ladd/jm/T_ladd_4 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(JI)J - .limit stack 4 - .limit locals 4 - - lload_1 - iload_3 -; i2l - ladd - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_4.java deleted file mode 100644 index 04129674b9cfdd087eda99bd911a64717ec3b5d2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ladd.jm; - -public class T_ladd_4 { - - public long run(long a, int b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_5.j deleted file mode 100644 index fbb7d1684763e06fcdd5508c84b36cd314d5b1db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_5.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ladd_5.java -.class public dxc/junit/opcodes/ladd/jm/T_ladd_5 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(JF)J - .limit stack 4 - .limit locals 4 - - lload_1 - fload_3 -; f2l - ladd - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_5.java deleted file mode 100644 index 04685858917fddf80221a8b1d393803f10bad37f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ladd.jm; - -public class T_ladd_5 { - - public long run(long a, float b) { - return (long)(a+b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_6.j deleted file mode 100644 index c82e12e4d91dcec6d10de85caf07f9acaf523659..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ladd_6.java -.class public dxc/junit/opcodes/ladd/jm/T_ladd_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - aload_0 - lload_3 - ladd - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_6.java deleted file mode 100644 index b7fefc4e16e0520122b3c0beeeeb2f71401ec38c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ladd/jm/T_ladd_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ladd.jm; - -public class T_ladd_6 { - - public long run(long a, long b) { - return a+b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/Test_laload.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/Test_laload.java deleted file mode 100644 index a4c0b97624f09af94742793876cf0fd823a3ddb5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/Test_laload.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.laload.jm.T_laload_1; - -public class Test_laload extends DxTestCase { - - /** - * @title normal test. trying different indexes - */ - public void testN1() { - T_laload_1 t = new T_laload_1(); - long[] arr = new long[2]; - arr[1] = 1000000000000000000l; - assertEquals(1000000000000000000l, t.run(arr, 1)); - } - - /** - * @title normal test. trying different indexes - */ - public void testN2() { - T_laload_1 t = new T_laload_1(); - long[] arr = new long[2]; - arr[0] = 1000000000000000000l; - assertEquals(1000000000000000000l, t.run(arr, 0)); - } - - /** - * @title Exception - ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_laload_1 t = new T_laload_1(); - long[] arr = new long[2]; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title Exception - NullPointerException - */ - public void testE2() { - T_laload_1 t = new T_laload_1(); - try { - t.run(null, 2); - fail("expected NullPointerException"); - } catch (NullPointerException np) { - // expected - } - } - - /** - * @title Exception - ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_laload_1 t = new T_laload_1(); - long[] arr = new long[2]; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, long - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], long - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int[], long - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE9() { - try { - Class.forName("dxc.junit.opcodes.laload.jm.T_laload_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_1.j deleted file mode 100644 index 156aad29c2aba286c8ea6aa8c5c13106b68dc83e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_1.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_1.java -.class public dxc/junit/opcodes/laload/jm/T_laload_1 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run([JI)J - .limit stack 2 - .limit locals 3 - - aload_1 - iload_2 - - laload - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_1.java deleted file mode 100644 index 0e066141d659e40160d3cd34346b0853bab17644..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_1 { - - public long run(long[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_10.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_10.j deleted file mode 100644 index ca6cbcfa9b7ef77fb58470888cf9bc7db2b60d4b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_10.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_10.java -.class public dxc/junit/opcodes/laload/jm/T_laload_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([JI)J - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - laload - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_10.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_10.java deleted file mode 100644 index a6fa4bc6275077f6ac891e2ef693ab73a533c778..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_10 { - - public long run(long[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_2.j deleted file mode 100644 index 0b1bc5b408d749aa8b625866f844236de5caa685..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_2.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_2.java -.class public dxc/junit/opcodes/laload/jm/T_laload_2 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run([JI)J - .limit stack 2 - .limit locals 3 - -; aload_1 - iload_2 - laload - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_2.java deleted file mode 100644 index 93854c96bf8da77d9040cd107c6b84785df71070..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_2 { - - public long run(long[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_3.j deleted file mode 100644 index da77288afb7705ae5f0f24b948d8404ccfd6b08a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_3.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_3.java -.class public dxc/junit/opcodes/laload/jm/T_laload_3 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run([JI)J - .limit stack 2 - .limit locals 3 - - aload_1 -; iload_2 - laload - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_3.java deleted file mode 100644 index 2230c0d79650fbdd0cb4acd1e0bfbc4bb37bc340..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_3 { - - public long run(long[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_4.j deleted file mode 100644 index 18646c62ac57e5d4b4b5498682cbbd739741b213..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_4.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_4.java -.class public dxc/junit/opcodes/laload/jm/T_laload_4 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run([JD)J - .limit stack 5 - .limit locals 4 - - aload_1 - dload_2 -; d2i - laload - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_4.java deleted file mode 100644 index fbff22616ed7220fc6caee7ee8cbc359108dbc52..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_4 { - - public long run(long[] arr, double idx) { - return arr[(int)idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_5.j deleted file mode 100644 index 5b8fcaee3592ea14c90c299eb9f2021d6f0a7278..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_5.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_5.java -.class public dxc/junit/opcodes/laload/jm/T_laload_5 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run([JF)J - .limit stack 2 - .limit locals 3 - - aload_1 - fload_2 -; f2i - laload - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_5.java deleted file mode 100644 index b3072a6798285c6644c1e2eb7fa190bf5806e39d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_5 { - - public long run(long[] arr, float idx) { - return arr[(int)idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_6.j deleted file mode 100644 index 299b9aef207f8d49dd039f7c6fa7410c27934617..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_6.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_6.java -.class public dxc/junit/opcodes/laload/jm/T_laload_6 -.super java/lang/Object - - - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run([JJ)J - .limit stack 3 - .limit locals 4 - - aload_1 - lload_2 -; l2i - laload - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_6.java deleted file mode 100644 index 1d2e294660153916393c546645c30aa9fef13dbe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_6 { - - public long run(long[] arr, long idx) { - return arr[(int)idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_7.j deleted file mode 100644 index 747b9747ea1910702d14578197eef987cb8ae0f6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_7.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_7.java -.class public dxc/junit/opcodes/laload/jm/T_laload_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run(Ljava/lang/Object;[JI)J - .limit stack 2 - .limit locals 4 - - aload_1 - iload_3 - laload - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_7.java deleted file mode 100644 index 3c54ede6904f11c93c6f30d694eec730300b5cce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_7 { - - public long run(Object a, long[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_8.j deleted file mode 100644 index 8fb0626bcee4da07dd89621950d940645e360b81..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_8.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_8.java -.class public dxc/junit/opcodes/laload/jm/T_laload_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run([D[JI)J - .limit stack 2 - .limit locals 4 - - aload_1 - iload_3 - laload - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_8.java deleted file mode 100644 index 908c1ada84d4a247b5ebc462ecb616fb1af99c89..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_8 { - - public long run(double[] a, long[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_9.j deleted file mode 100644 index 152895c88d1002e0c0548461e8813eb3ff63d404..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_9.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_laload_9.java -.class public dxc/junit/opcodes/laload/jm/T_laload_9 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run([I[JI)J - .limit stack 2 - .limit locals 4 - - aload_1 - iload_3 - laload - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_9.java deleted file mode 100644 index e4a0373a9c662576e4c0dbf13f9aeed95d470684..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/laload/jm/T_laload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.laload.jm; - -public class T_laload_9 { - - public long run(int[] a, long[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/Test_land.java b/tools/dx-tests/src/dxc/junit/opcodes/land/Test_land.java deleted file mode 100644 index 69023181db1db2803a1cf24a00cca0a0d4d677a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/Test_land.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.land.jm.T_land_1; - -public class Test_land extends DxTestCase { - - /** - * @title Arguments = 0xfffffff8aal, 0xfffffff1aal - */ - public void testN1() { - T_land_1 t = new T_land_1(); - assertEquals(0xfffffff0aal, t.run(0xfffffff8aal, 0xfffffff1aal)); - } - - /** - * @title Arguments = 987654321, 123456789 - */ - public void testN2() { - T_land_1 t = new T_land_1(); - assertEquals(39471121, t.run(987654321, 123456789)); - } - - /** - * @title Arguments = 0xABCDEF & -1 - */ - public void testN3() { - T_land_1 t = new T_land_1(); - assertEquals(0xABCDEF, t.run(0xABCDEF, -1)); - } - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_land_1 t = new T_land_1(); - assertEquals(0, t.run(0, -1)); - } - - /** - * @title Arguments = Long.MAX_VALUE & Long.MIN_VALUE - */ - public void testB2() { - T_land_1 t = new T_land_1(); - assertEquals(0, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.land.jm.T_land_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float & long - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.land.jm.T_land_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int & long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.land.jm.T_land_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.land.jm.T_land_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_1.j b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_1.j deleted file mode 100644 index ceffcd26de4206979196a0a084afe80f1b157367..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_1.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_land_1.java -.class public dxc/junit/opcodes/land/jm/T_land_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - land - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_1.java b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_1.java deleted file mode 100644 index dfb8ce37f227f3d4a2a8d248cebea830ec74fb30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land.jm; - -public class T_land_1 { - - public long run(long a, long b) { - return a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_2.j b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_2.j deleted file mode 100644 index ca6c6bd5958028a419678f767ed02ae09d3c59c2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_land_2.java -.class public dxc/junit/opcodes/land/jm/T_land_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 -; lload_3 - land - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_2.java b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_2.java deleted file mode 100644 index 2eeb88f269a61190bf0543c8b39324c0763aceb6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land.jm; - -public class T_land_2 { - - public long run(long a, long b) { - return a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_3.j b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_3.j deleted file mode 100644 index f2e9b2422e702cf36ff0ca8946452663b0ea56cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_3.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_land_3.java -.class public dxc/junit/opcodes/land/jm/T_land_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run(FJ)J - .limit stack 4 - .limit locals 4 - - fload_1 -; f2l - lload_2 - land - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_3.java b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_3.java deleted file mode 100644 index 4d669aec8382464df2fb3d90373093594f72abac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land.jm; - -public class T_land_3 { - - public long run(float a, long b) { - return (long)a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_4.j b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_4.j deleted file mode 100644 index 8387452bcda0b969dca19a5a04e07281e4e864ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_land_4.java -.class public dxc/junit/opcodes/land/jm/T_land_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run(IJ)J - .limit stack 4 - .limit locals 4 - - iload_1 -; i2l - lload_2 - land - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_4.java b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_4.java deleted file mode 100644 index 05240b8c7aa4b9939acdca109c611b225e0de434..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land.jm; - -public class T_land_4 { - - public long run(int a, long b) { - return a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_5.java b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_5.java deleted file mode 100644 index 71b07b2f1761102cb288722158a67a1449fd81ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land.jm; - -public class T_land_5 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_6.java b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_6.java deleted file mode 100644 index 1320ff8e2cb9bf99ed93e9173e48fd386cad8099..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land.jm; - -public class T_land_6 { - - public void run() { - // TODO - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_7.j b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_7.j deleted file mode 100644 index 754733891120e3683cfb35e7aee390927664f184..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_land_7.java -.class public dxc/junit/opcodes/land/jm/T_land_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - aload_0 - lload_3 - land - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_7.java b/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_7.java deleted file mode 100644 index 3df40e1737afe6294636ae0f97613eac8900bb15..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/land/jm/T_land_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.land.jm; - -public class T_land_7 { - - public long run(long a, long b) { - return a & b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/Test_lastore.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/Test_lastore.java deleted file mode 100644 index 269cdc7f70f6503f3354de2c82ad47e99dfd1705..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/Test_lastore.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lastore.jm.T_lastore_1; - -public class Test_lastore extends DxTestCase { - - /** - * @title normal test. trying different indexes - */ - public void testN1() { - T_lastore_1 t = new T_lastore_1(); - long[] arr = new long[2]; - t.run(arr, 1, 100000000000l); - assertEquals(100000000000l, arr[1]); - } - - /** - * @title normal test. trying different indexes - */ - public void testN2() { - T_lastore_1 t = new T_lastore_1(); - long[] arr = new long[2]; - t.run(arr, 0, 100000000000l); - assertEquals(100000000000l, arr[0]); - } - - /** - * @title Exception - ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_lastore_1 t = new T_lastore_1(); - long[] arr = new long[2]; - try { - t.run(arr, 2, 100000000000l); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title Exception - NullPointerException - */ - public void testE2() { - T_lastore_1 t = new T_lastore_1(); - try { - t.run(null, 1, 100000000000l); - fail("expected NullPointerException"); - } catch (NullPointerException np) { - // expected - } - } - - /** - * @title Exception - ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_lastore_1 t = new T_lastore_1(); - long[] arr = new long[2]; - try { - t.run(arr, -1, 100000000000l); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, - * long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int, - * long - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int[], int, long - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, - * long - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.lastore.jm.T_lastore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_1.j deleted file mode 100644 index 84a545d72479dd3e9fdd753704844e1fabf96c51..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_1.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([JIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload_3 - lastore - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_1.java deleted file mode 100644 index 1b99d7e4b638cc728ae5f2ecae5ca9b25f3f055d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_1 { - - public void run(long[] arr, int idx, long value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_2.j deleted file mode 100644 index e390ddcb050881aa080ea84e93d1b45fb57a67eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_2.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run([JIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 -; lload_3 - lastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_2.java deleted file mode 100644 index 5ffe95a06d69b4f705ac27991ac47636cdd64ec8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_2 { - - public void run(long[] arr, int idx, long value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_3.j deleted file mode 100644 index c99fb544ce42b22f6bc219c7343b8f1724d87753..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_3.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_3.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run([JIJ)V - .limit stack 4 - .limit locals 5 - -; aload_1 - iload_2 - lload_3 - lastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_3.java deleted file mode 100644 index 49f5b9ffb99149fa840e4cc33157dd510d3e007c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_3 { - - public void run(long[] arr, int idx, long value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_4.j deleted file mode 100644 index 0ad73cf60f44f72d36fd57d6321595ac86cbadfb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_4.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_4.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run([JDJ)V - .limit stack 5 - .limit locals 6 - - aload_1 - dload_2 -; d2i - lload 4 - lastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_4.java deleted file mode 100644 index d18b82f1a941252be2bca60627fa71fa2597b6cb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_4 { - - public void run(long[] arr, double idx, long value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_5.j deleted file mode 100644 index 8c2ffd3806eac06d0a9fd5b9f0902bc64b44408c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_5.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run([JII)V - .limit stack 4 - .limit locals 4 - - aload_1 - iload_2 - iload_3 -; i2l - lastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_5.java deleted file mode 100644 index 091def643f731cfe3203f541e5069c1beb8829f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_5 { - - public void run(long[] arr, int idx, int value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_6.j deleted file mode 100644 index 0b74d3476ec9252bc7dde106b51dc6a74879db3a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_6.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_6.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run(Ljava/lang/Object;[JIJ)V - .limit stack 4 - .limit locals 6 - - aload_1 - iload_3 - lload 4 - lastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_6.java deleted file mode 100644 index 8fd85cc7b81fb1b9de298a9e3cb4f92329fc8b9f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_6 { - - public void run(Object a, long[] arr, int idx, long value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_7.j deleted file mode 100644 index fbd95546d0921893cd90a29ee1618dff903e2129..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_7.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_7.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_7 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run([D[JIJ)V - .limit stack 4 - .limit locals 6 - - aload_1 - iload_3 - lload 4 - lastore - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_7.java deleted file mode 100644 index f87835938ab60bb3c8b2996cd74a3997fcb7f04b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_7 { - - public void run(double[] a, long[] arr, int idx, long value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_8.j deleted file mode 100644 index abde74cfc3cd1e631a8245248bf3c3d8a713da34..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_8.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_8.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run([I[JIJ)V - .limit stack 4 - .limit locals 6 - - aload_1 - iload_3 - lload 4 - lastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_8.java deleted file mode 100644 index 21de24789dc6dc90b09f7ff2f20e6f74618c96e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_8 { - - public void run(int[] a, long[] arr, int idx, long value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_9.j deleted file mode 100644 index dd05a54e2fb10e61e09d23fc1da07ad7e1e9f5bd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_9.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lastore_9.java -.class public dxc/junit/opcodes/lastore/jm/T_lastore_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([JIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - aload_0 - lload_3 - lastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_9.java deleted file mode 100644 index 2cc91fb0460a45fb83a56f94750ed15a7f47fd79..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lastore/jm/T_lastore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lastore.jm; - -public class T_lastore_9 { - - public void run(long[] arr, int idx, long value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/Test_lcmp.java b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/Test_lcmp.java deleted file mode 100644 index 7a5e66a73b2edecf0ba76054c4cb7314d5ea9b9d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/Test_lcmp.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lcmp; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lcmp.jm.T_lcmp_1; - -public class Test_lcmp extends DxTestCase { - - /** - * @title Arguments = 111234567891l > 111234567890l - */ - public void testN1() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(1, t.run(111234567891l, 111234567890l)); - } - - /** - * @title Arguments = 112234567890 == 112234567890 - */ - public void testN2() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(0, t.run(112234567890l, 112234567890l)); - } - - /** - * @title Arguments = 112234567890 < 998876543210 - */ - public void testN3() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(-1, t.run(112234567890l, 998876543210l)); - } - - /** - * @title Arguments = Long.MAX_VALUE > Long.MIN_VALUE - */ - public void testB1() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(1, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); - } - - /** - * @title Arguments = Long.MIN_VALUE < Long.MAX_VALUE - */ - public void testB2() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(-1, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); - } - - /** - * @title Arguments = 1 > 0 - */ - public void testB3() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(1, t.run(1l, 0l)); - } - - /** - * @title Arguments = 0 > -1 - */ - public void testB4() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(1, t.run(0l, -1l)); - } - - /** - * @title Arguments = -1 < 0 - */ - public void testB5() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(-1, t.run(-1l, 0l)); - } - - /** - * @title Arguments = 0 = 0 - */ - public void testB6() { - T_lcmp_1 t = new T_lcmp_1(); - assertEquals(0, t.run(0l, 0l)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lcmp.jm.T_lcmp_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lcmp.jm.T_lcmp_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lcmp.jm.T_lcmp_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lcmp.jm.T_lcmp_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lcmp.jm.T_lcmp_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_1.j deleted file mode 100644 index a37867bc51d71cdbe3cbd285ae7891c527fdf5aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_1.j +++ /dev/null @@ -1,58 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lcmp_1.java -.class public dxc/junit/opcodes/lcmp/jm/T_lcmp_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run(JJ)I - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - - lcmp - ifle Label0 - iconst_1 - ireturn - - Label0: - - lload_1 - lload_3 - - lcmp - ifne Label1 - iconst_0 - ireturn - - Label1: - - iconst_m1 - - Label3: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_1.java deleted file mode 100644 index 648eef633d1796344833bcdc4761f9ebc30c0fe4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_1.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lcmp.jm; - -public class T_lcmp_1 { - - public int run(long a, long b) { - if (a > b) return 1; - if (a == b) return 0; - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_2.j deleted file mode 100644 index 30e358f7ebb75ab7d95f98bf171be0d75b316fe7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lcmp_2.java -.class public dxc/junit/opcodes/lcmp/jm/T_lcmp_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - -.method public run(JJ)I - .limit stack 4 - .limit locals 5 - -; lload_1 - lload_3 - lcmp - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_2.java deleted file mode 100644 index 9443337f21abd09f6679583b91ece40cd025e13b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lcmp.jm; - -public class T_lcmp_2 { - - public int run(long a, long b) { - if (a > b) return 1; - if (a == b) return 0; - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_3.j deleted file mode 100644 index 16498e22e1acc4167dd2d4cb835e4f5c266056fe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lcmp_3.java -.class public dxc/junit/opcodes/lcmp/jm/T_lcmp_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JD)Z - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 -; d2l - lcmp - - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_3.java deleted file mode 100644 index 6c560b8eff1a894732ca7af3e9d081931f465b93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lcmp.jm; - -public class T_lcmp_3 { - - public boolean run(long a, double b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_4.j deleted file mode 100644 index 01d5862ac02cc4523c0da6dea0f3e0d1030fc964..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lcmp_4.java -.class public dxc/junit/opcodes/lcmp/jm/T_lcmp_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FJ)Z - .limit stack 3 - .limit locals 4 - - fload_1 -; f2l - lload_2 - lcmp - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_4.java deleted file mode 100644 index 610f55c9b2951d658dd325e6eac63d2e1bfd84f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lcmp.jm; - -public class T_lcmp_4 { - - public boolean run(float a, long b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_5.j deleted file mode 100644 index e72653469b20f7542159c1312812467811c11d57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lcmp_5.java -.class public dxc/junit/opcodes/lcmp/jm/T_lcmp_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(IJ)Z - .limit stack 4 - .limit locals 4 - - iload_1 -; i2l - lload_2 - lcmp - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_5.java deleted file mode 100644 index 3e6e5a5bd995c85e7b3b61bbaf4fa16dd49e965b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lcmp.jm; - -public class T_lcmp_5 { - - public boolean run(int a, long b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_6.j deleted file mode 100644 index 115621e298f31a1afcd218ba30b3797f3eab7309..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_6.j +++ /dev/null @@ -1,42 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lcmp_6.java -.class public dxc/junit/opcodes/lcmp/jm/T_lcmp_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(IJ)Z - .limit stack 4 - .limit locals 4 - - aload_0 - lload_2 - lcmp - ifle Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_6.java deleted file mode 100644 index bd3b599b84de15ebf95dab3f23212e6ec9619ce0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lcmp/jm/T_lcmp_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lcmp.jm; - -public class T_lcmp_6 { - - public boolean run(int a, long b) { - return a > b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/Test_lconst_0.java b/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/Test_lconst_0.java deleted file mode 100644 index 7da94406e77e2b067c643adcd11c9e674a5c88f8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/Test_lconst_0.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lconst_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lconst_0.jm.T_lconst_0_1; - -public class Test_lconst_0 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_lconst_0_1 t = new T_lconst_0_1(); - long a = 20l; - long b = 20l; - assertEquals(a - b, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lconst_0.jm.T_lconst_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_1.j deleted file mode 100644 index 615936caf52e834db7d71cc0cd0e75d253225492..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lconst_0_1.java -.class public dxc/junit/opcodes/lconst_0/jm/T_lconst_0_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - .limit locals 1 - - lconst_0 - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_1.java deleted file mode 100644 index 6d20fef01e9a5402524c18f849f33b00b9e54f48..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lconst_0.jm; - -public class T_lconst_0_1 { - - public long run() { - return 0l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_2.j deleted file mode 100644 index 2290ecef005e3e4daa92f2264513309d5a65c5ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lconst_0_2.java -.class public dxc/junit/opcodes/lconst_0/jm/T_lconst_0_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - .limit locals 1 - - lconst_0 - lconst_0 - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_2.java deleted file mode 100644 index 251f70095823fa2a63a92486cee86aefd2d522c2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_0/jm/T_lconst_0_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lconst_0.jm; - -public class T_lconst_0_2 { - - public long run() { - return 0l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/Test_lconst_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/Test_lconst_1.java deleted file mode 100644 index f486fe8c0d4089fc606fb930bd1b998df294d663..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/Test_lconst_1.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lconst_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lconst_1.jm.T_lconst_1_1; - -public class Test_lconst_1 extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_lconst_1_1 t = new T_lconst_1_1(); - long a = 20l; - long b = 19l; - assertEquals(a - b, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lconst_1.jm.T_lconst_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_1.j deleted file mode 100644 index 3a476e7c479bfda2748a458613cf19066fc3d7b5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_1.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lconst_1_1.java -.class public dxc/junit/opcodes/lconst_1/jm/T_lconst_1_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - .limit locals 1 - - lconst_1 - lreturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_1.java deleted file mode 100644 index f6d01f2552e7716a4cb4582f3e387ff31dd35a4e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lconst_1.jm; - -public class T_lconst_1_1 { - - public long run() { - return 1l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_2.j deleted file mode 100644 index 2be8208de29fa9a502ffe225202672d9318fbdb9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lconst_1_2.java -.class public dxc/junit/opcodes/lconst_1/jm/T_lconst_1_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - .limit locals 1 - - lconst_1 - lconst_1 - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_2.java deleted file mode 100644 index 62d1019d79cad55b3514753c883578735dd3a41e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lconst_1/jm/T_lconst_1_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lconst_1.jm; - -public class T_lconst_1_2 { - - public long run() { - return 1l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/Test_ldc.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc/Test_ldc.java deleted file mode 100644 index d83462b3a51d7fa8bd772748b3cb47f6b6d3ab44..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/Test_ldc.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ldc.jm.T_ldc_1; -import dxc.junit.opcodes.ldc.jm.T_ldc_2; -import dxc.junit.opcodes.ldc.jm.T_ldc_3; - -public class Test_ldc extends DxTestCase { - - /** - * @title push string into stack - */ - public void testN1() { - T_ldc_1 t = new T_ldc_1(); - // lcd is hard to test isolated - String res = t.run(); - assertEquals(5, res.length()); - assertEquals('h', res.charAt(0)); - } - - /** - * @title push float into stack - */ - public void testN2() { - T_ldc_2 t = new T_ldc_2(); - float a = 1.5f; - float b = 0.04f; - assertEquals(a + b, t.run(), 0f); - assertEquals(1.54f, t.run(), 0f); - } - - /** - * @title push int into stack - */ - public void testN3() { - T_ldc_3 t = new T_ldc_3(); - int a = 1000000000; - int b = 1000000000; - assertEquals(a + b, t.run()); - } - - /** - * @constraint 4.8.1.10 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ldc.jm.T_ldc_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.10 - * @title wrong constant pool entry type (long) - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ldc.jm.T_ldc_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_1.j deleted file mode 100644 index 1b9571e317ae9cbd1cab3178e8375df19e2909d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_1.java -.class public dxc/junit/opcodes/ldc/jm/T_ldc_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ljava/lang/String; - ldc "hello" - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_1.java deleted file mode 100644 index 1c1d9ed6be2809d60967b5415eb7419246cc9437..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc.jm; - -public class T_ldc_1 { - - public String run() { - return "hello"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_2.j deleted file mode 100644 index 65f522215f9b9f017e512315e21c192a963de576..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_2.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_2.java -.class public dxc/junit/opcodes/ldc/jm/T_ldc_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()F - ldc 1.54 - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_2.java deleted file mode 100644 index 771174adfcd41a43cbff5be27c1b4d211a175493..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc.jm; - -public class T_ldc_2 { - - public float run() { - return 1.54f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_3.j deleted file mode 100644 index 08731e1b4f52e6f2564de97c85f119e95a05f454..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_3.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_3.java -.class public dxc/junit/opcodes/ldc/jm/T_ldc_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - ldc 2000000000 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_3.java deleted file mode 100644 index 5dbec3fe1d8c5201f31c3346b0c1d561f50feb1b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc.jm; - -public class T_ldc_3 { - - public int run() { - return 2000000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.cfh deleted file mode 100644 index ea05bc1bc8891027bf34c6b83994f42cc0f81884..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/opcodes/ldc/jm/T_ldc_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000f -// . . - 00 0f -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 5, h: 0004: int{0x00003039 / 12345} - // . . . 0 9 - 03 00 00 30 39 - // parsed:, offset 52, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 61, len 6, h: 0006: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 67, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 73, len 3, h: 0008: type{dxc.junit.opcodes.ldc.jm.T_ldc_4} - // . . . - 07 00 0d - // parsed:, offset 76, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 81, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 88, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 94, len 15, h: 000c: utf8{"T_ldc_4.java"} - // . . . T _ l d c _ 4 . j a v a - 01 00 0c 54 5f 6c 64 63 5f 34 2e 6a 61 76 61 - // parsed:, offset 109, len 35, h: 000d: utf8{"dxc/junit/opcodes/ldc/jm/T_ldc_4"} - // . . d x c / j u n i t / o p c o d e s / l d c / j m / T _ l d c _ 4 - 01 00 20 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 64 63 2f 6a 6d 2f 54 5f 6c 64 63 5f 34 - // parsed:, offset 144, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 147, len 0, h: end constant_pool -// parsed:, offset 147, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 149, len 2, h: this_class: type{dxc.junit.opcodes.ldc.jm.T_ldc_4} -// . . - 00 08 -// parsed:, offset 151, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 153, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 155, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 157, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 159, len:70,desc: ()V -// parsed:, offset 159, len 0, h: methods[0]: - // parsed:, offset 159, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 161, len 2, h: name: - // . . - 00 05 - // parsed:, offset 163, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 165, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 167, len 0, h: attributes[0]: - // parsed:, offset 167, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 169, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 173, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 175, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 177, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 186, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 188, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 190, len 0, h: end attributes[0] -// parsed:, offset 190, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 190, len:39,desc: ()I -// parsed:, offset 190, len 0, h: methods[1]: - // parsed:, offset 190, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 192, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 194, len 2, h: descriptor: ()I - // . . - 00 06 - // parsed:, offset 196, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 198, len 0, h: attributes[0]: - // parsed:, offset 198, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 200, len 4, h: length: 0000000f - // . . . . - 00 00 00 0f - // parsed:, offset 204, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 206, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 208, len 4, h: code_length: 00000003 - // . . . . - 00 00 00 03 - // parsed:, offset 0, len 2, h: 0000: ldc #+00003039 - // . . -//@mod 12 04 - 12 14 - // parsed:, offset 2, len 1, h: 0002: ireturn - // . - ac - // parsed:, offset 215, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 217, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 219, len 0, h: end attributes[0] -// parsed:, offset 219, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 219, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 221, len 0, h: attributes[0]: - // parsed:, offset 221, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 223, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 227, len 2, h: source: utf8{"T_ldc_4.java"} - // . . - 00 0c -// parsed:, offset 229, len 0, h: end attributes[0] -// parsed:, offset 229, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.j deleted file mode 100644 index 9d121eaca48bcb52c4063509846029797e54b621..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_4.java -.class public dxc/junit/opcodes/ldc/jm/T_ldc_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 2 - - ldc 12345 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.java deleted file mode 100644 index e66c0224a59b46736c41d082a8291451ccca2acf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc.jm; - -public class T_ldc_4 { - - public int run() { - return 12345; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.cfh deleted file mode 100644 index a56ea0a015d0ff30f768c32cd6196271e865b497..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ldc/jm/T_ldc_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0011 -// . . - 00 11 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 0a - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 15, h: 0003: utf8{"T_ldc_5.java"} - // . . . T _ l d c _ 5 . j a v a - 01 00 0c 54 5f 6c 64 63 5f 35 2e 6a 61 76 61 - // parsed:, offset 49, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 62, len 5, h: 0005: int{0x00003039 / 12345} - // . . . 0 9 - 03 00 00 30 39 - // parsed:, offset 67, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 76, len 6, h: 0007: utf8{"()I"} - // . . . ( ) I - 01 00 03 28 29 49 - // parsed:, offset 82, len 3, h: 0008: type{dxc.junit.opcodes.ldc.jm.T_ldc_5} - // . . . - 07 00 0d - // parsed:, offset 85, len 6, h: 0009: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 91, len 5, h: 000a: nat{:()V} - // . . . . . - 0c 00 06 00 0c - // parsed:, offset 96, len 7, h: 000b: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 103, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 109, len 35, h: 000d: utf8{"dxc/junit/opcodes/ldc/jm/T_ldc_5"} - // . . d x c / j u n i t / o p c o d e s / l d c / j m / T _ l d c _ 5 - 01 00 20 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 64 63 2f 6a 6d 2f 54 5f 6c 64 63 5f 35 - // parsed:, offset 144, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 147, len 9, h: 000f: long{0x0000000000003039 / 12345} - // . . . . . . . 0 9 - 05 00 00 00 00 00 00 30 39 -// parsed:, offset 156, len 0, h: end constant_pool -// parsed:, offset 156, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 158, len 2, h: this_class: type{dxc.junit.opcodes.ldc.jm.T_ldc_5} -// . . - 00 08 -// parsed:, offset 160, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 162, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 164, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 166, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 168, len:74,desc: ()V -// parsed:, offset 168, len 0, h: methods[0]: - // parsed:, offset 168, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 170, len 2, h: name: - // . . - 00 06 - // parsed:, offset 172, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 174, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 176, len 0, h: attributes[0]: - // parsed:, offset 176, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 178, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 182, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 184, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 186, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 195, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 197, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 199, len 0, h: end attributes[0] -// parsed:, offset 199, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 199, len:43,desc: ()I -// parsed:, offset 199, len 0, h: methods[1]: - // parsed:, offset 199, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 201, len 2, h: name: run - // . . - 00 09 - // parsed:, offset 203, len 2, h: descriptor: ()I - // . . - 00 07 - // parsed:, offset 205, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 207, len 0, h: attributes[0]: - // parsed:, offset 207, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 209, len 4, h: length: 00000013 - // . . . . - 00 00 00 13 - // parsed:, offset 213, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 215, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 217, len 4, h: code_length: 00000007 - // . . . . - 00 00 00 07 - // parsed:, offset 0, len 3, h: 0000: ldc2_w #+0000000000003039 - // . . . - 14 00 0f - // parsed:, offset 3, len 1, h: 0003: pop2 - // X - 58 - // parsed:, offset 4, len 2, h: 0004: ldc #+00003039 - // . . -//@mod 12 05 - 12 0f - // parsed:, offset 6, len 1, h: 0006: ireturn - // . - ac - // parsed:, offset 228, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 230, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 232, len 0, h: end attributes[0] -// parsed:, offset 232, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()I -// parsed:, offset 232, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 234, len 0, h: attributes[0]: - // parsed:, offset 234, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 236, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 240, len 2, h: source: utf8{"T_ldc_5.java"} - // . . - 00 03 -// parsed:, offset 242, len 0, h: end attributes[0] -// parsed:, offset 242, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.j deleted file mode 100644 index 5640bdfc1a2e9f5f088f0b37489e4fe72a5f29b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_5.java -.class public dxc/junit/opcodes/ldc/jm/T_ldc_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 2 - - ldc2_w 12345 - pop2 - ldc 12345 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.java deleted file mode 100644 index 8507910940f467c6c91a23e6e50eaf47dab64f1f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc/jm/T_ldc_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc.jm; - -public class T_ldc_5 { - - public int run() { - return 12345; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/Test_ldc2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/Test_ldc2_w.java deleted file mode 100644 index 0ad5ca825981976a4ced24ae8baccb46cbd67ccc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/Test_ldc2_w.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc2_w; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_1; -import dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_2; - -public class Test_ldc2_w extends DxTestCase { - - /** - * @title push long into stack - */ - public void testN1() { - T_ldc2_w_1 t = new T_ldc2_w_1(); - long a = 1234567890122l; - long b = 1l; - assertEquals(a + b, t.run()); - } - - /** - * @title push double into stack - */ - public void testN2() { - T_ldc2_w_2 t = new T_ldc2_w_2(); - double a = 1234567890123232323232232323232323232323232323456788d; - double b = 1d; - assertEquals(a + b, t.run(), 0d); - } - - /** - * @constraint 4.8.1.10 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.10 - * @title wrong constant pool entry type (float) - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_1.j deleted file mode 100644 index 35ca464cdb7dbe63d3c309af9a192c4a6d876df5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_1.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc2_w_1.java -.class public dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()J - .limit stack 2 - .limit locals 1 - ldc2_w 1234567890123 - lreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_1.java deleted file mode 100644 index 101a0ac89c467b20db19dc1e4982420e3fdb24e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc2_w.jm; - -public class T_ldc2_w_1 { - - public long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_2.j deleted file mode 100644 index cbca29540c1189819015353c2ee0851ed4303e30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_2.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc2_w_2.java -.class public dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()D - .limit stack 2 - .limit locals 1 - ldc2_w 1.2345678901232324E51 - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_2.java deleted file mode 100644 index bdc6ed9d0f0a8d37abe309defc86f135e36c1d40..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc2_w.jm; - -public class T_ldc2_w_2 { - - public double run() { - return 1234567890123232323232232323232323232323232323456789d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.cfh deleted file mode 100644 index cf6919f07d6f381b8695ad250483686eb2b46799..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 0c - // parsed:, offset 67, len 6, h: 0007: utf8{"()D"} - // . . . ( ) D - 01 00 03 28 29 44 - // parsed:, offset 73, len 3, h: 0008: type{dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_4} - // . . . - 07 00 0f - // parsed:, offset 76, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 83, len 9, h: 000a: double{0x40091eb860000000 / 3.140000104904175} - // . @ . . . ` . . . - 06 40 09 1e b8 60 00 00 00 - // parsed:, offset 92, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 98, len 18, h: 000d: utf8{"T_ldc2_w_4.java"} - // . . . T _ l d c 2 _ w _ 4 . j a v a - 01 00 0f 54 5f 6c 64 63 32 5f 77 5f 34 2e 6a 61 76 61 - // parsed:, offset 116, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 119, len 41, h: 000f: utf8{"dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4"} - // . . & d x c / j u n i t / o p c o d e s / l d c 2 _ w / j m / T _ l d c 2 _ w _ 4 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 64 63 32 5f 77 2f 6a 6d 2f 54 5f 6c 64 63 32 5f 77 5f 34 -// parsed:, offset 160, len 0, h: end constant_pool -// parsed:, offset 160, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 162, len 2, h: this_class: type{dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_4} -// . . - 00 08 -// parsed:, offset 164, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 166, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 168, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 172, len:71,desc: ()V -// parsed:, offset 172, len 0, h: methods[0]: - // parsed:, offset 172, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 174, len 2, h: name: - // . . - 00 04 - // parsed:, offset 176, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 178, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 180, len 0, h: attributes[0]: - // parsed:, offset 180, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 182, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 186, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 188, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 190, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 199, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 201, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 203, len 0, h: end attributes[0] -// parsed:, offset 203, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 203, len:40,desc: ()D -// parsed:, offset 203, len 0, h: methods[1]: - // parsed:, offset 203, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 205, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 207, len 2, h: descriptor: ()D - // . . - 00 07 - // parsed:, offset 209, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 211, len 0, h: attributes[0]: - // parsed:, offset 211, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 213, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 217, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 219, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 221, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 3, h: 0000: ldc2_w #40091eb860000000 // 3.140000104904175 - // . . . -//@mod 14 00 0a - 14 01 0a - // parsed:, offset 3, len 1, h: 0003: dreturn - // . - af - // parsed:, offset 229, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 231, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 233, len 0, h: end attributes[0] -// parsed:, offset 233, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()D -// parsed:, offset 233, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 235, len 0, h: attributes[0]: - // parsed:, offset 235, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 237, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 241, len 2, h: source: utf8{"T_ldc2_w_4.java"} - // . . - 00 0d -// parsed:, offset 243, len 0, h: end attributes[0] -// parsed:, offset 243, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.j deleted file mode 100644 index c3dc2d57c4d00806c9c1a5434b9fa46e12533668..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc2_w_4.java -.class public dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()D - .limit stack 2 - - ldc2_w 3.14 - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.java deleted file mode 100644 index f6d7d17bc0ac09c52909859a1273c24f8c4d4e1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc2_w.jm; - -public class T_ldc2_w_4 { - - public double run() { - return 3.14d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.cfh deleted file mode 100644 index 0a5eb37c0c1603ac14539d2ddff52e54c88b0c93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0011 -// . . - 00 11 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 10 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 18, h: 0004: utf8{"T_ldc2_w_5.java"} - // . . . T _ l d c 2 _ w _ 5 . j a v a - 01 00 0f 54 5f 6c 64 63 32 5f 77 5f 35 2e 6a 61 76 61 - // parsed:, offset 65, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 74, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 80, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0d - // parsed:, offset 85, len 3, h: 0008: type{dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_5} - // . . . - 07 00 0f - // parsed:, offset 88, len 6, h: 0009: utf8{"()D"} - // . . . ( ) D - 01 00 03 28 29 44 - // parsed:, offset 94, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 101, len 9, h: 000b: double{0x40091eb860000000 / 3.140000104904175} - // . @ . . . ` . . . - 06 40 09 1e b8 60 00 00 00 - // parsed:, offset 110, len 6, h: 000d: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 116, len 5, h: 000e: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 121, len 41, h: 000f: utf8{"dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5"} - // . . & d x c / j u n i t / o p c o d e s / l d c 2 _ w / j m / T _ l d c 2 _ w _ 5 - 01 00 26 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 64 63 32 5f 77 2f 6a 6d 2f 54 5f 6c 64 63 32 5f 77 5f 35 - // parsed:, offset 162, len 3, h: 0010: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 165, len 0, h: end constant_pool -// parsed:, offset 165, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 167, len 2, h: this_class: type{dxc.junit.opcodes.ldc2_w.jm.T_ldc2_w_5} -// . . - 00 08 -// parsed:, offset 169, len 2, h: super_class: type{java.lang.Object} -// . . - 00 10 -// parsed:, offset 171, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 173, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 175, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 177, len:74,desc: ()V -// parsed:, offset 177, len 0, h: methods[0]: - // parsed:, offset 177, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 179, len 2, h: name: - // . . - 00 05 - // parsed:, offset 181, len 2, h: descriptor: ()V - // . . - 00 0d - // parsed:, offset 183, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 185, len 0, h: attributes[0]: - // parsed:, offset 185, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 187, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 191, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 193, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 195, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 204, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 206, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 208, len 0, h: end attributes[0] -// parsed:, offset 208, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 208, len:43,desc: ()D -// parsed:, offset 208, len 0, h: methods[1]: - // parsed:, offset 208, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 210, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 212, len 2, h: descriptor: ()D - // . . - 00 09 - // parsed:, offset 214, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 218, len 4, h: length: 00000013 - // . . . . - 00 00 00 13 - // parsed:, offset 222, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 224, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 226, len 4, h: code_length: 00000007 - // . . . . - 00 00 00 07 - // parsed:, offset 0, len 2, h: 0000: ldc #4048f5c3 // 3.14 - // . . - 12 0e - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 3, h: 0003: ldc2_w #40091eb860000000 // 3.140000104904175 - // . . . -//@mod 14 00 0b - 14 00 0e - // parsed:, offset 6, len 1, h: 0006: dreturn - // . - af - // parsed:, offset 237, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 239, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 241, len 0, h: end attributes[0] -// parsed:, offset 241, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()D -// parsed:, offset 241, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 243, len 0, h: attributes[0]: - // parsed:, offset 243, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 245, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 249, len 2, h: source: utf8{"T_ldc2_w_5.java"} - // . . - 00 04 -// parsed:, offset 251, len 0, h: end attributes[0] -// parsed:, offset 251, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.j deleted file mode 100644 index 4001c60196959654bfb1146305432ca92845ca8f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc2_w_5.java -.class public dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()D - .limit stack 2 - - ldc 3.14 - pop - - ldc2_w 3.14 - dreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.java deleted file mode 100644 index 3c49374cd11b64fdf0fb9f23637319e1290700c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc2_w/jm/T_ldc2_w_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc2_w.jm; - -public class T_ldc2_w_5 { - - public double run() { - return 3.14d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/Test_ldc_w.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/Test_ldc_w.java deleted file mode 100644 index 2be1daca648faf190a22a844643efcb4998f5375..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/Test_ldc_w.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc_w; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ldc_w.jm.T_ldc_w_1; -import dxc.junit.opcodes.ldc_w.jm.T_ldc_w_2; - -public class Test_ldc_w extends DxTestCase { - - /** - * @title push float into stack - */ - public void testN1() { - T_ldc_w_1 t = new T_ldc_w_1(); - float a = 1.5f; - float b = 0.04f; - assertEquals(a + b, t.run(), 0f); - assertEquals(1.54f, t.run(), 0f); - } - - /** - * @title push int into stack - */ - public void testN2() { - T_ldc_w_2 t = new T_ldc_w_2(); - int a = 1000000000; - int b = 1000000000; - assertEquals(a + b, t.run()); - } - - - /** - * @constraint 4.8.1.10 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ldc_w.jm.T_ldc_w_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.10 - * @title wrong constant pool entry type - * (double) - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ldc_w.jm.T_ldc_w_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_1.j deleted file mode 100644 index 532bb690afa7ac3fca10625f4efae608d0095953..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_1.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_w_1.java -.class public dxc/junit/opcodes/ldc_w/jm/T_ldc_w_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - ldc_w 1.54 - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_1.java deleted file mode 100644 index d8772276b99112ae4cf0db97a6a877224a5e0637..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc_w.jm; - -public class T_ldc_w_1 { - - public float run(){ - return 1.54f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_2.j deleted file mode 100644 index b3f0bc33c2e4576200641624865f5ac5a50f83dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_2.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_w_2.java -.class public dxc/junit/opcodes/ldc_w/jm/T_ldc_w_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - ldc_w 2000000000 - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_2.java deleted file mode 100644 index 451fa710554a731a242a983489a3dae15b94f1b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc_w.jm; - -public class T_ldc_w_2 { - - public int run() { - return 2000000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.cfh deleted file mode 100644 index 343bc75d79fc12b87855643eef0525d6f24d68f3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000f -// . . - 00 0f -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 17, h: 0001: utf8{"T_ldc_w_4.java"} - // . . . T _ l d c _ w _ 4 . j a v a - 01 00 0e 54 5f 6c 64 63 5f 77 5f 34 2e 6a 61 76 61 - // parsed:, offset 27, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 08 - // parsed:, offset 32, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 51, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 64, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 73, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 79, len 6, h: 0007: utf8{"()F"} - // . . . ( ) F - 01 00 03 28 29 46 - // parsed:, offset 85, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0a - // parsed:, offset 90, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 97, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 103, len 5, h: 000b: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 108, len 39, h: 000c: utf8{"dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4"} - // . . $ d x c / j u n i t / o p c o d e s / l d c _ w / j m / T _ l d c _ w _ 4 - 01 00 24 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 64 63 5f 77 2f 6a 6d 2f 54 5f 6c 64 63 5f 77 5f 34 - // parsed:, offset 147, len 3, h: 000d: type{dxc.junit.opcodes.ldc_w.jm.T_ldc_w_4} - // . . . - 07 00 0c - // parsed:, offset 150, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 153, len 0, h: end constant_pool -// parsed:, offset 153, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 155, len 2, h: this_class: type{dxc.junit.opcodes.ldc_w.jm.T_ldc_w_4} -// . . - 00 0d -// parsed:, offset 157, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 159, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 161, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 163, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 165, len:71,desc: ()V -// parsed:, offset 165, len 0, h: methods[0]: - // parsed:, offset 165, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 167, len 2, h: name: - // . . - 00 05 - // parsed:, offset 169, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 171, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 173, len 0, h: attributes[0]: - // parsed:, offset 173, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 175, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 179, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 181, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 183, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 192, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 194, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 196, len 0, h: end attributes[0] -// parsed:, offset 196, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 196, len:40,desc: ()F -// parsed:, offset 196, len 0, h: methods[1]: - // parsed:, offset 196, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 198, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 200, len 2, h: descriptor: ()F - // . . - 00 07 - // parsed:, offset 202, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 204, len 0, h: attributes[0]: - // parsed:, offset 204, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 206, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 210, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 212, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 214, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 3, h: 0000: ldc_w #4048f5c3 // 3.14 - // . . . -//@mod 13 00 0b - 13 01 0b - // parsed:, offset 3, len 1, h: 0003: freturn - // . - ae - // parsed:, offset 222, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 224, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()F -// parsed:, offset 226, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 228, len 0, h: attributes[0]: - // parsed:, offset 228, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 230, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 234, len 2, h: source: utf8{"T_ldc_w_4.java"} - // . . - 00 01 -// parsed:, offset 236, len 0, h: end attributes[0] -// parsed:, offset 236, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.j deleted file mode 100644 index f978b5e541fdb41ff335dd07884c4bb022d42048..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.j +++ /dev/null @@ -1,30 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_w_4.java -.class public dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - ldc_w 3.14f - freturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.java deleted file mode 100644 index 75eef74114555894865568970cb170fa07312fb7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc_w.jm; - -public class T_ldc_w_4 { - - public float run(String a){ - return 3.14f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.cfh deleted file mode 100644 index ecfe6349f0bb3644118b817d1f2d23b18c2b179b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0011 -// . . - 00 11 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 10 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 17, h: 0006: utf8{"T_ldc_w_5.java"} - // . . . T _ l d c _ w _ 5 . j a v a - 01 00 0e 54 5f 6c 64 63 5f 77 5f 35 2e 6a 61 76 61 - // parsed:, offset 79, len 6, h: 0007: utf8{"()F"} - // . . . ( ) F - 01 00 03 28 29 46 - // parsed:, offset 85, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 04 00 0c - // parsed:, offset 90, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 97, len 9, h: 000a: double{0x40091eb860000000 / 3.140000104904175} - // . @ . . . ` . . . - 06 40 09 1e b8 60 00 00 00 - // parsed:, offset 106, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 112, len 5, h: 000d: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 117, len 39, h: 000e: utf8{"dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5"} - // . . $ d x c / j u n i t / o p c o d e s / l d c _ w / j m / T _ l d c _ w _ 5 - 01 00 24 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 64 63 5f 77 2f 6a 6d 2f 54 5f 6c 64 63 5f 77 5f 35 - // parsed:, offset 156, len 3, h: 000f: type{dxc.junit.opcodes.ldc_w.jm.T_ldc_w_5} - // . . . - 07 00 0e - // parsed:, offset 159, len 3, h: 0010: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 162, len 0, h: end constant_pool -// parsed:, offset 162, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 164, len 2, h: this_class: type{dxc.junit.opcodes.ldc_w.jm.T_ldc_w_5} -// . . - 00 0f -// parsed:, offset 166, len 2, h: super_class: type{java.lang.Object} -// . . - 00 10 -// parsed:, offset 168, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 172, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 174, len:75,desc: ()V -// parsed:, offset 174, len 0, h: methods[0]: - // parsed:, offset 174, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 176, len 2, h: name: - // . . - 00 04 - // parsed:, offset 178, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 180, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 182, len 0, h: attributes[0]: - // parsed:, offset 182, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 184, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 188, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 190, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 192, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 201, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 205, len 0, h: end attributes[0] -// parsed:, offset 205, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 205, len:44,desc: ()F -// parsed:, offset 205, len 0, h: methods[1]: - // parsed:, offset 205, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 207, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 209, len 2, h: descriptor: ()F - // . . - 00 07 - // parsed:, offset 211, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 215, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 219, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 221, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 223, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 3, h: 0000: ldc2_w #40091eb860000000 // 3.140000104904175 - // . . . - 14 00 0a - // parsed:, offset 3, len 1, h: 0003: pop2 - // X - 58 - // parsed:, offset 4, len 3, h: 0004: ldc_w #4048f5c3 // 3.14 - // . . . -//@mod 13 00 0d - 13 00 0a - // parsed:, offset 7, len 1, h: 0007: freturn - // . - ae - // parsed:, offset 235, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 237, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 239, len 0, h: end attributes[0] -// parsed:, offset 239, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()F -// parsed:, offset 239, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 241, len 0, h: attributes[0]: - // parsed:, offset 241, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 243, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 247, len 2, h: source: utf8{"T_ldc_w_5.java"} - // . . - 00 06 -// parsed:, offset 249, len 0, h: end attributes[0] -// parsed:, offset 249, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.j deleted file mode 100644 index b6be6e19a80dbe42dcd64831b2c2994111e61384..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldc_w_5.java -.class public dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()F - .limit stack 2 - ldc2_w 3.14 - pop2 - ldc_w 3.14f - freturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.java deleted file mode 100644 index da51419be893b0d087148490cc6d370ee3016986..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldc_w/jm/T_ldc_w_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldc_w.jm; - -public class T_ldc_w_5 { - - public float run(String a){ - return 3.14f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/Test_ldiv.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/Test_ldiv.java deleted file mode 100644 index 213d28b44cf84f7fae2053b386b1b6e913e7acf4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/Test_ldiv.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ldiv.jm.T_ldiv_1; - -public class Test_ldiv extends DxTestCase { - - /** - * @title Arguments = 100000000000l, 40000000000l - */ - public void testN1() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(2l, t.run(100000000000l, 40000000000l)); - } - - /** - * @title Rounding - */ - public void testN2() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(8l, t.run(98765432123456l, 12345678912345l)); - } - - /** - * @title Dividend = 0 - */ - public void testN3() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(0l, t.run(0l, 98765432123456l)); - } - - /** - * @title Dividend is negative - */ - public void testN4() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(-8, t.run(-98765432123456l, 12345678912345l)); - } - - /** - * @title Divisor is negative - */ - public void testN5() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(-8, t.run(98765432123456l, -12345678912345l)); - } - - /** - * @title Both Dividend and divisor are negative - */ - public void testN6() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(80l, t.run(-98765432123456l, -1234567891234l)); - } - - /** - * @title Arguments = Long.MIN_VALUE, -1 - */ - public void testB1() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, -1)); - } - /** - * @title Arguments = Long.MIN_VALUE, 1 - */ - public void testB2() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, 1)); - } - /** - * @title Arguments = Long.MAX_VALUE, 1 - */ - public void testB3() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(9223372036854775807L, t.run(Long.MAX_VALUE, 1)); - } - /** - * @title Arguments = Long.MIN_VALUE, Long.MAX_VALUE - */ - public void testB4() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(-1, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); - } - /** - * @title Arguments = 1, Long.MAX_VALUE - */ - public void testB5() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(0, t.run(1, Long.MAX_VALUE)); - } - /** - * @title Arguments = 1, Long.MIN_VALUE - */ - public void testB6() { - T_ldiv_1 t = new T_ldiv_1(); - assertEquals(0, t.run(1, Long.MIN_VALUE)); - } - - /** - * @title Divisor is 0 - */ - public void testE1() { - T_ldiv_1 t = new T_ldiv_1(); - try { - t.run(12345678912345l, 0); - fail("expected ArithmeticException"); - } catch (ArithmeticException ae) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ldiv.jm.T_ldiv_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ldiv.jm.T_ldiv_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ldiv.jm.T_ldiv_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int / long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ldiv.jm.T_ldiv_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float / long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ldiv.jm.T_ldiv_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / long - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ldiv.jm.T_ldiv_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_1.j deleted file mode 100644 index 49f0bdaf69568c9914f281e76d92f070e5dbd2e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldiv_1.java -.class public dxc/junit/opcodes/ldiv/jm/T_ldiv_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - ldiv - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_1.java deleted file mode 100644 index b33a03de984293104b608ea050ca9762a640970c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_1.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv.jm; - - -public class T_ldiv_1 { - - public long run(long a, long b) { - return a/b; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_2.j deleted file mode 100644 index d1a1becc01e38a30914b125cc4ae28de0cf12765..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldiv_2.java -.class public dxc/junit/opcodes/ldiv/jm/T_ldiv_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - -; lload_1 - lload_3 - ldiv - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_2.java deleted file mode 100644 index 0f92d94d425b5fe4a35046d6d3767f384039315d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv.jm; - -public class T_ldiv_2 { - - public long run(long a, long b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_3.j deleted file mode 100644 index 04592e2208c13613329a3004732ff4f5a10e2401..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldiv_3.java -.class public dxc/junit/opcodes/ldiv/jm/T_ldiv_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 -; lload_3 - ldiv - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_3.java deleted file mode 100644 index 1703f8dbc8c93a74f66c58c520d8f2a358291cf5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv.jm; - -public class T_ldiv_3 { - - public long run(long a, long b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_4.j deleted file mode 100644 index 1043a5c90671540953dbb54e672106c41130afbd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldiv_4.java -.class public dxc/junit/opcodes/ldiv/jm/T_ldiv_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JD)J - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 -; d2l - ldiv - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_4.java deleted file mode 100644 index a9f70bae025e197e52865f96768223056862a4a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv.jm; - -public class T_ldiv_4 { - - public long run(long a, double b) { - return (long)(a/b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_5.j deleted file mode 100644 index 5e0cd2141b7dd305a44f48fac0fa65c5924ec668..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldiv_5.java -.class public dxc/junit/opcodes/ldiv/jm/T_ldiv_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(IJ)J - .limit stack 4 - .limit locals 4 - - iload_1 -; i2l - lload_2 - ldiv - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_5.java deleted file mode 100644 index d413aa6af6f079dfffdcdd49a031c307a03f81ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv.jm; - -public class T_ldiv_5 { - - public long run(int a, long b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_6.j b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_6.j deleted file mode 100644 index 2bf874141ba9e757f5bb533b2a7de86ece9c131d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_6.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldiv_6.java -.class public dxc/junit/opcodes/ldiv/jm/T_ldiv_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FJ)J - .limit stack 3 - .limit locals 4 - - fload_1 - lload_2 - ldiv - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_6.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_6.java deleted file mode 100644 index bd48c337abe8f587b94c1d5902b3babfb5b938a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv.jm; - -public class T_ldiv_6 { - - public long run(float a, long b) { - return (long)(a/b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_7.j b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_7.j deleted file mode 100644 index 9bd04a6302aa28f01266109b164472db285387a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ldiv_7.java -.class public dxc/junit/opcodes/ldiv/jm/T_ldiv_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - aload_0 - lload_3 - ldiv - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_7.java b/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_7.java deleted file mode 100644 index f859a3822f2f9eb2c6ceb4f4e4311f6bb4f33d23..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ldiv/jm/T_ldiv_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ldiv.jm; - -public class T_ldiv_7 { - - public long run(long a, long b) { - return a/b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/Test_lload.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/Test_lload.java deleted file mode 100644 index ed06cbb06810b28004082c143a1d10a92fc10fcb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/Test_lload.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lload.jm.T_lload_1; -import dxc.junit.opcodes.lload.jm.T_lload_1_w; -import dxc.junit.opcodes.lload.jm.T_lload_2; -import dxc.junit.opcodes.lload.jm.T_lload_2_w; - -public class Test_lload extends DxTestCase { - - /* - * NORMAL ILOAD VERSION - */ - - /** - * @title Test lload 1 - */ - public void testN1() { - T_lload_1 t = new T_lload_1(); - assertEquals(1234567890123l, t.run()); - } - - /** - * @title Test lload 255 - */ - public void testN2() { - T_lload_2 t = new T_lload_2(); - assertEquals(9876543210123l, t.run()); - } - - /** - * @constraint 4.8.1.21 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE ILOAD VERSION - */ - - /** - * @title Test lload_w 1 - */ - public void testN3() { - T_lload_1_w t = new T_lload_1_w(); - assertEquals(1234567890123l, t.run()); - } - - /** - * @title Test lload 257 - */ - public void testN4() { - T_lload_2_w t = new T_lload_2_w(); - assertEquals(9876543210123l, t.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_5_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.lload.jm.T_lload_6_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1.j deleted file mode 100644 index 7acd2d78decfed63b3cb912b1d112771cb219c21..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1.java -.class public dxc/junit/opcodes/lload/jm/T_lload_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore 1 - ldc2_w 3 - lload 1 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1.java deleted file mode 100644 index 564bc8ebfe322be61967d203cfeea502267ff626..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_1 { - - public long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1_w.j deleted file mode 100644 index db18231b7599b8b526688119e616615ba85e7b3b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1_w.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1_w.java -.class public dxc/junit/opcodes/lload/jm/T_lload_1_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore 1 - ldc2_w 3 - lload_w 1 - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1_w.java deleted file mode 100644 index e608b1a943b000c2686762f12046243265849bdd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_1_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_1_w { - - public long run() { - return 1234567890123l; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2.j deleted file mode 100644 index 2034bcd92d8f7cbca38e9761c8f1a6b2761424c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2.java -.class public dxc/junit/opcodes/lload/jm/T_lload_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 4 - .limit locals 300 - - ldc2_w 9876543210123 - lstore 255 - ldc2_w 3 - lload 255 - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2.java deleted file mode 100644 index 7149ed5293bddb3138f76ca8258f8e5411859f9c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_2 { - - public long run() { - return 9876543210123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2_w.j deleted file mode 100644 index 6ffe0077dd49f8407522f5b09eb84478f0679512..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2_w.java -.class public dxc/junit/opcodes/lload/jm/T_lload_2_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 4 - .limit locals 300 - - ldc2_w 9876543210123 - lstore 257 - ldc2_w 3 - lload_w 257 - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2_w.java deleted file mode 100644 index 2175495b4264c378260fbffb738560581754114e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_2_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_2_w { - - public long run() { - return 9876543210123l; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3.j deleted file mode 100644 index 217bb427bd936df28663f0ec0d0c3c24634e44d6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3.java -.class public dxc/junit/opcodes/lload/jm/T_lload_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 0 - .limit locals 2 - - lload 2 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3.java deleted file mode 100644 index ba729a5638fb4a481943708d569abd10d8b7384d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_3 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3_w.j deleted file mode 100644 index 7ad273a94f90bb3722abeb7105fe4025ccd9ced3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3_w.java -.class public dxc/junit/opcodes/lload/jm/T_lload_3_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 300 - - lload_w 300 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3_w.java deleted file mode 100644 index 2e0a76f88758cfaf5a1412ab379222cc746c610d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_3_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_3_w { - public void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4.j deleted file mode 100644 index 2d0c1c319738f63a0b96f2bcfa59f4fc3b7f8791..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_4.java -.class public dxc/junit/opcodes/lload/jm/T_lload_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_1 - - lload 1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4.java deleted file mode 100644 index 01231c3ab6e824aab0d3eb6636e756fb584052e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_4 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4_w.j deleted file mode 100644 index 0540f0cc2735308df716314767544c0a187f6d7f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4_w.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_4_w.java -.class public dxc/junit/opcodes/lload/jm/T_lload_4_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 300 - - dconst_1 - dstore 260 - - lload_w 260 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4_w.java deleted file mode 100644 index 3a7ebbe17214d4671025d4000d2e89750106aeb1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_4_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_4_w { - - public void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5.j deleted file mode 100644 index 9e1fc59c1c785e46af041c7fb8497cc4ffc12161..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_5.java -.class public dxc/junit/opcodes/lload/jm/T_lload_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 4 - - iconst_1 - istore_1 - iconst_1 - istore_2 - - lload 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5.java deleted file mode 100644 index ee11b04fedb5a3e778b26ac3aff810ab9b99940d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_5 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5_w.j deleted file mode 100644 index cc2476be136d0b8042f4dcb15e32ca1105a4fa08..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5_w.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_5_w.java -.class public dxc/junit/opcodes/lload/jm/T_lload_5_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 300 - - iconst_1 - istore 257 - iconst_1 - istore 258 - - lload_w 257 - - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5_w.java deleted file mode 100644 index 6d8f81a8258d7c4a2031314b6c71c3898610cc66..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_5_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_5_w { - public void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6.j deleted file mode 100644 index e2a6e09331d3675caa78d01d657a4a6b25f5b745..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_6.java -.class public dxc/junit/opcodes/lload/jm/T_lload_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 3 - - lconst_1 - lstore_1 - - lload 1 - lload 1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6.java deleted file mode 100644 index 13bfa4c3105cde6da35fd5a1fc49ceb03dc784ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_6 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6_w.j deleted file mode 100644 index af353ad855ee68e5d895710fbc9f9f7dc3dad6ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6_w.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_6_w.java -.class public dxc/junit/opcodes/lload/jm/T_lload_6_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 300 - - lconst_1 - lstore 257 - - lload_w 257 - lload_w 257 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6_w.java deleted file mode 100644 index 9f9a392b56211c9a3f9ee1ba1b98447ac37246fa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload/jm/T_lload_6_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload.jm; - -public class T_lload_6_w { - public void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/Test_lload_0.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/Test_lload_0.java deleted file mode 100644 index 907b444f5289f032892b06bf30a23dac5d1feef6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/Test_lload_0.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lload_0.jm.T_lload_0_1; -import dxc.junit.opcodes.lload_0.jm.T_lload_0_6; - -public class Test_lload_0 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1234567890123l, T_lload_0_1.run()); - } - - /** - * @title equality of lload_ and lload - */ - public void testN2() { - assertTrue(T_lload_0_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lload_0.jm.T_lload_0_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lload_0.jm.T_lload_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lload_0.jm.T_lload_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lload_0.jm.T_lload_0_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_1.j deleted file mode 100644 index 880e0f8cb87de8ec39335cbd55a609afbc205b9f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_0_1.java -.class public dxc/junit/opcodes/lload_0/jm/T_lload_0_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 2 - - ldc2_w 1234567890123 - lstore_0 - ldc2_w 4 - lload_0 - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_1.java deleted file mode 100644 index f7c26cf999452a3564f35be5383f180595863b20..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_0.jm; - -public class T_lload_0_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_2.j deleted file mode 100644 index 410c35dc18612ed795df0aedc45a802194985d07..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_0_2.java -.class public dxc/junit/opcodes/lload_0/jm/T_lload_0_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lload_0 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_2.java deleted file mode 100644 index 965b1c9682797b1121d6ed4e0f01ccf5ff65224d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_0.jm; - -public class T_lload_0_2 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_3.j deleted file mode 100644 index 7fee6f70b9169fc34fbdf1c2c3ff7a8013c15100..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_0_3.java -.class public dxc/junit/opcodes/lload_0/jm/T_lload_0_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_0 - - lload_0 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_3.java deleted file mode 100644 index fffd4b72cfa85ba8762fd91ff4117586b27f0afa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_0.jm; - -public class T_lload_0_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_4.j deleted file mode 100644 index d946623a23e6e3b8f9b984d2848d7a9dbfa9f1a0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_0_4.java -.class public dxc/junit/opcodes/lload_0/jm/T_lload_0_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_1 - istore_0 - iconst_1 - istore_1 - - lload_0 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_4.java deleted file mode 100644 index b054db4bb547bfa1dbd12246111d2b491755b866..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_0.jm; - -public class T_lload_0_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_5.j deleted file mode 100644 index 43e0600c45823fa8432d612711e2c7f8e522f241..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_0_5.java -.class public dxc/junit/opcodes/lload_0/jm/T_lload_0_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 2 - - lconst_1 - lstore_0 - - lload_0 - lload_0 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_5.java deleted file mode 100644 index 0c71a3e5277e972fb6a41e7573df39df4bd45515..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_0.jm; - -public class T_lload_0_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_6.j deleted file mode 100644 index e1b7d2f43df65890a5dfc8fcdb104264e9a53980..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_6.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_0_6.java -.class public dxc/junit/opcodes/lload_0/jm/T_lload_0_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 3 - - ldc2_w 1234567890123 - lstore_0 - - lload_0 - lload 0 - - lcmp - ifne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_6.java deleted file mode 100644 index 2f225f9fa199b507dbe7a256c59670a2a1398836..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_0/jm/T_lload_0_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_0.jm; - -public class T_lload_0_6 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/Test_lload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/Test_lload_1.java deleted file mode 100644 index 161d6d9f7d161db35a20032c14252ef3d5c0cfb2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/Test_lload_1.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lload_1.jm.T_lload_1_1; -import dxc.junit.opcodes.lload_1.jm.T_lload_1_6; - -public class Test_lload_1 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1234567890123l, T_lload_1_1.run()); - } - - /** - * @title equality of lload_ and lload - */ - public void testN2() { - assertTrue(T_lload_1_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lload_1.jm.T_lload_1_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lload_1.jm.T_lload_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lload_1.jm.T_lload_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lload_1.jm.T_lload_1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_1.j deleted file mode 100644 index f6f0f2e2dc9f81704a26b08975027e1be29d1e53..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1_1.java -.class public dxc/junit/opcodes/lload_1/jm/T_lload_1_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 3 - - ldc2_w 1234567890123 - lstore_1 - ldc2_w 4 - lload_1 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_1.java deleted file mode 100644 index e111f73c5f1b0f580001e68c88cba0bfa111fbf8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_1.jm; - -public class T_lload_1_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_2.j deleted file mode 100644 index ea2e4679652e438849461c7eb68e72a12c5c1b96..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1_2.java -.class public dxc/junit/opcodes/lload_1/jm/T_lload_1_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lload_1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_2.java deleted file mode 100644 index 6734f2154c28315e1e81f661f17436784c85dc28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_1.jm; - -public class T_lload_1_2 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_3.j deleted file mode 100644 index 9c5005503e8f8a6ee13ffc4b46e4e225eafb85e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1_3.java -.class public dxc/junit/opcodes/lload_1/jm/T_lload_1_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_1 - - lload_1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_3.java deleted file mode 100644 index 3161c8e131b4bec2f6490db71d211b748cd6ca22..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_1.jm; - -public class T_lload_1_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_4.j deleted file mode 100644 index 93ec64429aefe1a1d4c627e3c2e422e5fc73e372..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1_4.java -.class public dxc/junit/opcodes/lload_1/jm/T_lload_1_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_1 - istore_1 - iconst_1 - istore_2 - - lload_1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_4.java deleted file mode 100644 index 7bcdd1901f24920b2ccc385508f118dcdc3b2214..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_1.jm; - -public class T_lload_1_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_5.j deleted file mode 100644 index 16e89db79be005966609de61a0c347ffb3563262..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1_5.java -.class public dxc/junit/opcodes/lload_1/jm/T_lload_1_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 3 - - lconst_1 - lstore_1 - - lload_1 - lload_1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_5.java deleted file mode 100644 index 8e3b949d429e4e1325754468b166db5fad2fc964..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_1.jm; - -public class T_lload_1_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_6.j deleted file mode 100644 index 2cdbd8ad9367d874020fda31524390cec88d8ce1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_6.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_1_6.java -.class public dxc/junit/opcodes/lload_1/jm/T_lload_1_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 3 - - ldc2_w 1234567890123 - lstore_1 - - lload_1 - lload 1 - lcmp - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_6.java deleted file mode 100644 index 91fc928b7be50e3d31764bc200d4504f168476c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_1/jm/T_lload_1_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_1.jm; - -public class T_lload_1_6 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/Test_lload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/Test_lload_2.java deleted file mode 100644 index e8976b85a52ac72ae602f47013f0a100bff5b049..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/Test_lload_2.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lload_2.jm.T_lload_2_1; -import dxc.junit.opcodes.lload_2.jm.T_lload_2_6; - -public class Test_lload_2 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1234567890123l, T_lload_2_1.run()); - } - - /** - * @title equality of lload_ and lload - */ - public void testN2() { - assertTrue(T_lload_2_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lload_2.jm.T_lload_2_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lload_2.jm.T_lload_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lload_2.jm.T_lload_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lload_2.jm.T_lload_2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_1.j deleted file mode 100644 index 753ab6aad607e633aa9d784b4907244bab1f1e99..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2_1.java -.class public dxc/junit/opcodes/lload_2/jm/T_lload_2_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore_2 - ldc2_w 4 - lload_2 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_1.java deleted file mode 100644 index 86720db2d0825fb13045e5bc55f18fdc1d39e67e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_2.jm; - -public class T_lload_2_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_2.j deleted file mode 100644 index 4ce9a6364884901a40e01e3ba1a4ca0bde3b50b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2_2.java -.class public dxc/junit/opcodes/lload_2/jm/T_lload_2_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lload_2 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_2.java deleted file mode 100644 index cd54b1ba53c768477f3b2487e872627906908ca1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_2.jm; - -public class T_lload_2_2 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_3.j deleted file mode 100644 index 85c8f7dc48b00ef415a7385a47c85998a06f9241..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2_3.java -.class public dxc/junit/opcodes/lload_2/jm/T_lload_2_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - dstore_2 - - lload_2 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_3.java deleted file mode 100644 index 866e9a1b2b3e229f77f173f59a54dd476c07713e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_2.jm; - -public class T_lload_2_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_4.j deleted file mode 100644 index ee23e5cc755ff487bdb31cc6f0914faebced2fe7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2_4.java -.class public dxc/junit/opcodes/lload_2/jm/T_lload_2_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_2 - istore_2 - iconst_2 - istore_3 - - lload_2 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_4.java deleted file mode 100644 index c6305a7118b815d88b3a1ac6cd3b7645b99cd66f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_2.jm; - -public class T_lload_2_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_5.j deleted file mode 100644 index 8e0022d72d96229e098908fedf5ff4b02a4f6b01..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2_5.java -.class public dxc/junit/opcodes/lload_2/jm/T_lload_2_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 3 - - lconst_1 - lstore_2 - - lload_2 - lload_2 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_5.java deleted file mode 100644 index d21571e6d793b377869ef4eaa6e42cf9d370c887..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_2.jm; - -public class T_lload_2_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_6.j deleted file mode 100644 index 10633f0fc1b74228589bdbebe645b0c1159d1d67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_6.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_2_6.java -.class public dxc/junit/opcodes/lload_2/jm/T_lload_2_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore_2 - - lload_2 - lload 2 - lcmp - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_6.java deleted file mode 100644 index 41fa7ac96138796a657de89e8ef2ecd2dabcccf2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_2/jm/T_lload_2_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_2.jm; - -public class T_lload_2_6 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/Test_lload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/Test_lload_3.java deleted file mode 100644 index 16227ea77a6e206dd3c0e2c51bd90d13ec0810e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/Test_lload_3.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lload_3.jm.T_lload_3_1; -import dxc.junit.opcodes.lload_3.jm.T_lload_3_6; - -public class Test_lload_3 extends DxTestCase { - - /** - * @title value is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1234567890123l, T_lload_3_1.run()); - } - - /** - * @title equality of lload_ and lload - */ - public void testN2() { - assertTrue(T_lload_3_6.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lload_3.jm.T_lload_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lload_3.jm.T_lload_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lload_3.jm.T_lload_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lload_3.jm.T_lload_3_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_1.j deleted file mode 100644 index 987c791ee6a408ccd5537d9f21537f9f1a7ea338..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3_1.java -.class public dxc/junit/opcodes/lload_3/jm/T_lload_3_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 5 - - ldc2_w 1234567890123 - lstore_3 - ldc2_w 4 - lload_3 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_1.java deleted file mode 100644 index e5436cfbefde837e35916f5efe2c34a332b59e3f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_3.jm; - -public class T_lload_3_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_2.j deleted file mode 100644 index 1e4a2a2e59ce55e9446f82593f4284b7da178a50..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3_2.java -.class public dxc/junit/opcodes/lload_3/jm/T_lload_3_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lload_3 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_2.java deleted file mode 100644 index 2e123834eb85685818a1115d40647b8aae5e9993..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_3.jm; - -public class T_lload_3_2 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_3.j deleted file mode 100644 index 0d063914def121c3045fc749b39ac23c705bc214..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_3.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3_3.java -.class public dxc/junit/opcodes/lload_3/jm/T_lload_3_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 5 - - dconst_1 - dstore_3 - - lload_3 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_3.java deleted file mode 100644 index add5f68df57c28e325926960955acd67d2559387..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_3.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_3.jm; - -public class T_lload_3_3 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_4.j deleted file mode 100644 index 6fe0e5cb893fa440743c0c86eefda7fb631644a0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3_4.java -.class public dxc/junit/opcodes/lload_3/jm/T_lload_3_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 5 - - iconst_1 - istore_3 - iconst_1 - istore 4 - - lload_3 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_4.java deleted file mode 100644 index 26fb64c17c41340e8a92ad206f26ce016b23d383..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_3.jm; - -public class T_lload_3_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_5.j deleted file mode 100644 index 663976010655204033f048d601769f083cf8d6cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3_5.java -.class public dxc/junit/opcodes/lload_3/jm/T_lload_3_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 1 - .limit locals 5 - - lconst_1 - lstore_3 - - lload_3 - lload_3 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_5.java deleted file mode 100644 index 552d7e6d36e43f00e40dc9472e5da6cc297ede65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_3.jm; - -public class T_lload_3_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_6.j deleted file mode 100644 index ddfb923829a0c483f0c7c3f8b4c8f7320765459f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_6.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lload_3_6.java -.class public dxc/junit/opcodes/lload_3/jm/T_lload_3_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 5 - - ldc2_w 1234567890123 - lstore_3 - - lload_3 - lload 3 - lcmp - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_6.java deleted file mode 100644 index 781ed48ee7fcb83e113b5c65d54be9a061e7da82..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lload_3/jm/T_lload_3_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lload_3.jm; - -public class T_lload_3_6 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/Test_lmul.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/Test_lmul.java deleted file mode 100644 index 8bd913a3f6031fe6a6a263e0c195311349e6da78..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/Test_lmul.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lmul.jm.T_lmul_1; - -public class Test_lmul extends DxTestCase { - - /** - * @title Arguments = 222000000000l, 5000000000l - */ - public void testN1() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(3195355577426903040l, t.run(222000000000l, 5000000000l)); - } - - /** - * @title Arguments = -123456789l, 123456789l - */ - public void testN2() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(-15241578750190521l, t.run(-123456789l, 123456789l)); - } - - /** - * @title Arguments = -123456789l, -123456789l - */ - public void testN3() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(15241578750190521l, t.run(-123456789l, -123456789l)); - } - - /** - * @title Arguments = 0, Long.MAX_VALUE - */ - public void testB1() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(0, t.run(0, Long.MAX_VALUE)); - } - /** - * @title Arguments = Long.MAX_VALUE, 1 - */ - public void testB2() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(9223372036854775807L, t.run(Long.MAX_VALUE, 1)); - } - /** - * @title Arguments = Long.MIN_VALUE, 1 - */ - public void testB3() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, 1)); - } - /** - * @title Arguments = Long.MAX_VALUE, Long.MIN_VALUE - */ - public void testB4() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(-9223372036854775808L, t.run(Long.MAX_VALUE, - Long.MIN_VALUE)); - } - /** - * @title Arguments = 0, 0 - */ - public void testB5() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(0, t.run(0, 0)); - } - /** - * @title Arguments = Long.MAX_VALUE, -1 - */ - public void testB6() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(-9223372036854775807L, t.run(Long.MAX_VALUE, -1)); - } - /** - * @title Arguments = Long.MIN_VALUE, -1 - */ - public void testB7() { - T_lmul_1 t = new T_lmul_1(); - assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, -1)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lmul.jm.T_lmul_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lmul.jm.T_lmul_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long * double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lmul.jm.T_lmul_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long * int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lmul.jm.T_lmul_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float * long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lmul.jm.T_lmul_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference * long - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.lmul.jm.T_lmul_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_1.j deleted file mode 100644 index 59ba73e66ce8bf1d83f5478b848a1566c1e1d6a3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lmul_1.java -.class public dxc/junit/opcodes/lmul/jm/T_lmul_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - lmul - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_1.java deleted file mode 100644 index 455a293d670ee9f117089a800df4a1bd08c83cae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul.jm; - -public class T_lmul_1 { - - public long run(long a, long b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_2.j deleted file mode 100644 index 2965969ac1d797230ac365ccad255057f3323f2d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lmul_2.java -.class public dxc/junit/opcodes/lmul/jm/T_lmul_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - -; lload_1 - lload_3 - lmul - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_2.java deleted file mode 100644 index 10a1dce54812478eb39f557eec242003e498cd8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul.jm; - -public class T_lmul_2 { - - public long run(long a, long b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_3.j deleted file mode 100644 index 32818bfe28f2ebfd7117782040ede0ac4d3c4a89..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lmul_3.java -.class public dxc/junit/opcodes/lmul/jm/T_lmul_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 -; lload_3 - lmul - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_3.java deleted file mode 100644 index 44d7e83a35c3e273d7f04ef3c7a0213ba943fd8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul.jm; - -public class T_lmul_3 { - - public long run(long a, long b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_4.j deleted file mode 100644 index b50059e9680008adade2d7ae01e40a7baf3dd1e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lmul_4.java -.class public dxc/junit/opcodes/lmul/jm/T_lmul_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JD)J - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 - lmul - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_4.java deleted file mode 100644 index db452a1b12781a9bc15d8e041172aadc2df4eef6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul.jm; - -public class T_lmul_4 { - - public long run(long a, double b) { - return (long)(a*b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_5.j deleted file mode 100644 index 7fe2ef8ee92ec877866fec367f0417418ef0673b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lmul_5.java -.class public dxc/junit/opcodes/lmul/jm/T_lmul_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JI)J - .limit stack 4 - .limit locals 4 - - lload_1 - iload_3 - lmul - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_5.java deleted file mode 100644 index 8869241f49f4adc3ced93f83522859076eb018c9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul.jm; - -public class T_lmul_5 { - - public long run(long a, int b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_6.j deleted file mode 100644 index 691a9a1c1186cabe1943902f5645979645b5357c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_6.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lmul_6.java -.class public dxc/junit/opcodes/lmul/jm/T_lmul_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FJ)J - .limit stack 3 - .limit locals 4 - - fload_1 - lload_2 - lmul - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_6.java deleted file mode 100644 index 46ecbec063a4fd19037c194aa16be4838bbfbb8f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul.jm; - -public class T_lmul_6 { - - public long run(float a, long b) { - return (long)(a*b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_7.j b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_7.j deleted file mode 100644 index fe37744bc228b8acb2f5e16b5418a71c0cab3ec4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lmul_7.java -.class public dxc/junit/opcodes/lmul/jm/T_lmul_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - aload_0 - lload_3 - lmul - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_7.java b/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_7.java deleted file mode 100644 index b30347d55bbc0a163fbdb2bf86c7bb46b414bf30..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lmul/jm/T_lmul_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lmul.jm; - -public class T_lmul_7 { - - public long run(long a, long b) { - return a*b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/Test_lneg.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/Test_lneg.java deleted file mode 100644 index b9d201031fd5cac0a790e42156590cf6ee5ab670..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/Test_lneg.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lneg.jm.T_lneg_1; -import dxc.junit.opcodes.lneg.jm.T_lneg_2; - -public class Test_lneg extends DxTestCase { - - /** - * @title Argument = 123123123272432432l - */ - public void testN1() { - T_lneg_1 t = new T_lneg_1(); - assertEquals(-123123123272432432l, t.run(123123123272432432l)); - } - - /** - * @title Argument = 1 - */ - public void testN2() { - T_lneg_1 t = new T_lneg_1(); - assertEquals(-1l, t.run(1l)); - } - - /** - * @title Argument = -1 - */ - public void testN3() { - T_lneg_1 t = new T_lneg_1(); - assertEquals(1l, t.run(-1l)); - } - - /** - * @title Check that -x == (~x + 1) - */ - public void testN4() { - T_lneg_2 t = new T_lneg_2(); - assertTrue(t.run(123123123272432432l)); - } - - /** - * @title Argument = 0 - */ - public void testB1() { - T_lneg_1 t = new T_lneg_1(); - assertEquals(0, t.run(0)); - } - - /** - * @title Argument = Long.MAX_VALUE - */ - public void testB2() { - T_lneg_1 t = new T_lneg_1(); - assertEquals(-9223372036854775807L, t.run(Long.MAX_VALUE)); - } - - /** - * @title Argument = Long.MIN_VALUE - */ - public void testB3() { - T_lneg_1 t = new T_lneg_1(); - assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lneg.jm.T_lneg_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lneg.jm.T_lneg_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lneg.jm.T_lneg_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lneg.jm.T_lneg_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lneg.jm.T_lneg_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_1.j deleted file mode 100644 index a92e968fe2a5dbde75f2f302ab582373f3f77518..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lneg_1.java -.class public dxc/junit/opcodes/lneg/jm/T_lneg_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(J)J - .limit stack 2 - .limit locals 3 - - lload_1 - lneg - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_1.java deleted file mode 100644 index 662717f047948f1a9442a1860d39be30f689abeb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg.jm; - -public class T_lneg_1 { - - public long run(long d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_2.j deleted file mode 100644 index 3142cdb643e8fd31008a15bca958cce44c4d12c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_2.j +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lneg_2.java -.class public dxc/junit/opcodes/lneg/jm/T_lneg_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(J)Z - .limit stack 6 - .limit locals 3 - - lload_1 - lneg - lload_1 - ldc2_w -1 - lxor - lconst_1 - ladd - lcmp - ifne Label0 - iconst_1 - ireturn - - Label0: - iconst_0 - - Label2: - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_2.java deleted file mode 100644 index 44b3657bb7afb244579711cf3e35fb25146f89aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg.jm; - -public class T_lneg_2 { - - public boolean run(long d) { - return -d == (~d + 1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_3.j deleted file mode 100644 index 1fe25a9e6ec01aca59f24584d5daec389d60cbb5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lneg_3.java -.class public dxc/junit/opcodes/lneg/jm/T_lneg_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(J)J - .limit stack 2 - .limit locals 3 - -; lload_1 - lneg - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_3.java deleted file mode 100644 index 423f347e578115767f74f619c1569ab439955a94..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg.jm; - -public class T_lneg_3 { - - public long run(long d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_4.j deleted file mode 100644 index 5e585abd6e424e85d8719e797a27c56d5ace98ee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lneg_4.java -.class public dxc/junit/opcodes/lneg/jm/T_lneg_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(D)J - .limit stack 2 - .limit locals 3 - - dload_1 - lneg - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_4.java deleted file mode 100644 index e2bbda32b5d804b66b60727c09d89dc3613a65b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg.jm; - -public class T_lneg_4 { - - public long run(double d) { - return (long)-d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_5.j deleted file mode 100644 index bc1a58f36ec7a476a7aa5745a75e3ce135ee077e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_5.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lneg_5.java -.class public dxc/junit/opcodes/lneg/jm/T_lneg_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(I)J - .limit stack 2 - .limit locals 2 - - iload_1 - lneg - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_5.java deleted file mode 100644 index 8d80a6642f5f6c7ecba53c0362b3db07bab480e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg.jm; - -public class T_lneg_5 { - - public long run(int d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_6.j deleted file mode 100644 index 2b5fa6d2765440be194ded3606b657f3f644bdb1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lneg_6.java -.class public dxc/junit/opcodes/lneg/jm/T_lneg_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(F)J - .limit stack 2 - .limit locals 2 - - fload_1 - lneg - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_6.java deleted file mode 100644 index 47b901afa64f6e7341bfc1755d31edc000fd3e19..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg.jm; - -public class T_lneg_6 { - - public long run(float d) { - return (long)-d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_7.j b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_7.j deleted file mode 100644 index a5e1696db92e0ff4a8971b9d344b876dcf7f504f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_7.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lneg_7.java -.class public dxc/junit/opcodes/lneg/jm/T_lneg_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(J)J - .limit stack 2 - .limit locals 3 - - aload_0 - lneg - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_7.java b/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_7.java deleted file mode 100644 index ccbc8684174c22ac22f13471fc7a7fc2109b6dcd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lneg/jm/T_lneg_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lneg.jm; - -public class T_lneg_7 { - - public long run(long d) { - return -d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/Test_lookupswitch.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/Test_lookupswitch.java deleted file mode 100644 index 5b5ced8dc515a9c617b848f34b4c4a444589fb4c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/Test_lookupswitch.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_1; - -public class Test_lookupswitch extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_lookupswitch_1 t = new T_lookupswitch_1(); - assertEquals(2, t.run(-1)); - - assertEquals(-1, t.run(9)); - assertEquals(20, t.run(10)); - assertEquals(-1, t.run(11)); - - assertEquals(-1, t.run(14)); - assertEquals(20, t.run(15)); - assertEquals(-1, t.run(16)); - } - - /** - * @title check Integer.MAX_VALUE - */ - public void testB1() { - T_lookupswitch_1 t = new T_lookupswitch_1(); - assertEquals(-1, t.run(Integer.MAX_VALUE)); - } - - /** - * @title check Integer.MIN_VALUE - */ - public void testB2() { - T_lookupswitch_1 t = new T_lookupswitch_1(); - assertEquals(-1, t.run(Integer.MIN_VALUE)); - } - - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.9 - * @title branch target shall be inside the - * method - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.9 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.9 - * @title npairs shall be >= 0 - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.9 - * @title non-zero padding - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.9 - * @title pairs shall be sorted in ascending - * order - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.9 - * @title number of entries in jump table - */ - public void testVFE9() { - try { - Class - .forName("dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_1.j deleted file mode 100644 index 310c3d124b7a864f02eeb305b93447072b9bd523..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_1.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_1.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_1.java deleted file mode 100644 index 0f1f65737e2d9c25d02184afd4933bfa32aad1bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_1.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_1 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.cfh b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.cfh deleted file mode 100644 index d4c30e82ea617c78041f3bf7fefc3f0120b2662f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 25, h: 0006: utf8{"T_lookupswitch_10.java"} - // . . . T _ l o o k u p s w i t c h _ 1 0 . j a v a - 01 00 16 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 31 30 2e 6a 61 76 61 - // parsed:, offset 87, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 92, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 99, len 54, h: 0009: utf8{"dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10"} - // . . 3 d x c / j u n i t / o p c o d e s / l o o k u p s w i t c h / j m / T _ l o o k u p s w i t c h _ 1 0 - 01 00 33 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 31 30 - // parsed:, offset 153, len 3, h: 000a: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_10} - // . . . - 07 00 09 - // parsed:, offset 156, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 162, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 165, len 0, h: end constant_pool -// parsed:, offset 165, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 167, len 2, h: this_class: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_10} -// . . - 00 0a -// parsed:, offset 169, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 171, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 173, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 175, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 177, len:89,desc: ()V -// parsed:, offset 177, len 0, h: methods[0]: - // parsed:, offset 177, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 179, len 2, h: name: - // . . - 00 04 - // parsed:, offset 181, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 183, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 185, len 0, h: attributes[0]: - // parsed:, offset 185, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 187, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 191, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 193, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 195, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 204, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 206, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 208, len 0, h: end attributes[0] -// parsed:, offset 208, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 208, len:58,desc: ()V -// parsed:, offset 208, len 0, h: methods[1]: - // parsed:, offset 208, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 210, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 212, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 214, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 218, len 4, h: length: 00000022 - // . . . " - 00 00 00 22 - // parsed:, offset 222, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 224, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 226, len 4, h: code_length: 00000016 - // . . . . - 00 00 00 16 - // parsed:, offset 0, len 1, h: 0000: iconst_1 // #+01 - // . - 04 - // parsed:, offset 1, len 19, h: 0001: lookupswitch -00000001: 0014 default: 0015 - // . . . . . . . . . . . . . . . . . . . -//@mod ab 00 00 00 00 00 14 00 00 00 01 ff ff ff ff 00 00 00 13 - ab 00 00 00 00 00 14 00 00 00 02 ff ff ff ff 00 00 00 13 - // parsed:, offset 20, len 1, h: 0014: return - // . - b1 - // parsed:, offset 21, len 1, h: 0015: return - // . - b1 - // parsed:, offset 252, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 254, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 256, len 0, h: end attributes[0] -// parsed:, offset 256, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 256, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 258, len 0, h: attributes[0]: - // parsed:, offset 258, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 260, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 264, len 2, h: source: utf8{"T_lookupswitch_10.java"} - // . . - 00 06 -// parsed:, offset 266, len 0, h: end attributes[0] -// parsed:, offset 266, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.j deleted file mode 100644 index 73ad264759b4d42167110c85812c0ed1888c8083..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_10.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 1 - .limit locals 1 - iconst_1 - lookupswitch - -1 : Label0 - default: Label2 - - Label0: - return - -Label2: - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.java deleted file mode 100644 index ee806f424f8cf1410120432c6770538a4af3fde0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_10.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_10 { - - public void run() { - switch (1) { - case -1: - return; - case 10: - return; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_2.j deleted file mode 100644 index db16d9de872076b7431e0c9b7fb00181cda71630..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_2.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_2.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 -; iload_1 - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_2.java deleted file mode 100644 index 05ec5ce25027bb1d4e214d07a1de36f262c5dcb9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_2.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_2 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_3.j deleted file mode 100644 index 0b96e9d0e5fa109376989b6a67c5cd0e9f33445a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_3.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_3.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - fconst_1 - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_3.java deleted file mode 100644 index 1c777ab1b345b46c8ed23acbb313ccdfd0afcc7a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_3.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_3 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.cfh deleted file mode 100644 index 436d184761c786859802aebad46a07d14b7473c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 67, len 3, h: 0007: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_4} - // . . . - 07 00 09 - // parsed:, offset 70, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 77, len 53, h: 0009: utf8{"dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4"} - // . . 2 d x c / j u n i t / o p c o d e s / l o o k u p s w i t c h / j m / T _ l o o k u p s w i t c h _ 4 - 01 00 32 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 34 - // parsed:, offset 130, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 136, len 24, h: 000b: utf8{"T_lookupswitch_4.java"} - // . . . T _ l o o k u p s w i t c h _ 4 . j a v a - 01 00 15 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 34 2e 6a 61 76 61 - // parsed:, offset 160, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 163, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 170, len 0, h: end constant_pool -// parsed:, offset 170, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 172, len 2, h: this_class: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_4} -// . . - 00 07 -// parsed:, offset 174, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 176, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 178, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 180, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 182, len:110,desc: ()V -// parsed:, offset 182, len 0, h: methods[0]: - // parsed:, offset 182, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 184, len 2, h: name: - // . . - 00 04 - // parsed:, offset 186, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 188, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 190, len 0, h: attributes[0]: - // parsed:, offset 190, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 192, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 196, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 198, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 200, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 209, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 211, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 213, len 0, h: end attributes[0] -// parsed:, offset 213, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 213, len:79,desc: (I)I -// parsed:, offset 213, len 0, h: methods[1]: - // parsed:, offset 213, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 215, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 217, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 219, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 221, len 0, h: attributes[0]: - // parsed:, offset 221, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 223, len 4, h: length: 00000037 - // . . . 7 - 00 00 00 37 - // parsed:, offset 227, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 229, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 231, len 4, h: code_length: 0000002b - // . . . + - 00 00 00 2b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 35, h: 0001: lookupswitch -00000001: 0024 +0000000a: 0026 +0000000f: 0026 default: 0029 - // . . . . . . ( . . . . . . . . . . . # . . . . . . . % . . . . . . . % -//@mod ab 00 00 00 00 00 28 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 25 - ab 00 00 00 00 00 28 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 ff - // parsed:, offset 36, len 1, h: 0024: iconst_2 // #+02 - // . - 05 - // parsed:, offset 37, len 1, h: 0025: ireturn - // . - ac - // parsed:, offset 38, len 2, h: 0026: bipush #+14 - // . . - 10 14 - // parsed:, offset 40, len 1, h: 0028: ireturn - // . - ac - // parsed:, offset 41, len 1, h: 0029: iconst_m1 // #-01 - // . - 02 - // parsed:, offset 42, len 1, h: 002a: ireturn - // . - ac - // parsed:, offset 278, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 280, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 282, len 0, h: end attributes[0] -// parsed:, offset 282, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 282, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 284, len 0, h: attributes[0]: - // parsed:, offset 284, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 286, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 290, len 2, h: source: utf8{"T_lookupswitch_4.java"} - // . . - 00 0b -// parsed:, offset 292, len 0, h: end attributes[0] -// parsed:, offset 292, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.j deleted file mode 100644 index e342dc309b5a910ea532d6048cb63393d7c6dac7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_4.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.java deleted file mode 100644 index 407ccad2f832f1c10a56635254bc49da8c9d55dc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_4.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_4 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.cfh deleted file mode 100644 index e578a0796486e471a15a4df5f987867b952943a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 24, h: 0001: utf8{"T_lookupswitch_5.java"} - // . . . T _ l o o k u p s w i t c h _ 5 . j a v a - 01 00 15 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 35 2e 6a 61 76 61 - // parsed:, offset 34, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 39, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 58, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 71, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 80, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 86, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0a - // parsed:, offset 91, len 3, h: 0008: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_5} - // . . . - 07 00 0b - // parsed:, offset 94, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 101, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 107, len 53, h: 000b: utf8{"dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5"} - // . . 2 d x c / j u n i t / o p c o d e s / l o o k u p s w i t c h / j m / T _ l o o k u p s w i t c h _ 5 - 01 00 32 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 35 - // parsed:, offset 160, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 03 - // parsed:, offset 163, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 170, len 0, h: end constant_pool -// parsed:, offset 170, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 172, len 2, h: this_class: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_5} -// . . - 00 08 -// parsed:, offset 174, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 176, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 178, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 180, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 182, len:112,desc: ()V -// parsed:, offset 182, len 0, h: methods[0]: - // parsed:, offset 182, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 184, len 2, h: name: - // . . - 00 05 - // parsed:, offset 186, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 188, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 190, len 0, h: attributes[0]: - // parsed:, offset 190, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 192, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 196, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 198, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 200, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 209, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 211, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 213, len 0, h: end attributes[0] -// parsed:, offset 213, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 213, len:81,desc: (I)I -// parsed:, offset 213, len 0, h: methods[1]: - // parsed:, offset 213, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 215, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 217, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 219, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 221, len 0, h: attributes[0]: - // parsed:, offset 221, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 223, len 4, h: length: 00000039 - // . . . 9 - 00 00 00 39 - // parsed:, offset 227, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 229, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 231, len 4, h: code_length: 0000002d - // . . . - - 00 00 00 2d - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 35, h: 0001: lookupswitch -00000001: 0024 +0000000a: 0026 +0000000f: 0026 default: 002b - // . . . . . . * . . . . . . . . . . . # . . . . . . . % . . . . . . . % -//@mod ab 00 00 00 00 00 2a 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 25 - ab 00 00 00 00 00 2a 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 26 00 00 00 0f 00 00 00 25 - // parsed:, offset 36, len 1, h: 0024: iconst_2 // #+02 - // . - 05 - // parsed:, offset 37, len 1, h: 0025: ireturn - // . - ac - // parsed:, offset 38, len 4, h: 0026: wide iload 0001 - // . . . . - c4 15 00 01 - // parsed:, offset 42, len 1, h: 002a: ireturn - // . - ac - // parsed:, offset 43, len 1, h: 002b: iconst_m1 // #-01 - // . - 02 - // parsed:, offset 44, len 1, h: 002c: ireturn - // . - ac - // parsed:, offset 280, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 282, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 284, len 0, h: end attributes[0] -// parsed:, offset 284, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 284, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 286, len 0, h: attributes[0]: - // parsed:, offset 286, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 288, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 292, len 2, h: source: utf8{"T_lookupswitch_5.java"} - // . . - 00 01 -// parsed:, offset 294, len 0, h: end attributes[0] -// parsed:, offset 294, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.j deleted file mode 100644 index cd74f87cf4993f45c42355441701ac4ce6551a67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_5.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - iload_w 1 -; - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.java deleted file mode 100644 index 9fbeaa46800f88f4b0eb0752b5f0fd857d1d13c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_5.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_5 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.cfh deleted file mode 100644 index 6ea06203798a64d0757243514ff11b182e6cb34c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 24, h: 0006: utf8{"T_lookupswitch_6.java"} - // . . . T _ l o o k u p s w i t c h _ 6 . j a v a - 01 00 15 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 36 2e 6a 61 76 61 - // parsed:, offset 86, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 91, len 3, h: 0008: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_6} - // . . . - 07 00 0b - // parsed:, offset 94, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 101, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 107, len 53, h: 000b: utf8{"dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6"} - // . . 2 d x c / j u n i t / o p c o d e s / l o o k u p s w i t c h / j m / T _ l o o k u p s w i t c h _ 6 - 01 00 32 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 36 - // parsed:, offset 160, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 163, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 170, len 0, h: end constant_pool -// parsed:, offset 170, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 172, len 2, h: this_class: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_6} -// . . - 00 08 -// parsed:, offset 174, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 176, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 178, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 180, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 182, len:110,desc: ()V -// parsed:, offset 182, len 0, h: methods[0]: - // parsed:, offset 182, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 184, len 2, h: name: - // . . - 00 04 - // parsed:, offset 186, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 188, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 190, len 0, h: attributes[0]: - // parsed:, offset 190, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 192, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 196, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 198, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 200, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 209, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 211, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 213, len 0, h: end attributes[0] -// parsed:, offset 213, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 213, len:79,desc: (I)I -// parsed:, offset 213, len 0, h: methods[1]: - // parsed:, offset 213, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 215, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 217, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 219, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 221, len 0, h: attributes[0]: - // parsed:, offset 221, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 223, len 4, h: length: 00000037 - // . . . 7 - 00 00 00 37 - // parsed:, offset 227, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 229, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 231, len 4, h: code_length: 0000002b - // . . . + - 00 00 00 2b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 35, h: 0001: lookupswitch -00000001: 0024 +0000000a: 0026 +0000000f: 0026 default: 0029 - // . . . . . . ( . . . . . . . . . . . # . . . . . . . % . . . . . . . % -//@mod ab 00 00 00 00 00 28 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 25 - ab 00 00 00 00 00 28 ff ff ff ff ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 25 - // parsed:, offset 36, len 1, h: 0024: iconst_2 // #+02 - // . - 05 - // parsed:, offset 37, len 1, h: 0025: ireturn - // . - ac - // parsed:, offset 38, len 2, h: 0026: bipush #+14 - // . . - 10 14 - // parsed:, offset 40, len 1, h: 0028: ireturn - // . - ac - // parsed:, offset 41, len 1, h: 0029: iconst_m1 // #-01 - // . - 02 - // parsed:, offset 42, len 1, h: 002a: ireturn - // . - ac - // parsed:, offset 278, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 280, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 282, len 0, h: end attributes[0] -// parsed:, offset 282, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 282, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 284, len 0, h: attributes[0]: - // parsed:, offset 284, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 286, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 290, len 2, h: source: utf8{"T_lookupswitch_6.java"} - // . . - 00 06 -// parsed:, offset 292, len 0, h: end attributes[0] -// parsed:, offset 292, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.j deleted file mode 100644 index dde35caeee9f547aeb211db47366aa281939af04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_6.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.java deleted file mode 100644 index 5fa0f3dff3dc44ad23ef0ce26044a70aead2be89..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_6.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_6 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.cfh b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.cfh deleted file mode 100644 index 278dc9b355921fd6a5f0f3da15d3f2861e2ffa5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0b 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 3, h: 0006: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_7} - // . . . - 07 00 0c - // parsed:, offset 65, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 70, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 77, len 24, h: 0009: utf8{"T_lookupswitch_7.java"} - // . . . T _ l o o k u p s w i t c h _ 7 . j a v a - 01 00 15 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 37 2e 6a 61 76 61 - // parsed:, offset 101, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 107, len 3, h: 000b: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 110, len 53, h: 000c: utf8{"dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7"} - // . . 2 d x c / j u n i t / o p c o d e s / l o o k u p s w i t c h / j m / T _ l o o k u p s w i t c h _ 7 - 01 00 32 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 37 - // parsed:, offset 163, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 170, len 0, h: end constant_pool -// parsed:, offset 170, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 172, len 2, h: this_class: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_7} -// . . - 00 06 -// parsed:, offset 174, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0b -// parsed:, offset 176, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 178, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 180, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 182, len:110,desc: ()V -// parsed:, offset 182, len 0, h: methods[0]: - // parsed:, offset 182, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 184, len 2, h: name: - // . . - 00 04 - // parsed:, offset 186, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 188, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 190, len 0, h: attributes[0]: - // parsed:, offset 190, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 192, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 196, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 198, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 200, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 209, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 211, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 213, len 0, h: end attributes[0] -// parsed:, offset 213, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 213, len:79,desc: (I)I -// parsed:, offset 213, len 0, h: methods[1]: - // parsed:, offset 213, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 215, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 217, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 219, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 221, len 0, h: attributes[0]: - // parsed:, offset 221, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 223, len 4, h: length: 00000037 - // . . . 7 - 00 00 00 37 - // parsed:, offset 227, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 229, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 231, len 4, h: code_length: 0000002b - // . . . + - 00 00 00 2b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 35, h: 0001: lookupswitch -00000001: 0024 +0000000a: 0026 +0000000f: 0026 default: 0029 - // . . . . . . ( . . . . . . . . . . . # . . . . . . . % . . . . . . . % -//@mod ab 00 00 00 00 00 28 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 25 - ab 01 00 00 00 00 28 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 25 - // parsed:, offset 36, len 1, h: 0024: iconst_2 // #+02 - // . - 05 - // parsed:, offset 37, len 1, h: 0025: ireturn - // . - ac - // parsed:, offset 38, len 2, h: 0026: bipush #+14 - // . . - 10 14 - // parsed:, offset 40, len 1, h: 0028: ireturn - // . - ac - // parsed:, offset 41, len 1, h: 0029: iconst_m1 // #-01 - // . - 02 - // parsed:, offset 42, len 1, h: 002a: ireturn - // . - ac - // parsed:, offset 278, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 280, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 282, len 0, h: end attributes[0] -// parsed:, offset 282, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 282, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 284, len 0, h: attributes[0]: - // parsed:, offset 284, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 286, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 290, len 2, h: source: utf8{"T_lookupswitch_7.java"} - // . . - 00 09 -// parsed:, offset 292, len 0, h: end attributes[0] -// parsed:, offset 292, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.j deleted file mode 100644 index 5dfd4df1542362b1fc1292c8e3f78bb6a0afc2c0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_7.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.java deleted file mode 100644 index 105db5ed1987d0fe83bcb9dc4636b6a659064943..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_7.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_7 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.cfh b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.cfh deleted file mode 100644 index b03b95cfeb4c872c5dd2ee9281f068eb09d80faa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0a 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 3, h: 0005: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_8} - // . . . - 07 00 0b - // parsed:, offset 59, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 65, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 09 - // parsed:, offset 70, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 77, len 6, h: 0009: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 83, len 3, h: 000a: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 86, len 53, h: 000b: utf8{"dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8"} - // . . 2 d x c / j u n i t / o p c o d e s / l o o k u p s w i t c h / j m / T _ l o o k u p s w i t c h _ 8 - 01 00 32 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 38 - // parsed:, offset 139, len 24, h: 000c: utf8{"T_lookupswitch_8.java"} - // . . . T _ l o o k u p s w i t c h _ 8 . j a v a - 01 00 15 54 5f 6c 6f 6f 6b 75 70 73 77 69 74 63 68 5f 38 2e 6a 61 76 61 - // parsed:, offset 163, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 170, len 0, h: end constant_pool -// parsed:, offset 170, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 172, len 2, h: this_class: type{dxc.junit.opcodes.lookupswitch.jm.T_lookupswitch_8} -// . . - 00 05 -// parsed:, offset 174, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0a -// parsed:, offset 176, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 178, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 180, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 182, len:110,desc: ()V -// parsed:, offset 182, len 0, h: methods[0]: - // parsed:, offset 182, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 184, len 2, h: name: - // . . - 00 04 - // parsed:, offset 186, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 188, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 190, len 0, h: attributes[0]: - // parsed:, offset 190, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 192, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 196, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 198, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 200, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 209, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 211, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 213, len 0, h: end attributes[0] -// parsed:, offset 213, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 213, len:79,desc: (I)I -// parsed:, offset 213, len 0, h: methods[1]: - // parsed:, offset 213, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 215, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 217, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 219, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 221, len 0, h: attributes[0]: - // parsed:, offset 221, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 223, len 4, h: length: 00000037 - // . . . 7 - 00 00 00 37 - // parsed:, offset 227, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 229, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 231, len 4, h: code_length: 0000002b - // . . . + - 00 00 00 2b - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 35, h: 0001: lookupswitch -00000001: 0024 +0000000a: 0026 +0000000f: 0026 default: 0029 - // . . . . . . ( . . . . . . . . . . . # . . . . . . . % . . . . . . . % -//@mod ab 00 00 00 00 00 28 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0a 00 00 00 25 00 00 00 0f 00 00 00 25 - ab 00 00 00 00 00 28 00 00 00 03 ff ff ff ff 00 00 00 23 00 00 00 0f 00 00 00 25 00 00 00 0a 00 00 00 25 - // parsed:, offset 36, len 1, h: 0024: iconst_2 // #+02 - // . - 05 - // parsed:, offset 37, len 1, h: 0025: ireturn - // . - ac - // parsed:, offset 38, len 2, h: 0026: bipush #+14 - // . . - 10 14 - // parsed:, offset 40, len 1, h: 0028: ireturn - // . - ac - // parsed:, offset 41, len 1, h: 0029: iconst_m1 // #-01 - // . - 02 - // parsed:, offset 42, len 1, h: 002a: ireturn - // . - ac - // parsed:, offset 278, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 280, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 282, len 0, h: end attributes[0] -// parsed:, offset 282, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 282, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 284, len 0, h: attributes[0]: - // parsed:, offset 284, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 286, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 290, len 2, h: source: utf8{"T_lookupswitch_8.java"} - // . . - 00 0c -// parsed:, offset 292, len 0, h: end attributes[0] -// parsed:, offset 292, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.j deleted file mode 100644 index 9213d500e4c32ba8e57943b3fb3cfb5d8eadf0ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_8.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.java deleted file mode 100644 index 13a125537f402a86051e8a534eae053d851aaa4d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_8.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_8 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_9.j b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_9.j deleted file mode 100644 index 93590252a4415f0ceb8eb699867bab41bd0471bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_9.j +++ /dev/null @@ -1,53 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lookupswitch_9.java -.class public dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - aload_0 - lookupswitch - -1 : Label0 - 10 : Label1 - 15 : Label1 - default: Label3 - - Label0: -.line 8 - iconst_2 - ireturn - - Label1: -.line 11 - bipush 20 - ireturn - - Label3: -.line 13 - iconst_m1 - - Label5: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_9.java b/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_9.java deleted file mode 100644 index e6dca8374a9474940d3bb9393f61fad48bd85ed9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lookupswitch/jm/T_lookupswitch_9.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lookupswitch.jm; - -public class T_lookupswitch_9 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 10: - case 15: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/Test_lor.java b/tools/dx-tests/src/dxc/junit/opcodes/lor/Test_lor.java deleted file mode 100644 index 6c3975445ba3743d284832cededc6f2fb456e9be..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/Test_lor.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lor; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lor.jm.T_lor_1; - -public class Test_lor extends DxTestCase { - - /** - * @title Arguments = 123456789121l, 2l - */ - public void testN1() { - T_lor_1 t = new T_lor_1(); - assertEquals(123456789123l, t.run(123456789121l, 2l)); - } - - /** - * @title Arguments = 0xffffffffffffff8l, 0xffffffffffffff1l - */ - public void testN2() { - T_lor_1 t = new T_lor_1(); - assertEquals(0xffffffffffffff9l, t.run(0xffffffffffffff8l, - 0xffffffffffffff1l)); - } - - /** - * @title Arguments = 0xabcdefabcdef, -1 - */ - public void testN3() { - T_lor_1 t = new T_lor_1(); - assertEquals(-1l, t.run(0xabcdefabcdefl, -1l)); - } - - /** - * @title Arguments = 0, -1 - */ - public void testB1() { - T_lor_1 t = new T_lor_1(); - assertEquals(-1l, t.run(0l, -1l)); - } - - /** - * @title Arguments = Long.MAX_VALUE, Long.MIN_VALUE - */ - public void testB2() { - T_lor_1 t = new T_lor_1(); - assertEquals(-1l, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lor.jm.T_lor_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & long - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lor.jm.T_lor_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int & long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lor.jm.T_lor_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float & long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lor.jm.T_lor_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lor.jm.T_lor_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_1.j deleted file mode 100644 index b2bf3b67c133c875b19dceb4bdbf7bdfc920a1ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lor_1.java -.class public dxc/junit/opcodes/lor/jm/T_lor_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - lor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_1.java deleted file mode 100644 index ca5c203f5553a89f4d65f85d7544d45359533174..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lor.jm; - -public class T_lor_1 { - - public long run(long a, long b) { - return a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_2.j deleted file mode 100644 index f706ad63d5938bd227f3b05d9dbbdb9b51ea1e4c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lor_2.java -.class public dxc/junit/opcodes/lor/jm/T_lor_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - -; lload_1 - lload_3 - lor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_2.java deleted file mode 100644 index 9124f1041d1f7cc7027dcc3357b53db6580c96d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lor.jm; - -public class T_lor_2 { - - public long run(long a, long b) { - return a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_3.j deleted file mode 100644 index da974e4063e6bd6c1222f27ea033b94933ebaab3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lor_3.java -.class public dxc/junit/opcodes/lor/jm/T_lor_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DJ)J - .limit stack 4 - .limit locals 5 - - dload_1 - lload_3 - lor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_3.java deleted file mode 100644 index 99cf176faa86bbbe8d444d28b98a982878567d1f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lor.jm; - -public class T_lor_3 { - - public long run(double a, long b) { - return (long)a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_4.j deleted file mode 100644 index b60b092693caaa6d48987164a7b98a12cf153cc0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lor_4.java -.class public dxc/junit/opcodes/lor/jm/T_lor_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(IJ)J - .limit stack 4 - .limit locals 4 - - iload_1 - lload_2 - lor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_4.java deleted file mode 100644 index e37f8f675e8f758fd25d6b6292675bfb6f2b3541..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lor.jm; - -public class T_lor_4 { - - public long run(int a, long b) { - return a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_5.j deleted file mode 100644 index 62376b9f095f400ba298f07801e21afd6793d506..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lor_5.java -.class public dxc/junit/opcodes/lor/jm/T_lor_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FJ)J - .limit stack 4 - .limit locals 4 - - fload_1 - lload_2 - lor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_5.java deleted file mode 100644 index db495352f5587ab678a3dbb4130d6594109722e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lor.jm; - -public class T_lor_5 { - - public long run(float a, long b) { - return (long)a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_6.j deleted file mode 100644 index c03fcc64c42eb520f3686f0ef5de8526ab5eb2e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lor_6.java -.class public dxc/junit/opcodes/lor/jm/T_lor_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - aload_0 - lload_3 - lor - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_6.java deleted file mode 100644 index 8918dd6180b555de5ee75de50837433e5b578f12..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lor/jm/T_lor_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lor.jm; - -public class T_lor_6 { - - public long run(long a, long b) { - return a | b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/Test_lrem.java b/tools/dx-tests/src/dxc/junit/opcodes/lrem/Test_lrem.java deleted file mode 100644 index 1c9346dde262a7f5927f4879f8c207792935b764..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/Test_lrem.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lrem; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lrem.jm.T_lrem_1; - -public class Test_lrem extends DxTestCase { - - /** - * @title Arguments = 10000000000l, 4000000000l - */ - public void testN1() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(2000000000l, t.run(10000000000l, 4000000000l)); - } - - /** - * @title Arguments = 1234567890123l, 123456789l - */ - public void testN2() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(123l, t.run(1234567890123l, 123456789l)); - } - - /** - * @title Dividend = 0 - */ - public void testN3() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(0l, t.run(0l, 1234567890123l)); - } - - /** - * @title Dividend is negative - */ - public void testN4() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(-2000000000l, t.run(-10000000000l, 4000000000l)); - } - - /** - * @title Divisor is negative - */ - public void testN5() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(2000000000l, t.run(10000000000l, -4000000000l)); - } - - /** - * @title Both Dividend and divisor are negative - */ - public void testN6() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(-2000000000l, t.run(-10000000000l, -4000000000l)); - } - - /** - * @title Arguments = Long.MIN_VALUE, -1l - */ - public void testB1() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(0l, t.run(Long.MIN_VALUE, -1l)); - } - /** - * @title Arguments = Long.MIN_VALUE, 1l - */ - public void testB2() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(0l, t.run(Long.MIN_VALUE, 1l)); - } - /** - * @title Arguments = Long.MAX_VALUE, 1l - */ - public void testB3() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(0l, t.run(Long.MAX_VALUE, 1l)); - } - /** - * @title Arguments = Long.MIN_VALUE, Long.MAX_VALUE - */ - public void testB4() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(-1l, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); - } - /** - * @title Arguments = 1l, Long.MAX_VALUE - */ - public void testB5() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(1l, t.run(1l, Long.MAX_VALUE)); - } - /** - * @title Arguments = 1l, Long.MIN_VALUE - */ - public void testB6() { - T_lrem_1 t = new T_lrem_1(); - assertEquals(1l, t.run(1l, Long.MIN_VALUE)); - } - - /** - * @title Divisor is 0 - */ - public void testE1() { - T_lrem_1 t = new T_lrem_1(); - try { - t.run(1234567890123l, 0l); - fail("expected ArithmeticException"); - } catch (ArithmeticException ae) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lrem.jm.T_lrem_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lrem.jm.T_lrem_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int / long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lrem.jm.T_lrem_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long / float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lrem.jm.T_lrem_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference / float - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lrem.jm.T_lrem_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_1.j deleted file mode 100644 index c675add9f5ef707cdc929c125cd933df83e263f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lrem_1.java -.class public dxc/junit/opcodes/lrem/jm/T_lrem_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - lrem - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_1.java deleted file mode 100644 index d4a6114f1437b987a95970b97209f2912f5aa9a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lrem.jm; - -public class T_lrem_1 { - - public long run(long a, long b) { - return a % b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_2.j deleted file mode 100644 index 86126043a6a8aae113471319da1af2078ecbc7fb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lrem_2.java -.class public dxc/junit/opcodes/lrem/jm/T_lrem_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - -; lload_1 - lload_3 - lrem - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_2.java deleted file mode 100644 index 4f9a924d8db7a83a2602119e41342e9e89b94202..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lrem.jm; - -public class T_lrem_2 { - - public long run(long a, long b) { - return a % b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_3.j deleted file mode 100644 index 6b516056b0fa6920ad6e375a071e601dc6ecb628..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lrem_3.java -.class public dxc/junit/opcodes/lrem/jm/T_lrem_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JD)J - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 - lrem - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_3.java deleted file mode 100644 index 5b6d8dfb9e7f92fd66a1deab5cbd28d8a94bd8b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lrem.jm; - -public class T_lrem_3 { - - public long run(long a, double b) { - return (long) (a % b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_4.j deleted file mode 100644 index 3fcffc59c18182d137cd574247c8322e81f3caed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lrem_4.java -.class public dxc/junit/opcodes/lrem/jm/T_lrem_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(IJ)J - .limit stack 4 - .limit locals 4 - - iload_1 - lload_2 - lrem - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_4.java deleted file mode 100644 index 6e5990d81b986736e4b71f0beae6f6f847db2c79..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lrem.jm; - -public class T_lrem_4 { - - public long run(int a, long b) { - return a % b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_5.j deleted file mode 100644 index 10841d5c34b065920c3b742ef10afbd0a803bad7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lrem_5.java -.class public dxc/junit/opcodes/lrem/jm/T_lrem_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JF)J - .limit stack 3 - .limit locals 4 - - lload_1 - fload_3 - lrem - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_5.java deleted file mode 100644 index e3267dd876cf723dbf5a0cbecc9d3ad47e94e254..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lrem.jm; - -public class T_lrem_5 { - - public long run(long a, float b) { - return (long) (a % b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_6.j deleted file mode 100644 index 6b329d61425aa70148641c195fb2aaeed4ddc33b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lrem_6.java -.class public dxc/junit/opcodes/lrem/jm/T_lrem_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - aload_0 - lload_3 - lrem - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_6.java deleted file mode 100644 index b9d3b17d146023b6a1fab48eaef326114c6d7992..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lrem/jm/T_lrem_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lrem.jm; - -public class T_lrem_6 { - - public long run(long a, long b) { - return a % b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/Test_lreturn.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/Test_lreturn.java deleted file mode 100644 index 805c4a7d898a633c28807eefa8eab3a27da73c62..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/Test_lreturn.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lreturn.jm.T_lreturn_1; -import dxc.junit.opcodes.lreturn.jm.T_lreturn_6; -import dxc.junit.opcodes.lreturn.jm.T_lreturn_7; -import dxc.junit.opcodes.lreturn.jm.T_lreturn_8; -import dxc.junit.opcodes.lreturn.jm.T_lreturn_9; - -public class Test_lreturn extends DxTestCase { - - /** - * @title simple - */ - public void testN1() { - T_lreturn_1 t = new T_lreturn_1(); - assertEquals(12345612345l, t.run()); - } - - /** - * @title check that frames are discarded and reinstananted correctly - */ - public void testN2() { - T_lreturn_6 t = new T_lreturn_6(); - assertEquals(0l, t.run()); - } - - /** - * @title check that monitor is released by lreturn - */ - public void testN3() { - assertTrue(T_lreturn_7.execute()); - } - - - /** - * @title Method is synchronized but thread is not monitor owner - */ - public void testE1() { - T_lreturn_8 t = new T_lreturn_8(); - try { - assertTrue(t.run()); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title Lock structural rule 1 is violated - */ -// Dalvik currently does not support structured locks, so we remove this test. -// public void testE2() { -// T_lreturn_9 t = new T_lreturn_9(); -// try { -// assertEquals(1d, t.run()); -// // the JVM spec says that it is optional to implement the structural -// // lock rules, see JVM spec 8.13 and monitorenter/exit opcodes. -// System.out.print("dvmvfe:"); -// //fail("expected IllegalMonitorStateException"); -// } catch (IllegalMonitorStateException imse) { -// // expected -// } -// } - - /** - * @constraint 4.8.2.14 - * @title method's return type - void - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lreturn.jm.T_lreturn_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lreturn.jm.T_lreturn_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lreturn.jm.T_lreturn_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lreturn.jm.T_lreturn_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lreturn.jm.T_lreturn_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - reference - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.lreturn.jm.T_lreturn_11"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_1.j deleted file mode 100644 index 1049bf35142c95f2ac54df3a08cedfa320cf00e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_1.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_1.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - - ldc2_w 12345612345 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_1.java deleted file mode 100644 index 5fb565d63eaefe1e2c7183ca45c3641d0fba23f1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_1 { - - public long run() { - return 12345612345l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_10.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_10.j deleted file mode 100644 index d8553693413031e00dfa23805b0dea683fd74f4b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_10.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_10.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_10 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private static test()J - .limit stack 2 - .limit locals 0 - - lconst_1 - lreturn - -.end method - - -.method public run()J - .limit stack 0 - .limit locals 1 - - invokestatic dxc/junit/opcodes/lreturn/jm/T_lreturn_10/test()J - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_10.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_10.java deleted file mode 100644 index 5949439b032bc9e47d3db359bfc8fdc5def9a19b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_10.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_10 { - - private static long test() { - return 1l; - } - - public long run() { - return test(); - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_11.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_11.j deleted file mode 100644 index 68dfcd4081a1bb0bbc7319cca750e24160672f9e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_11.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_11.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()J - .limit stack 2 - .limit locals 1 - - aload_0 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_11.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_11.java deleted file mode 100644 index 0b1c976705ad4030c9836adf992535218e93e518..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_11 { - - public long run() { - return 0l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_2.j deleted file mode 100644 index 117d3fcff35d40086c1eb8ce283eff2df1dac38e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_2.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 1 - - lconst_0 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_2.java deleted file mode 100644 index 778ee8f53d72dfc1657cce92a8f537b4ccdb5ff9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_2 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_3.j deleted file mode 100644 index b9a758c7d432a3ded48bcca129ca8c0ca35612f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_3.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_3 -.super java/lang/Object - - -.method public ()V - aload_0 - return -.end method - - -.method public run()F - .limit stack 2 - .limit locals 1 - - lconst_0 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_3.java deleted file mode 100644 index 1708e8a49b009e85ff736c137a68eb8ad14ececa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_3 { - - - public long run() { - return 0l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_4.j deleted file mode 100644 index 1776541f8dc83e8a73289f575d8b96a5050a5dc0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_4.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - .limit locals 1 - - ;lconst_0 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_4.java deleted file mode 100644 index c7ad19cddd6fada15fc06f9651d3d92bc2a74c39..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_4 { - - public long run() { - return 0l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_5.j deleted file mode 100644 index 16c1340dd0b7e0fcd3faec79ad27b103ae315de2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_5.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_5.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - .limit locals 1 - - fconst_0 - lreturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_5.java deleted file mode 100644 index c1cb5262fc12e96296b139244f6763d074878ec4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_5 { - - public long run() { - return 0l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_6.j deleted file mode 100644 index 6c7fed74ff559b1f2edf3a4c6a98d3176852f1ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_6.j +++ /dev/null @@ -1,93 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_6.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit locals 12 - .limit stack 6 - - lconst_1 - lstore_1 - ldc2_w 22222222222 - lstore_3 - ldc2_w 33333333333 - lstore 5 - - ldc2_w 44444444444 - - invokestatic dxc/junit/opcodes/lreturn/jm/T_lreturn_6/test()J - - ldc2_w 4444444444444 - lcmp - ifne Label1 - - ldc2_w 44444444444 - lcmp - ifne Label0 - - lload_1 - lconst_1 - lcmp - ifne Label0 - - lload_3 - ldc2_w 22222222222 - lcmp - ifne Label0 - - lload 5 - ldc2_w 33333333333 - lcmp - ifne Label0 - - ldc2_w 12345612345 - lreturn - -Label1: - pop2 -Label0: - lconst_0 - lreturn - -.end method - - -.method private static test()J - .limit locals 8 - .limit stack 4 - - ldc2_w 11111111111 - lstore_1 - ldc2_w 22222222222 - lstore_3 - ldc2_w 33333333333 - lstore 5 - - ldc2_w 55555555555 - - ldc2_w 44444444444 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_6.java deleted file mode 100644 index 246176038c127fd633e6b38f5c6c5fe5e7253474..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_6.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_6 { - - public long run() { - return 12345612345l; - } - - private static long test() { - long a = 11111111111l; - long b = 22222222222l; - long c = 33333333333l; - return 44444444444l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_7.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_7.j deleted file mode 100644 index 70e857c51034c50fb7d7b867112d1a52b3e8b2aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_7.j +++ /dev/null @@ -1,164 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_7.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_7 -.super java/lang/Object -.implements java/lang/Runnable - -.field value J -.field failed Z - -.method public ()V - .limit stack 3 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - lconst_0 - putfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.value J - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.failed Z - - return - -.end method - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label4: - iload_1 - sipush 1000 - if_icmpge Label3 - - aload_0 - invokespecial dxc/junit/opcodes/lreturn/jm/T_lreturn_7/test()J - pop2 - - iinc 1 1 - - goto Label4 - - -Label3: - return - -.end method - - - -.method private synchronized test()J - .limit stack 5 - .limit locals 3 - -.line 16 - aload_0 - dup - getfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.value J - dup2 - lstore_1 - - lconst_1 - ladd - putfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.value J - - lload_1 - lconst_1 - ladd - lstore_1 - - invokestatic java/lang/Thread/yield()V - - lload_1 - aload_0 - getfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.value J - lcmp - ifeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.failed Z - -Label0: - lload_1 - lreturn -.end method - - -.method public static execute()Z - .limit stack 5 - .limit locals 4 - - new dxc/junit/opcodes/lreturn/jm/T_lreturn_7 - dup - invokespecial dxc/junit/opcodes/lreturn/jm/T_lreturn_7/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: ; exception handler - astore_3 - goto Label3 - -Label0: - aload_0 - getfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.value J - ldc2_w 2000 - lcmp - ifne Label3 - - aload_0 - getfield dxc.junit.opcodes.lreturn.jm.T_lreturn_7.failed Z - ifne Label3 - - iconst_1 - ireturn - -Label3: - iconst_0 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_7.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_7.java deleted file mode 100644 index fc97b6e3adfe33f43b57f6bc1cb931ee84c6e980..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_7.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -import dxc.junit.opcodes.lreturn.jm.T_lreturn_7; - -public class T_lreturn_7 implements Runnable { - public final static int CNT = 1000; - long value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized long test() { - value++; - long c = value; - Thread.yield(); - if(c != value) - failed = true; - return c; - } - - public static boolean execute() { - T_lreturn_7 test = new T_lreturn_7(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_8.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_8.j deleted file mode 100644 index 6b7597c09c8cc08f005a0c0cd5ef56e8a618d9c7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_8.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_8.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_8 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private synchronized test()J - .limit stack 2 - - aload_0 - monitorexit - lconst_0 - lreturn -.end method - - -.method public run()Z - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/lreturn/jm/T_lreturn_8/test()J - pop2 - - iconst_1 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_8.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_8.java deleted file mode 100644 index 1653cb1745a3de15f0ccebab92a78b59cd9f90b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_8.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_8 { - - private synchronized long test() { - return 0l; - } - - public boolean run() { - test(); - return true; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_9.j b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_9.j deleted file mode 100644 index 17dfe86a2be9d550d7d2b87181412af536ad5e2c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_9.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lreturn_9.java -.class public dxc/junit/opcodes/lreturn/jm/T_lreturn_9 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()J - .limit stack 2 - .limit locals 1 - - aload_0 - monitorenter - - lconst_1 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_9.java b/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_9.java deleted file mode 100644 index df514b49e37309d62c1756b9fa7a27a17ddee2b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lreturn/jm/T_lreturn_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lreturn.jm; - -public class T_lreturn_9 { - - public long run() { - return 1l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/Test_lshl.java b/tools/dx-tests/src/dxc/junit/opcodes/lshl/Test_lshl.java deleted file mode 100644 index df45a0317cd0bfbdf0aaebf94686a8ef39486bf6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/Test_lshl.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshl; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lshl.jm.T_lshl_1; - -public class Test_lshl extends DxTestCase { - - /** - * @title Arguments = 5000000000l, 3 - */ - public void testN1() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(40000000000l, t.run(5000000000l, 3)); - } - - /** - * @title Arguments = 5000000000l, 1 - */ - public void testN2() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(10000000000l, t.run(5000000000l, 1)); - } - - /** - * @title Arguments = -5000000000l, 1 - */ - public void testN3() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(-10000000000l, t.run(-5000000000l, 1)); - } - - /** - * @title Arguments = 1, -1 - */ - public void testN4() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(0x8000000000000000l, t.run(1l, -1)); - } - - /** - * @title Verify that shift distance is actually in range 0 to 64. - */ - public void testN5() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(130l, t.run(65l, 65)); - } - - /** - * @title Arguments = 0, -1 - */ - public void testB1() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(0, t.run(0, -1)); - } - - /** - * @title Arguments = 1, 0 - */ - public void testB2() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(1, t.run(1, 0)); - } - - /** - * @title Arguments = Long.MAX_VALUE, 1 - */ - public void testB3() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(0xfffffffe, t.run(Long.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Long.MIN_VALUE, 1 - */ - public void testB4() { - T_lshl_1 t = new T_lshl_1(); - assertEquals(0l, t.run(Long.MIN_VALUE, 1)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lshl.jm.T_lshl_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lshl.jm.T_lshl_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lshl.jm.T_lshl_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float & int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lshl.jm.T_lshl_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lshl.jm.T_lshl_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_1.j deleted file mode 100644 index 47ea4ffdd14057c61b18ab6e10394a5fe4cc32e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshl_1.java -.class public dxc/junit/opcodes/lshl/jm/T_lshl_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - - lload_1 - iload_3 - lshl - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_1.java deleted file mode 100644 index 5855d09c9fcfa4178d65da5479be0dd53e46ae68..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshl.jm; - -public class T_lshl_1 { - - public long run(long a, int b) { - return a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_2.j deleted file mode 100644 index cb0a00c63a0fd6872aee11423b43d8119d27db2d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshl_2.java -.class public dxc/junit/opcodes/lshl/jm/T_lshl_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - -; lload_1 - iload_3 - lshl - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_2.java deleted file mode 100644 index 42d89f025564dbd757fe83201395b3a66e5de282..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshl.jm; - -public class T_lshl_2 { - - public long run(long a, int b) { - return a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_3.j deleted file mode 100644 index a5d520054e950132d459c5d59744df00e6a5ade9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshl_3.java -.class public dxc/junit/opcodes/lshl/jm/T_lshl_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DI)J - .limit stack 3 - .limit locals 4 - - dload_1 - iload_3 - lshl - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_3.java deleted file mode 100644 index 0de168676c296ae3b81f46b8fe000f621721316d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshl.jm; - -public class T_lshl_3 { - - public long run(double a, int b) { - return (long)a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_4.j deleted file mode 100644 index 6ff06c7861dff048e4109f9487f7757e9fc9006b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshl_4.java -.class public dxc/junit/opcodes/lshl/jm/T_lshl_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)J - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - lshl - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_4.java deleted file mode 100644 index a7a4fcf94a92fc630d327416353a76f98c435099..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshl.jm; - -public class T_lshl_4 { - - public long run(int a, int b) { - return a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_5.j deleted file mode 100644 index 6461614426eaad80ab76b1e456c934ba0203eafe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshl_5.java -.class public dxc/junit/opcodes/lshl/jm/T_lshl_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FI)J - .limit stack 3 - .limit locals 3 - - fload_1 - iload_2 - lshl - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_5.java deleted file mode 100644 index f48ad7d810557900849ef881e73841d49a4f7213..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshl.jm; - -public class T_lshl_5 { - - public long run(float a, int b) { - return (long)a << b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_6.j deleted file mode 100644 index 6b3e135f9b4ca7e225c2b47cd276575241d04c07..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshl_6.java -.class public dxc/junit/opcodes/lshl/jm/T_lshl_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - - aload_0 - iload_3 - lshl - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_6.java deleted file mode 100644 index b27e15603a2671e3f5d04b184e089531b91efdd1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshl/jm/T_lshl_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshl.jm; - -public class T_lshl_6 { - - public long run(long a, int b) { - return a << b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/Test_lshr.java b/tools/dx-tests/src/dxc/junit/opcodes/lshr/Test_lshr.java deleted file mode 100644 index 5f980839f3d7496a451867718416d31beaa11b5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/Test_lshr.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshr; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lshr.jm.T_lshr_1; - -public class Test_lshr extends DxTestCase { - - /** - * @title Arguments = 40000000000l, 3 - */ - public void testN1() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(5000000000l, t.run(40000000000l, 3)); - } - - /** - * @title Arguments = 40000000000l, 1 - */ - public void testN2() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(20000000000l, t.run(40000000000l, 1)); - } - - /** - * @title Arguments = -40000000000l, 1 - */ - public void testN3() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(-20000000000l, t.run(-40000000000l, 1)); - } - - /** - * @title Arguments = 1, -1 - */ - public void testN4() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(0l, t.run(1l, -1)); - } - - /** - * @title Verify that shift distance is actually in range 0 to 64. - */ - public void testN5() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(32, t.run(65l, 65)); - } - - /** - * @title Arguments = 0, -1 - */ - public void testB1() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(0l, t.run(0l, -1)); - } - - /** - * @title Arguments = 1, 0 - */ - public void testB2() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(1l, t.run(1l, 0)); - } - - /** - * @title Arguments = Long.MAX_VALUE, 1 - */ - public void testB3() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(0x3FFFFFFFFFFFFFFFl, t.run(Long.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Long.MIN_VALUE, 1 - */ - public void testB4() { - T_lshr_1 t = new T_lshr_1(); - assertEquals(0xc000000000000000l, t.run(Long.MIN_VALUE, 1)); - } - - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lshr.jm.T_lshr_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lshr.jm.T_lshr_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lshr.jm.T_lshr_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float & int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lshr.jm.T_lshr_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lshr.jm.T_lshr_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_1.j deleted file mode 100644 index b21e884559781c65f0f3c1d672d1728b0dc95e12..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshr_1.java -.class public dxc/junit/opcodes/lshr/jm/T_lshr_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - - lload_1 - iload_3 - lshr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_1.java deleted file mode 100644 index 45f41133e1fd6db5ac08c564715c6a9fd82a6ece..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshr.jm; - -public class T_lshr_1 { - - public long run(long a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_2.j deleted file mode 100644 index 21a59a71bf6cef4cc7093e7ba6dc82c5518ff254..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshr_2.java -.class public dxc/junit/opcodes/lshr/jm/T_lshr_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - -; lload_1 - iload_3 - lshr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_2.java deleted file mode 100644 index 6c0243b1a91a5f290b20a5ac76dae0e0564a1b23..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshr.jm; - -public class T_lshr_2 { - - public long run(long a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_3.j deleted file mode 100644 index 3edefd32ac25e75466a45374c5b66c839327de9d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshr_3.java -.class public dxc/junit/opcodes/lshr/jm/T_lshr_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DI)J - .limit stack 3 - .limit locals 4 - - dload_1 - iload_3 - lshr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_3.java deleted file mode 100644 index 8a2132dab3ce64c2fe16c8120524ff66318b0f1c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshr.jm; - -public class T_lshr_3 { - - public long run(double a, int b) { - return (long)a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_4.j deleted file mode 100644 index 58349f5045c2e3ca43f6139aaa5e6b48fef0a945..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshr_4.java -.class public dxc/junit/opcodes/lshr/jm/T_lshr_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)J - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - lshr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_4.java deleted file mode 100644 index 322a193bab591b6157965cd201d2dc9f8bb624ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshr.jm; - -public class T_lshr_4 { - - public long run(int a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_5.j deleted file mode 100644 index 179e48e98bb63326b533203873ab56bc8f3afae4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshr_5.java -.class public dxc/junit/opcodes/lshr/jm/T_lshr_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FI)J - .limit stack 3 - .limit locals 3 - - fload_1 - iload_2 - lshr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_5.java deleted file mode 100644 index 0f97441c2a6d6fe229ecd18e53dbf172626a8647..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshr.jm; - -public class T_lshr_5 { - - public long run(float a, int b) { - return (long)a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_6.j deleted file mode 100644 index 33c999183380d8e105dc2bac00abe3fc023a7a25..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lshr_6.java -.class public dxc/junit/opcodes/lshr/jm/T_lshr_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - - aload_0 - iload_3 - lshr - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_6.java deleted file mode 100644 index 31d5f9efb818b15dbdd385168fa7bf9a21faaf3a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lshr/jm/T_lshr_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lshr.jm; - -public class T_lshr_6 { - - public long run(long a, int b) { - return a >> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/Test_lstore.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/Test_lstore.java deleted file mode 100644 index 8d5ba1aa472c3c79bcc6a12dafe2de1f10df0859..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/Test_lstore.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lstore.jm.T_lstore_1; -import dxc.junit.opcodes.lstore.jm.T_lstore_1_w; -import dxc.junit.opcodes.lstore.jm.T_lstore_2; -import dxc.junit.opcodes.lstore.jm.T_lstore_2_w; - -public class Test_lstore extends DxTestCase { - - /* - * NORMAL ISTORE VERSION - */ - - /** - * @title lstore 0 - */ - public void testN1() { - assertEquals(1234567890123l, T_lstore_1.run()); - } - - /** - * @title lstore 255 - */ - public void testN2() { - assertEquals(1234567890123l, T_lstore_2.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /* - * WIDE ISTORE VERSION - */ - - /** - * @title lstore_w 0 - */ - public void testN3() { - assertEquals(1234567890123l, T_lstore_1_w.run()); - } - - /** - * @title lstore 257 - */ - public void testN4() { - assertEquals(1234567890123l, T_lstore_2_w.run()); - } - - /** - * @constraint 4.8.1.25 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_5_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.lstore.jm.T_lstore_6_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1.j deleted file mode 100644 index 02f5c5a495565ee90e6613e4d0e61414a4afca9e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 2 - - ldc2_w 1234567890123 - - lstore 0 - ldc2_w 4 - lload 0 - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1.java deleted file mode 100644 index 7c1c4b77726ca0a54dd9cf6afbdc7b9ec4a224b9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1_w.j deleted file mode 100644 index 24666bb6f1376c3e5534a2bed51210d79bbef8fa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1_w.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1_w.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_1_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 2 - - ldc2_w 1234567890123 - lstore_w 0 - ldc2_w 4 - lload 0 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1_w.java deleted file mode 100644 index 416a4e1a9bdaa144185cd925f79c7adc6c985d9b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_1_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_1_w { - - public static long run() { - return 1234567890123l; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2.j deleted file mode 100644 index b0501e7bd932c23a4656e744a9c81802c3fc4a8d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 300 - - ldc2_w 1234567890123 - lstore 255 - ldc2_w 4 - lload 255 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2.java deleted file mode 100644 index 877fd84e8aa3b3ce375ca0f87cae47252eb6e2ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_2 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2_w.j deleted file mode 100644 index 294ea0a46e6bc55c3d2bfd1797420fd8727ccb2e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2_w.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2_w.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_2_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 300 - - ldc2_w 1234567890123 - lstore_w 257 - ldc2_w 4 - lload 257 - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2_w.java deleted file mode 100644 index 369e5efd9b52ae9a9cc81a3a6a266c1696dd09ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_2_w.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_2_w { - - public static long run() { - return 1234567890123l; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3.j deleted file mode 100644 index a3e1c912a8fca80141c12625ca50f184d2390f92..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lstore 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3.java deleted file mode 100644 index a26dc2487a55c836f77a58a3a254a93b7bfb0b76..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3_w.j deleted file mode 100644 index 782a123e25e9b5a37b9e72ebcc2f97675ba12e2f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3_w.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3_w.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_3_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lstore_w 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3_w.java deleted file mode 100644 index 717415a0bce987b35d4998459fd31a7240730a09..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_3_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_3_w { - public static void run() { - - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4.j deleted file mode 100644 index 15529ed85a3dd61731316583d4081a483914c850..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_4.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - lstore 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4.java deleted file mode 100644 index 566f2201721b9bf6fb014e7b40569c08aa0110ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_4 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4_w.j deleted file mode 100644 index 54bb0aaeaded0195048ed075421ad882a7b142b5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_4_w.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_4_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - lstore_w 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4_w.java deleted file mode 100644 index cb56b273a7e295f3311d31e46d1d1768d716483f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_4_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_4_w { - public static void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5.j deleted file mode 100644 index f4017d789bd97030aaee514ff688c3896d6f5245..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_5.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_1 - lstore 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5.java deleted file mode 100644 index ad183ea5029902610b3055dc905f929a26192299..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_5 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5_w.j deleted file mode 100644 index 7ada7ba8110c8b3ade04946400b301b7ea156acf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_5_w.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_5_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_1 - lstore_w 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5_w.java deleted file mode 100644 index 1a9bbe7619474bfefa8dd6666103fcb66cdf4811..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_5_w.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_5_w { - public static void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6.j deleted file mode 100644 index 960f6a4e627986c672c813579e19dc13c3d33d1a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_6.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - lstore 0 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6.java deleted file mode 100644 index 24173183c52f3c5cdf0155d1e26ee3fc5de2f70d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_6 { - - public static void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6_w.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6_w.j deleted file mode 100644 index 4f32a724ce4d1d094a91d125ba6e7d7dd950081b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6_w.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_6_w.java -.class public dxc/junit/opcodes/lstore/jm/T_lstore_6_w -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - lstore_w 0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6_w.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6_w.java deleted file mode 100644 index 69a74695dc57f770a678aaf8a5067736494872a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore/jm/T_lstore_6_w.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore.jm; - -public class T_lstore_6_w { - - public static void run() { - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/Test_lstore_0.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/Test_lstore_0.java deleted file mode 100644 index 9259090fe9b74b77c64be81a5a24cfbe2cc57bae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/Test_lstore_0.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_0; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lstore_0.jm.T_lstore_0_1; -import dxc.junit.opcodes.lstore_0.jm.T_lstore_0_2; - -public class Test_lstore_0 extends DxTestCase { - - /** - * @title value of local variable at is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1234567890123l, T_lstore_0_1.run()); - } - - /** - * @title Each of the lstore_ instructions is the same as lstore with an index of - */ - public void testN2() { - assertTrue(T_lstore_0_2.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lstore_0.jm.T_lstore_0_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lstore_0.jm.T_lstore_0_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lstore_0.jm.T_lstore_0_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lstore_0.jm.T_lstore_0_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_1.j deleted file mode 100644 index e6d36c0943b253e6056defdcd808849f446c1ce3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_0_1.java -.class public dxc/junit/opcodes/lstore_0/jm/T_lstore_0_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 2 - - ldc2_w 1234567890123 - lstore_0 - ldc2_w 4 - lload_0 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_1.java deleted file mode 100644 index 3d017ea91408a870b6d8a8dd311115fbeda754d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_0.jm; - -public class T_lstore_0_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_2.j deleted file mode 100644 index f61972a05796887277816e7091054385f9b2531c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_2.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_0_2.java -.class public dxc/junit/opcodes/lstore_0/jm/T_lstore_0_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 2 - - ldc2_w 1234567890123 - lstore_0 - lload_0 - - ldc2_w 1234567890123 - lstore 0 - lload_0 - - lcmp - ifne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_2.java deleted file mode 100644 index 15fff7e3cd4aa85fe9c2c6c89e5fcaada82237ed..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_0.jm; - -public class T_lstore_0_2 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_3.j deleted file mode 100644 index 115c9d7a43a579cdd23deae19a0e6a9ef0028d64..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_0_3.java -.class public dxc/junit/opcodes/lstore_0/jm/T_lstore_0_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lstore_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_3.java deleted file mode 100644 index 78bedb4cb1a52c6047bc685455a0d3a45baeb050..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_0.jm; - -public class T_lstore_0_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_4.j deleted file mode 100644 index 212743c2c70e23866fc69ff59883a9d6da30a0e7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_0_4.java -.class public dxc/junit/opcodes/lstore_0/jm/T_lstore_0_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - lstore_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_4.java deleted file mode 100644 index 84982cb0d541108cb519ab31f9036d4a8fe1c71d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_0.jm; - -public class T_lstore_0_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_5.j deleted file mode 100644 index e8653c73436c518e95107ffe738859777d3981ff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_0_5.java -.class public dxc/junit/opcodes/lstore_0/jm/T_lstore_0_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_1 - lstore_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_5.java deleted file mode 100644 index 82e115be9e62e5d9d91032321bb85568328f009b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_0.jm; - -public class T_lstore_0_5 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_6.j deleted file mode 100644 index 6722bca2b5731d4cd354071fac1b7271e6c81970..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_0_6.java -.class public dxc/junit/opcodes/lstore_0/jm/T_lstore_0_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - lstore_0 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_6.java deleted file mode 100644 index 7a566802f69e19ca1828a7ea848bdb1affc06313..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_0/jm/T_lstore_0_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_0.jm; - -public class T_lstore_0_6 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/Test_lstore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/Test_lstore_1.java deleted file mode 100644 index 019721b52430d1f480905051aff0ff31114250a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/Test_lstore_1.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lstore_1.jm.T_lstore_1_1; -import dxc.junit.opcodes.lstore_1.jm.T_lstore_1_2; - -public class Test_lstore_1 extends DxTestCase { - - /** - * @title value of local variable at is pushed onto the operand stack - */ - public void testN1() { - assertEquals(1234567890123l, T_lstore_1_1.run()); - } - - /** - * @title each of the lstore_ instructions is the same as lstore with an index of - */ - public void testN2() { - assertTrue(T_lstore_1_2.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lstore_1.jm.T_lstore_1_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lstore_1.jm.T_lstore_1_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lstore_1.jm.T_lstore_1_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lstore_1.jm.T_lstore_1_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_1.j deleted file mode 100644 index 6da940c4d83daeea28e928950a93ae4fff9781d3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1_1.java -.class public dxc/junit/opcodes/lstore_1/jm/T_lstore_1_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore_1 - ldc2_w 4 - lload_1 - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_1.java deleted file mode 100644 index 406368da51acf121fa4487ed2372842a6be45d68..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_1.jm; - -public class T_lstore_1_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_2.j deleted file mode 100644 index cdbae7848b76a4fd5f719971dd76952ca783fef8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_2.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1_2.java -.class public dxc/junit/opcodes/lstore_1/jm/T_lstore_1_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore_1 - lload_1 - - ldc2_w 1234567890123 - lstore 1 - lload_1 - - lcmp - ifne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_2.java deleted file mode 100644 index 767fccb4bebc32ae46dde43f72712642231fd625..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_1.jm; - -public class T_lstore_1_2 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_3.j deleted file mode 100644 index 46567eb2409fc52f698056ad3f35c2733acddcc2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1_3.java -.class public dxc/junit/opcodes/lstore_1/jm/T_lstore_1_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lstore_1 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_3.java deleted file mode 100644 index 2a020470e48bc0a22067ed75d752b97121ee5e54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_1.jm; - -public class T_lstore_1_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_4.j deleted file mode 100644 index 8045824749eff8bec6c2484412e27d09179f9ec5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1_4.java -.class public dxc/junit/opcodes/lstore_1/jm/T_lstore_1_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - lstore_1 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_4.java deleted file mode 100644 index b27f43f627d15acca9f73aefd960e67fb1414e45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_1.jm; - -public class T_lstore_1_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_5.j deleted file mode 100644 index 4926c0103627006f4e19514ec619c3fe752b15bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1_5.java -.class public dxc/junit/opcodes/lstore_1/jm/T_lstore_1_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_1 - lstore_1 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_5.java deleted file mode 100644 index 380b2e6ae32019f65835b3aba0b6b368211f65e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_1.jm; - -public class T_lstore_1_5 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_6.j deleted file mode 100644 index 684aa83ced894607aa2364010958de12501dc2ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_1_6.java -.class public dxc/junit/opcodes/lstore_1/jm/T_lstore_1_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_1 - lstore_1 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_6.java deleted file mode 100644 index 22b4ec4775597fac526aa39da0ede6abb6393420..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_1/jm/T_lstore_1_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_1.jm; - -public class T_lstore_1_6 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/Test_lstore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/Test_lstore_2.java deleted file mode 100644 index e42d3f8d07aae83e716e167fe67db508626099e8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/Test_lstore_2.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lstore_2.jm.T_lstore_2_1; -import dxc.junit.opcodes.lstore_2.jm.T_lstore_2_2; - -public class Test_lstore_2 extends DxTestCase { - - /** - * @title value of local variable at is pushed onto the operand stack. - */ - public void testN1() { - assertEquals(1234567890123l, T_lstore_2_1.run()); - } - - /** - * @title each of the lstore_ instructions is the same as lstore with an index of - */ - public void testN2() { - assertTrue(T_lstore_2_2.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lstore_2.jm.T_lstore_2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lstore_2.jm.T_lstore_2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lstore_2.jm.T_lstore_2_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lstore_2.jm.T_lstore_2_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_1.j deleted file mode 100644 index 28b33912caf16c1e2c05c31c2e843e3d1f114d1a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2_1.java -.class public dxc/junit/opcodes/lstore_2/jm/T_lstore_2_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore_2 - ldc2_w 4 - lload_2 - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_1.java deleted file mode 100644 index cf0a9c6a28692a94e6bce8b115a571e63e18938f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_2.jm; - -public class T_lstore_2_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_2.j deleted file mode 100644 index 7bd36ac21d7062321a0c625cf81d8700873a9155..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_2.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2_2.java -.class public dxc/junit/opcodes/lstore_2/jm/T_lstore_2_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 4 - - ldc2_w 1234567890123 - lstore_2 - lload_2 - - ldc2_w 1234567890123 - lstore 2 - lload_2 - - lcmp - ifne Label0 - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_2.java deleted file mode 100644 index 89478078aa30267135ed7800a679a84d991fd8e7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_2.jm; - -public class T_lstore_2_2 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_3.j deleted file mode 100644 index fbd7f4267b9b14a768ee6f3d4821e87634704b08..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2_3.java -.class public dxc/junit/opcodes/lstore_2/jm/T_lstore_2_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lstore_2 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_3.java deleted file mode 100644 index ff83d99dbf043dd64aa6e09365c8bf8a35294f50..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_2.jm; - -public class T_lstore_2_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_4.j deleted file mode 100644 index d939607909adacb26cc25aa2ee19fc6100ef835c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2_4.java -.class public dxc/junit/opcodes/lstore_2/jm/T_lstore_2_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - dconst_1 - lstore_2 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_4.java deleted file mode 100644 index c9b028ee9e59b6627c3e117b906e36aa04e70a09..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_2.jm; - -public class T_lstore_2_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_5.j deleted file mode 100644 index 51d5d5f33246d622ace04f366d41d33cf8a1536c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2_5.java -.class public dxc/junit/opcodes/lstore_2/jm/T_lstore_2_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - iconst_2 - lstore_2 - return -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_5.java deleted file mode 100644 index 898c226813fe88d421b39696218d27f6f176725c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_2.jm; - -public class T_lstore_2_5 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_6.j deleted file mode 100644 index 9de277f5d87f1eed510127b585476549a9efa526..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_2_6.java -.class public dxc/junit/opcodes/lstore_2/jm/T_lstore_2_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 4 - - fconst_2 - lstore_2 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_6.java deleted file mode 100644 index 30c6c2599a92692f806f27dd9f73953e6175e447..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_2/jm/T_lstore_2_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_2.jm; - -public class T_lstore_2_6 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/Test_lstore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/Test_lstore_3.java deleted file mode 100644 index b89ca5c70d7d24062df5a95bb54d42e1abed159a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/Test_lstore_3.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lstore_3.jm.T_lstore_3_1; -import dxc.junit.opcodes.lstore_3.jm.T_lstore_3_2; - -public class Test_lstore_3 extends DxTestCase { - - /** - * @title value of local variable at is pushed onto the operand stack. - */ - public void testN1() { - assertEquals(1234567890123l, T_lstore_3_1.run()); - } - - /** - * @title each of the lstore_ instructions is the same as lstore with an index of - */ - public void testN2() { - assertTrue(T_lstore_3_2.run()); - } - - /** - * @constraint 4.8.1.22 - * @title index must be no greater than the value - * of max_locals-1 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lstore_3.jm.T_lstore_3_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lstore_3.jm.T_lstore_3_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lstore_3.jm.T_lstore_3_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of argument - float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lstore_3.jm.T_lstore_3_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_1.j deleted file mode 100644 index d5cafeaea02db7e2addf635d425a4b9f9629dbd1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3_1.java -.class public dxc/junit/opcodes/lstore_3/jm/T_lstore_3_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()J - .limit stack 4 - .limit locals 5 - - ldc2_w 1234567890123 - lstore_3 - ldc2_w 4 - lload_3 - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_1.java deleted file mode 100644 index a03805ad37b76a9de446070e3a961cae0fff1151..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_3.jm; - -public class T_lstore_3_1 { - - public static long run() { - return 1234567890123l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_2.j deleted file mode 100644 index bd47d6e9e24c65f975c51436479868fbf8f5c4cb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_2.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3_2.java -.class public dxc/junit/opcodes/lstore_3/jm/T_lstore_3_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()Z - .limit stack 4 - .limit locals 5 - - ldc2_w 1234567890123 - lstore_3 - lload_3 - - ldc2_w 1234567890123 - lstore 3 - lload_3 - - lcmp - ifne Label0 - iconst_3 - ireturn - -Label0: - iconst_0 - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_2.java deleted file mode 100644 index cbe2c13ad3329d7964c6efac38b6de11c005c7f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_3.jm; - -public class T_lstore_3_2 { - - public static boolean run() { - long i = 1234567890123l; - return i == i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_3.j deleted file mode 100644 index 6ddc10bb1ddd450db0f77bd63b85d542c4e73c0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_3.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3_3.java -.class public dxc/junit/opcodes/lstore_3/jm/T_lstore_3_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 2 - .limit locals 0 - - lstore_3 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_3.java deleted file mode 100644 index 89e037a1c504777ef86dd2035ebf9ed65318c116..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_3.jm; - -public class T_lstore_3_3 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_4.j deleted file mode 100644 index f8266ef1e164250a77c75f3b0475a746d8e284d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3_4.java -.class public dxc/junit/opcodes/lstore_3/jm/T_lstore_3_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 5 - - dconst_1 - lstore_3 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_4.java deleted file mode 100644 index 493601ab6af046392bcd38cc9bb147fab00e7519..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_3.jm; - -public class T_lstore_3_4 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_5.j deleted file mode 100644 index 4dd787e600e197d9e1ac24e0a1ec80de0c62aacc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3_5.java -.class public dxc/junit/opcodes/lstore_3/jm/T_lstore_3_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 5 - - iconst_3 - lstore_3 - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_5.java deleted file mode 100644 index 70f5f7116a3d1e03766499aa2af8d0999f2a7c8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_3.jm; - -public class T_lstore_3_5 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_6.j deleted file mode 100644 index 36843969613691e4abadcc53abcbff4e71ed78b2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lstore_3_6.java -.class public dxc/junit/opcodes/lstore_3/jm/T_lstore_3_6 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public static run()V - .limit stack 4 - .limit locals 5 - - fconst_1 - lstore_3 - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_6.java deleted file mode 100644 index 766386b63ef989c92383a496e8bcc510fe25f7aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lstore_3/jm/T_lstore_3_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lstore_3.jm; - -public class T_lstore_3_6 { - - public static void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/Test_lsub.java b/tools/dx-tests/src/dxc/junit/opcodes/lsub/Test_lsub.java deleted file mode 100644 index e298784ccfde39de5a20915b6c48a2d1b58e2511..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/Test_lsub.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lsub; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lsub.jm.T_lsub_1; - -public class Test_lsub extends DxTestCase { - - /** - * @title Arguments = 1111127348242l, 11111111114l - */ - public void testN1() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(1100016237128l, t.run(1111127348242l, 11111111114l)); - } - - /** - * @title Arguments = 0, 1111127348242l - */ - public void testN2() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(-1111127348242l, t.run(0, 1111127348242l)); - } - - /** - * @title Arguments = 0, -11111111114l - */ - public void testN3() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(11111111114l, t.run(0, -11111111114l)); - } - - /** - * @title Arguments = 0l, Long.MAX_VALUE - */ - public void testB1() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(-9223372036854775807L, t.run(0l, Long.MAX_VALUE)); - } - /** - * @title Arguments = 9223372036854775807L, Long.MAX_VALUE - */ - public void testB2() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(0l, t.run(9223372036854775807L, Long.MAX_VALUE)); - } - /** - * @title Arguments = Long.MAX_VALUE, -1l - */ - public void testB3() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(-9223372036854775808L, t.run(Long.MAX_VALUE, -1l)); - } - /** - * @title Arguments = Long.MIN_VALUE, 1l - */ - public void testB4() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(9223372036854775807L, t.run(Long.MIN_VALUE, 1l)); - } - /** - * @title Arguments = 0l, 0l - */ - public void testB5() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(0l, t.run(0l, 0l)); - } - /** - * @title Arguments = 0l, -Long.MIN_VALUE - */ - public void testB6() { - T_lsub_1 t = new T_lsub_1(); - assertEquals(-9223372036854775808L, t.run(0l, -Long.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lsub.jm.T_lsub_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lsub.jm.T_lsub_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lsub.jm.T_lsub_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, float - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lsub.jm.T_lsub_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long, reference - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lsub.jm.T_lsub_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_1.j deleted file mode 100644 index 1afeb41cc44d2c2a2ec2c04cdbcdf5c0e9095d6f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lsub_1.java -.class public dxc/junit/opcodes/lsub/jm/T_lsub_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - lsub - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_1.java deleted file mode 100644 index 047b1bfd694a8be57a9a3ff1b20f3dc9f95dc09a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_1.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lsub.jm; - -public class T_lsub_1 { - - public long run(long a, long b) { - return a-b; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_2.j deleted file mode 100644 index 8872c539b74cddd3c95fedad2b03898deab8db57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lsub_2.java -.class public dxc/junit/opcodes/lsub/jm/T_lsub_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - -; lload_1 - lload_3 - lsub - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_2.java deleted file mode 100644 index c5092953eadbacdeeca959af279fe0063f649a0d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lsub.jm; - -public class T_lsub_2 { - - public long run(long a, long b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_3.j deleted file mode 100644 index f1fa84630c4f0f063f841ca1e7a662fcd2e2f2cf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lsub_3.java -.class public dxc/junit/opcodes/lsub/jm/T_lsub_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JD)J - .limit stack 4 - .limit locals 5 - - lload_1 - dload_3 - lsub - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_3.java deleted file mode 100644 index d86e773c11dea1387d20b597b029afde40d992ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lsub.jm; - -public class T_lsub_3 { - - public long run(long a, double b) { - return (long)(a-b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_4.j deleted file mode 100644 index 1443e48a53c66315c393378dd46973fce5eac766..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lsub_4.java -.class public dxc/junit/opcodes/lsub/jm/T_lsub_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(IJ)J - .limit stack 4 - .limit locals 4 - - iload_1 - lload_2 - lsub - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_4.java deleted file mode 100644 index e3166d07aedc27c55745cb4cc59649816078cc5c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lsub.jm; - -public class T_lsub_4 { - - public long run(int a, long b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_5.j deleted file mode 100644 index 8156f63608b3ee3c5c7471f3c00c4e47c13e8cc2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lsub_5.java -.class public dxc/junit/opcodes/lsub/jm/T_lsub_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FJ)J - .limit stack 3 - .limit locals 4 - - fload_1 - lload_2 - lsub - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_5.java deleted file mode 100644 index 3e89d5cf4329a2833a2f3450f22b13fae9a20a01..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lsub.jm; - -public class T_lsub_5 { - - public long run(float a, long b) { - return (long)(a-b); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_6.j deleted file mode 100644 index 0598c052a8be50c70a3abdb89abf247e4c6b563c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lsub_6.java -.class public dxc/junit/opcodes/lsub/jm/T_lsub_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - aload_0 - lsub - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_6.java deleted file mode 100644 index d0fd41be87ea475088e89d97a3add4e8514c54cb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lsub/jm/T_lsub_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lsub.jm; - -public class T_lsub_6 { - - public long run(long a, long b) { - return a-b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/Test_lushr.java b/tools/dx-tests/src/dxc/junit/opcodes/lushr/Test_lushr.java deleted file mode 100644 index 41f41ea6d3f7a9e5d176c474de07977e1af3de87..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/Test_lushr.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lushr; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lushr.jm.T_lushr_1; - -public class Test_lushr extends DxTestCase { - - /** - * @title Arguments = 40000000000l, 3 - */ - public void testN1() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(5000000000l, t.run(40000000000l, 3)); - } - - /** - * @title Arguments = 40000000000l, 1 - */ - public void testN2() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(20000000000l, t.run(40000000000l, 1)); - } - - /** - * @title Arguments = -123456789l, 1 - */ - public void testN3() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(0x7FFFFFFFFC521975l, t.run(-123456789l, 1)); - } - - /** - * @title Arguments = 1, -1 - */ - public void testN4() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(0l, t.run(1l, -1)); - } - - /** - * @title Arguments = 123456789l, 64 - */ - public void testN5() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(123456789l, t.run(123456789l, 64)); - } - - /** - * @title Arguments = 123456789l, 63 - */ - public void testN6() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(0l, t.run(123456789l, 63)); - } - - /** - * @title Arguments = 0, -1 - */ - public void testB1() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(0l, t.run(0l, -1)); - } - - /** - * @title Arguments = Long.MAX_VALUE, 1 - */ - public void testB2() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(0x3FFFFFFFFFFFFFFFl, t.run(Long.MAX_VALUE, 1)); - } - - /** - * @title Arguments = Long.MIN_VALUE, 1 - */ - public void testB3() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(0x4000000000000000l, t.run(Long.MIN_VALUE, 1)); - } - - /** - * @title Arguments = 1, 0 - */ - public void testB4() { - T_lushr_1 t = new T_lushr_1(); - assertEquals(1l, t.run(1l, 0)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lushr.jm.T_lushr_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double, int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lushr.jm.T_lushr_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int, int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lushr.jm.T_lushr_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float, int - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lushr.jm.T_lushr_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lushr.jm.T_lushr_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_1.j deleted file mode 100644 index 4c92f162134fb89862a4af08ac463763105eba67..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lushr_1.java -.class public dxc/junit/opcodes/lushr/jm/T_lushr_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - - lload_1 - iload_3 - lushr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_1.java deleted file mode 100644 index eebd399a00181786e131fd46d4383b7e7c15ce0c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lushr.jm; - -public class T_lushr_1 { - - public long run(long a, int b) { - return a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_2.j deleted file mode 100644 index fde07605fbb6f377131eb38cf40a1c4204ccafdc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lushr_2.java -.class public dxc/junit/opcodes/lushr/jm/T_lushr_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - -; lload_1 - iload_3 - lushr - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_2.java deleted file mode 100644 index 2512ad141d3605adadcfc8904c556182090317e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lushr.jm; - -public class T_lushr_2 { - - public long run(long a, int b) { - return a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_3.j deleted file mode 100644 index baeb03f42916290b21cdc2baeda0429d6193af2f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lushr_3.java -.class public dxc/junit/opcodes/lushr/jm/T_lushr_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DI)J - .limit stack 3 - .limit locals 4 - - dload_1 - iload_3 - lushr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_3.java deleted file mode 100644 index a349f21b687be35f44059252e9549c4b8f9b6694..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lushr.jm; - -public class T_lushr_3 { - - public long run(double a, int b) { - return (long)a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_4.j deleted file mode 100644 index 0713473fa98a772bb6a8416e0dde377ffe507c46..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lushr_4.java -.class public dxc/junit/opcodes/lushr/jm/T_lushr_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)J - .limit stack 2 - .limit locals 3 - - iload_1 - iload_2 - lushr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_4.java deleted file mode 100644 index f2c2dbd2f23164e27f6c51a1e404848786389751..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lushr.jm; - -public class T_lushr_4 { - - public long run(int a, int b) { - return a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_5.j deleted file mode 100644 index 2d9f06e393b5f6575fa1b34ce1672490f3bac32c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lushr_5.java -.class public dxc/junit/opcodes/lushr/jm/T_lushr_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FI)J - .limit stack 3 - .limit locals 3 - - fload_1 - iload_2 - lushr - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_5.java deleted file mode 100644 index 0ac3afddf99895bf61a6ecc5c0fc543fd404bee4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lushr.jm; - -public class T_lushr_5 { - - public long run(float a, int b) { - return (long)a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_6.j deleted file mode 100644 index 6c5158f116763fda5df00cffe05fd378b600d3ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lushr_6.java -.class public dxc/junit/opcodes/lushr/jm/T_lushr_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JI)J - .limit stack 3 - .limit locals 4 - - aload_0 - iload_3 - lushr - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_6.java deleted file mode 100644 index cc32717ebc1f56dc30d7b1d8d9e20c27c1946f71..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lushr/jm/T_lushr_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lushr.jm; - -public class T_lushr_6 { - - public long run(long a, int b) { - return a >>> b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/Test_lxor.java b/tools/dx-tests/src/dxc/junit/opcodes/lxor/Test_lxor.java deleted file mode 100644 index 567c548ae0588c3817e00be608f7ffde75a9a520..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/Test_lxor.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lxor; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.lxor.jm.T_lxor_1; - -public class Test_lxor extends DxTestCase { - - /** - * @title Arguments = 23423432423777l, 23423432423778l - */ - public void testN1() { - T_lxor_1 t = new T_lxor_1(); - assertEquals(3, t.run(23423432423777l, 23423432423778l)); - } - - /** - * @title Arguments = 0xfffffff5, 0xfffffff1 - */ - public void testN2() { - T_lxor_1 t = new T_lxor_1(); - assertEquals(4, t.run(0xfffffff5, 0xfffffff1)); - } - - /** - * @title Arguments = 0xABCDEFAB & -1 - */ - public void testN3() { - T_lxor_1 t = new T_lxor_1(); - assertEquals(0x54321054, t.run(0xABCDEFAB, -1l)); - } - - /** - * @title Arguments = 0 & -1 - */ - public void testB1() { - T_lxor_1 t = new T_lxor_1(); - assertEquals(-1l, t.run(0l, -1l)); - } - - /** - * @title Arguments = Long.MAX_VALUE & Long.MIN_VALUE - */ - public void testB2() { - T_lxor_1 t = new T_lxor_1(); - assertEquals(0xffffffff, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); - } - - /** - * @title Arguments = Long.MAX_VALUE & Long.MAX_VALUE - */ - public void testB3() { - T_lxor_1 t = new T_lxor_1(); - assertEquals(0l, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.lxor.jm.T_lxor_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & long - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.lxor.jm.T_lxor_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int & long - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.lxor.jm.T_lxor_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - float & long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.lxor.jm.T_lxor_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - reference & long - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.lxor.jm.T_lxor_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_1.j b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_1.j deleted file mode 100644 index a6d08d167aa987be9318421e0ef0797f7e779728..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lxor_1.java -.class public dxc/junit/opcodes/lxor/jm/T_lxor_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - lxor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_1.java b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_1.java deleted file mode 100644 index e7e1c9423bf29b6fed641621f14f1fffd5d8dcbd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lxor.jm; - -public class T_lxor_1 { - - public long run(long a, long b) { - return a ^ b; - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_2.j b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_2.j deleted file mode 100644 index 4510c47e54c579bca515386c85446ea1ba733bf6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lxor_2.java -.class public dxc/junit/opcodes/lxor/jm/T_lxor_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - lload_1 -; lload_3 - lxor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_2.java b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_2.java deleted file mode 100644 index 2216760058c04d36d35c25a077f4e3c5122526e9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lxor.jm; - -public class T_lxor_2 { - - public long run(long a, long b) { - return a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_3.j b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_3.j deleted file mode 100644 index b0ff4532645abbc28ea4df819dbce2a0ada7572f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_3.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lxor_3.java -.class public dxc/junit/opcodes/lxor/jm/T_lxor_3 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(DJ)J - .limit stack 4 - .limit locals 5 - - dload_1 - lload_3 - lxor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_3.java b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_3.java deleted file mode 100644 index 7dc6d0a2328185d26e84ad43dc213398703709df..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lxor.jm; - -public class T_lxor_3 { - - public long run(double a, long b) { - return (long)a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_4.j b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_4.j deleted file mode 100644 index 2c39d8837a110764b537c04a4ca3159d00de442d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lxor_4.java -.class public dxc/junit/opcodes/lxor/jm/T_lxor_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(IJ)J - .limit stack 4 - .limit locals 4 - - iload_1 - lload_2 - lxor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_4.java b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_4.java deleted file mode 100644 index aeb756ee7a0d413d372d2279f00b0efd0ca54a71..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lxor.jm; - -public class T_lxor_4 { - - public long run(int a, long b) { - return a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_5.j b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_5.j deleted file mode 100644 index 72d4a35ee075368e46bd265af1fc8756692d7e97..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lxor_5.java -.class public dxc/junit/opcodes/lxor/jm/T_lxor_5 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(FJ)J - .limit stack 4 - .limit locals 4 - - fload_1 - lload_2 - lxor - - lreturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_5.java b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_5.java deleted file mode 100644 index 3310cb18956d04eaaa54ad300695d5ee76f3cca8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lxor.jm; - -public class T_lxor_5 { - - public long run(float a, long b) { - return (long)a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_6.j b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_6.j deleted file mode 100644 index aaa389b9b19b6e9e46ebf91845a7c9fc650df45f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_lxor_6.java -.class public dxc/junit/opcodes/lxor/jm/T_lxor_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(JJ)J - .limit stack 4 - .limit locals 5 - - aload_0 - lload_3 - lxor - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_6.java b/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_6.java deleted file mode 100644 index 390a570768c314c0b2629e08eafb804e3ed500f4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/lxor/jm/T_lxor_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.lxor.jm; - -public class T_lxor_6 { - - public long run(long a, long b) { - return a ^ b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/Test_monitorenter.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/Test_monitorenter.java deleted file mode 100644 index a47cc26d0089502609c24ce8b75e1a1bfd182b08..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/Test_monitorenter.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorenter; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.monitorenter.jm.T_monitorenter_1; -import dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2; -import dxc.junit.opcodes.monitorenter.jm.T_monitorenter_4; - -public class Test_monitorenter extends DxTestCase { - - /** - * @title normal test - * - * @throws InterruptedException - */ - public void testN1() throws InterruptedException { - //@uses dxc.junit.opcodes.monitorenter.TestRunnable - final T_monitorenter_1 t1 = new T_monitorenter_1(); - Runnable r1 = new TestRunnable(t1); - Runnable r2 = new TestRunnable(t1); - Thread tr1 = new Thread(r1); - Thread tr2 = new Thread(r2); - tr1.start(); - tr2.start(); - - tr1.join(); - tr2.join(); - assertEquals(2, t1.counter); - } - - /** - * @title Tests behavior when monitor owned by current thread. - * - * @throws InterruptedException - */ - public void testN2() throws InterruptedException { - //@uses dxc.junit.opcodes.monitorenter.TestRunnable2 - final T_monitorenter_2 t1 = new T_monitorenter_2(); - Runnable r1 = new TestRunnable2(t1, 10); - Runnable r2 = new TestRunnable2(t1, 20); - Thread tr1 = new Thread(r1); - Thread tr2 = new Thread(r2); - tr1.start(); - tr2.start(); - - tr1.join(); - tr2.join(); - assertTrue(t1.result); - } - - - /** - * @title expected NullPointerException - */ - public void testE1() { - T_monitorenter_4 t = new T_monitorenter_4(); - try { - t.run(); - fail("expected NullPointerException"); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.monitorenter.jm.T_monitorenter_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.monitorenter.jm.T_monitorenter_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} - -class TestRunnable implements Runnable { - private T_monitorenter_1 t1; - TestRunnable(T_monitorenter_1 t1) { - this.t1 = t1; - } - - public void run() { - try { - t1.run(); - } catch (InterruptedException e) { - throw new RuntimeException("interrupted!"); - } - } -} - -class TestRunnable2 implements Runnable { - private T_monitorenter_2 t2; - private int val; - TestRunnable2(T_monitorenter_2 t2, int val) { - this.t2 = t2; - this.val = val; - } - - public void run() { - try { - t2.run(val); - } catch (InterruptedException e) { - throw new RuntimeException("interrupted!"); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_1.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_1.j deleted file mode 100644 index 0ea107d201a241fd2eab42da1375c401eadd6fb4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_1.j +++ /dev/null @@ -1,83 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorenter_1.java -.class public dxc/junit/opcodes/monitorenter/jm/T_monitorenter_1 -.super java/lang/Object - -.field public counter I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_1.counter I - - return -.end method - - -.method public run()V - .throws java/lang/InterruptedException - .limit stack 3 - .limit locals 3 - -Label1: - aload_0 - dup - astore_1 - monitorenter - -Label5: - aload_0 - getfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_1.counter I - istore_2 - -Label3: - ldc2_w 500 - invokestatic java/lang/Thread/sleep(J)V - - aload_0 - iinc 2 1 - iload_2 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_1.counter I - -Label4: - aload_1 - monitorexit - -Label6: - goto Label0 - -Label7: - aload_1 - monitorexit - -Label9: - aload_0 - iconst_m1 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_1.counter I - athrow - -Label0: - return - -.catch all from Label5 to Label6 using Label7 -.catch all from Label7 to Label9 using Label7 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_1.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_1.java deleted file mode 100644 index 5632c817dec548e2fb7b71bb9233585f1db27563..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_1.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorenter.jm; - -public class T_monitorenter_1 { - public int counter = 0; - - public void run() throws InterruptedException { - synchronized(this) { - int a = counter; - Thread.sleep(500); - counter = ++a; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_2.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_2.j deleted file mode 100644 index 5927fed8f3f79b6a273f55549d2913b9196d0ffe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_2.j +++ /dev/null @@ -1,118 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorenter_2.java -.class public dxc/junit/opcodes/monitorenter/jm/T_monitorenter_2 -.super java/lang/Object - -.field private flg I -.field public result Z - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2.flg I - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2.result Z - - return -.end method - - - -.method public run(I)V - .throws java/lang/InterruptedException - .limit stack 3 - .limit locals 4 - - aload_0 - dup - astore_2 - monitorenter - -Label13: - aload_0 - dup - astore_3 - monitorenter - -Label7: - aload_0 - iload_1 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2.flg I - - aload_3 - monitorexit - -Label8: - goto Label0 - -Label9: - aload_0 - iconst_0 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2.result Z - - aload_3 - monitorexit - -Label11: - athrow - -Label0: - ldc2_w 500 - invokestatic java/lang/Thread/sleep(J)V - - aload_0 - getfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2.flg I - iload_1 - if_icmpeq Label1 - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2.result Z - -Label1: - aload_2 - monitorexit - -Label14: - goto Label2 - -Label15: - aload_0 - iconst_0 - putfield dxc.junit.opcodes.monitorenter.jm.T_monitorenter_2.result Z - - aload_2 - monitorexit - -Label17: - athrow - -Label2: - return - -.catch all from Label7 to Label8 using Label9 -.catch all from Label9 to Label11 using Label9 -.catch all from Label13 to Label14 using Label15 -.catch all from Label15 to Label17 using Label15 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_2.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_2.java deleted file mode 100644 index ef7387d12695cbedc15f4eb441a698f52821b4e6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_2.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorenter.jm; - -public class T_monitorenter_2 { - - private int flg = 0; - public boolean result = true; - - public void run(int v) throws InterruptedException { - synchronized(this) { - synchronized(this) { - flg = v; - } - Thread.sleep(500); - if(flg != v) { - result = false; - } - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_4.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_4.j deleted file mode 100644 index 8c08eebbffa06680ec71eb9f75c88087e6de321f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorenter_5.java -.class public dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5 -.super java/lang/Object - -.method public ()V - .limit stack 2 - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .throws java/lang/InterruptedException - .limit stack 2 - .limit locals 3 - - aconst_null - monitorenter - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_4.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_4.java deleted file mode 100644 index 04b8e6b30012d158ece75be3ac51823c9a3e8fc5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_4.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorenter.jm; - -public class T_monitorenter_4 { - - public void run() { - Object o = null; - synchronized(o) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5.j deleted file mode 100644 index 48504868eba953fa581035e44dd78499dc3c27c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorenter_5.java -.class public dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5 -.super java/lang/Object - -.method public ()V - .limit stack 2 - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .throws java/lang/InterruptedException - .limit stack 2 - .limit locals 3 - -; aload_0 - iconst_1 - monitorenter - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5.java deleted file mode 100644 index 02ac6025a470d444ce7e6380db248095827355ea..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorenter.jm; - -public class T_monitorenter_5 { - - public void run() { - synchronized(this) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_6.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_6.j deleted file mode 100644 index 625ec8976e56dc68263438438a0eaba4884a48ba..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_6.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorenter_6.java -.class public dxc/junit/opcodes/monitorenter/jm/T_monitorenter_6 -.super java/lang/Object - -.method public ()V - .limit stack 2 - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .throws java/lang/InterruptedException - .limit stack 2 - .limit locals 3 - -; aload_0 - monitorenter - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_6.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_6.java deleted file mode 100644 index 303a03d9fc8be42d1c896ff7602cff679a1c855e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorenter/jm/T_monitorenter_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorenter.jm; - -public class T_monitorenter_6 { - - public void run() { - synchronized(this) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/Test_monitorexit.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/Test_monitorexit.java deleted file mode 100644 index b4924b6e41de991125e7ad449d7e95b3b0a07994..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/Test_monitorexit.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorexit; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.monitorexit.jm.T_monitorexit_2; -import dxc.junit.opcodes.monitorexit.jm.T_monitorexit_3; -import dxc.junit.opcodes.monitorexit.jm.T_monitorexit_4; - -public class Test_monitorexit extends DxTestCase { - - /** - * @title thread is not monitor owner - */ - public void testE1() throws InterruptedException { - //@uses dxc.junit.opcodes.monitorexit.TestRunnable - final T_monitorexit_2 t = new T_monitorexit_2(); - final Object o = new Object(); - - Runnable r = new TestRunnable(t, o); - - synchronized (o) { - Thread th = new Thread(r); - th.start(); - th.join(); - } - if (t.result == false) { - fail("expected IllegalMonitorStateException"); - } - } - - - /** - * @title structural lock rules violation - */ - public void testE2() { - T_monitorexit_3 t = new T_monitorexit_3(); - try { - t.run(); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE3() { - T_monitorexit_4 t = new T_monitorexit_4(); - try { - t.run(); - fail("expected NullPointerException"); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.monitorexit.jm.T_monitorexit_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.monitorexit.jm.T_monitorexit_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} - - -class TestRunnable implements Runnable { - private T_monitorexit_2 t; - private Object o; - - public TestRunnable(T_monitorexit_2 t, Object o) { - this.t = t; - this.o = o; - } - - public void run() { - try { - t.run(o); - } catch (IllegalMonitorStateException imse) { - // expected - t.result = true; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_2.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_2.j deleted file mode 100644 index a376e051e84b1b6c1673e6155adc0806621245f7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_2.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorexit_2.java -.class public dxc/junit/opcodes/monitorexit/jm/T_monitorexit_2 -.super java/lang/Object - -.field public result Z - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.monitorexit.jm.T_monitorexit_2.result Z - - return -.end method - - -.method public run(Ljava/lang/Object;)V - .limit stack 2 - .limit locals 2 - - aload_1 - monitorexit - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_2.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_2.java deleted file mode 100644 index de7086f8cdb19ee1bac1ce722c5e091f1ec0ebcd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_2.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorexit.jm; - -public class T_monitorexit_2 { - - public boolean result = false; - - public void run(Object o) { - synchronized(o) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_3.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_3.j deleted file mode 100644 index 8c4be70534ab48b8e264a96de58a0624dce30a5f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_3.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorexit_3.java -.class public dxc/junit/opcodes/monitorexit/jm/T_monitorexit_3 -.super java/lang/Object - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 1 - - aload_0 - monitorenter - aload_0 - monitorexit - - aload_0 - monitorexit - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_3.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_3.java deleted file mode 100644 index 99aefa4174a70aa1cd703bc7490dd22ef7bc217a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorexit.jm; - -public class T_monitorexit_3 { - - public void run() { - synchronized(this) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_4.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_4.j deleted file mode 100644 index 9c110b94d6d80eb7e849852fbe7fd564763d00d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_4.j +++ /dev/null @@ -1,51 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorexit_4.java -.class public dxc/junit/opcodes/monitorexit/jm/T_monitorexit_4 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 1 - - aload_0 - monitorenter - -Label1: - aconst_null - monitorexit -Label2: - goto Label4 - -Label3: - aload_0 - monitorexit - athrow -Label4: - return - -.catch all from Label1 to Label2 using Label3 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_4.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_4.java deleted file mode 100644 index 14bcbd93a03178b79bbbfc3c5d99004a8e1f1b96..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorexit.jm; - -public class T_monitorexit_4 { - - public void run() { - synchronized(this) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_5.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_5.j deleted file mode 100644 index d60a77700d64b33b1d508cc359290a6915f179bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_5.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorexit_5.java -.class public dxc/junit/opcodes/monitorexit/jm/T_monitorexit_5 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 1 - - aload_0 - monitorenter -; aload_0 - monitorexit - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_5.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_5.java deleted file mode 100644 index 5210071d4898c4589d32aa2f95dba16e49e68c92..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorexit.jm; - -public class T_monitorexit_5 { - - public void run() { - synchronized(this) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_6.j b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_6.j deleted file mode 100644 index a56c0301a5db35d781f00e762df3825102644e33..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_6.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_monitorexit_6.java -.class public dxc/junit/opcodes/monitorexit/jm/T_monitorexit_6 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 1 - - aload_0 - monitorenter - iconst_1 - monitorexit - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_6.java b/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_6.java deleted file mode 100644 index d7e98259f9f2adcc026e9eb32f6c475e37550231..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/monitorexit/jm/T_monitorexit_6.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.monitorexit.jm; - -public class T_monitorexit_6 { - - public void run() { - synchronized(this) { - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/Test_multianewarray.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/Test_multianewarray.java deleted file mode 100644 index 0d2d0fb19e1a8271bdb4700b2f1090179169ef98..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/Test_multianewarray.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.multianewarray.jm.T_multianewarray_1; -import dxc.junit.opcodes.multianewarray.jm.T_multianewarray_2; -import dxc.junit.opcodes.multianewarray.jm.T_multianewarray_7; -import dxc.junit.opcodes.multianewarray.jm.T_multianewarray_9; - -public class Test_multianewarray extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_multianewarray_1 t = new T_multianewarray_1(); - String[][][] res = t.run(2, 5, 4); - - assertEquals(2, res.length); - - // check default initialization - for (int i = 0; i < 2; i++) { - assertEquals(5, res[i].length); - - for (int j = 0; j < 5; j++) { - assertEquals(4, res[i][j].length); - - for (int k = 0; j < 4; j++) { - assertNull(res[i][j][k]); - } - } - } - } - - /** - * @title if count is zero, no subsequent dimensions allocated - */ - public void testN2() { - T_multianewarray_1 t = new T_multianewarray_1(); - String[][][] res = t.run(2, 0, 4); - - try { - String s = res[2][0][0]; - fail("expected ArrayIndexOutOfBoundsException"); - fail("dummy for s "+s); - } catch (ArrayIndexOutOfBoundsException ae) { - // expected - } - } - - /** - * @title multinewarray must only be used to create array with - * dimensions specified by dimensions operand - */ - public void testN3() { - T_multianewarray_9 t = new T_multianewarray_9(); - String[][][] res = t.run(2, 1, 4); - - if (res.length != 2) fail("incorrect multiarray length"); - if (res[0].length != 1) fail("incorrect array length"); - - try { - int i = res[0][0].length; - fail("expected NullPointerException"); - fail("dummy for i "+i); - } catch (NullPointerException npe) { - // expected - } - } - - /** - * @title expected NegativeArraySizeException - */ - public void testE1() { - T_multianewarray_1 t = new T_multianewarray_1(); - try { - t.run(2, -5, 3); - fail("expected NegativeArraySizeException"); - } catch (NegativeArraySizeException nase) { - // expected - } - } - - /** - * @title expected IllegalAccessError - */ - public void testE2() { - // @uses dxc.junit.opcodes.multianewarray.jm.sub.TestStubs$TestStub - try { - T_multianewarray_2 t = new T_multianewarray_2(); - t.run(2, 5, 3); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE3() { - try { - T_multianewarray_7 t = new T_multianewarray_7(); - t.run(2, 5, 3); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool index - */ - public void testVFE1() { - try { - Class - .forName("dxc.junit.opcodes.multianewarray.jm.T_multianewarray_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class - .forName("dxc.junit.opcodes.multianewarray.jm.T_multianewarray_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE3() { - try { - Class - .forName("dxc.junit.opcodes.multianewarray.jm.T_multianewarray_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.19 - * @title dimension size must not be zero - */ - public void testVFE4() { - try { - Class - .forName("dxc.junit.opcodes.multianewarray.jm.T_multianewarray_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool type - */ - public void testVFE5() { - try { - Class - .forName("dxc.junit.opcodes.multianewarray.jm.T_multianewarray_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE6() { - try { - Class - .forName("dxc.junit.opcodes.multianewarray.jm.T_multianewarray_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_1.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_1.j deleted file mode 100644 index 745bb41dddaac4446dbe11d13eb23ff497dcf2dd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_1.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_1.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(III)[[[Ljava/lang/String; - .limit stack 3 - .limit locals 4 - iload_1 - iload_2 - iload_3 - multianewarray [[[Ljava/lang/String; 3 - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_1.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_1.java deleted file mode 100644 index 8acf7ab696b1a49c060833cc3f105b16b666ad47..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_1 { - - public String[][][] run(int d1, int d2, int d3) { - return new String[d1][d2][d3]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_10.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_10.j deleted file mode 100644 index 2fc8358f1f0c24e8d4eebde1e652329c5cfa4172..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_10.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_10.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)[[Ljava/lang/String; - .limit stack 2 - .limit locals 3 - - iload_1 - aload_0 - multianewarray [[Ljava/lang/String; 2 - areturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_10.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_10.java deleted file mode 100644 index 3ee7dc121ab24f32d347f78c19663dfc87de9736..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_10 { - - public String[][] run(int d1, int d2) { - return new String[d1][d2]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_2.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_2.j deleted file mode 100644 index 6fe2d3f7f15e37e5dbf73b6a0174a35f573e8d38..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_2.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(III)V - .limit stack 3 - .limit locals 4 - iload_1 - iload_2 - iload_3 - multianewarray [[[Ldxc/junit/opcodes/multianewarray/jm/sub/TestStubs$TestStub; 3 - pop - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_2.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_2.java deleted file mode 100644 index fd248e23ec31a850cf0448cd907bb5a31b045888..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_2 { - - public void run(int d1, int d2, int d3) { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.cfh deleted file mode 100644 index 58462bd6667773b4ad26a3e2466303af57c4e858..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 08 - // parsed:, offset 15, len 57, h: 0002: utf8{"dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3"} - // . . 6 d x c / j u n i t / o p c o d e s / m u l t i a n e w a r r a y / j m / T _ m u l t i a n e w a r r a y _ 3 - 01 00 36 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6d 75 6c 74 69 61 6e 65 77 61 72 72 61 79 2f 6a 6d 2f 54 5f 6d 75 6c 74 69 61 6e 65 77 61 72 72 61 79 5f 33 - // parsed:, offset 72, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 91, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 104, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 113, len 3, h: 0006: type{dxc.junit.opcodes.multianewarray.jm.T_multianewarray_3} - // . . . - 07 00 02 - // parsed:, offset 116, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 122, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 127, len 26, h: 0009: utf8{"T_multianewarray_3.java"} - // . . . T _ m u l t i a n e w a r r a y _ 3 . j a v a - 01 00 17 54 5f 6d 75 6c 74 69 61 6e 65 77 61 72 72 61 79 5f 33 2e 6a 61 76 61 - // parsed:, offset 153, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 160, len 24, h: 000b: utf8{"[[[Ljava/lang/String;"} - // . . . [ [ [ L j a v a / l a n g / S t r i n g ; - 01 00 15 5b 5b 5b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 184, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 190, len 29, h: 000d: utf8{"(III)[[[Ljava/lang/String;"} - // . . . ( I I I ) [ [ [ L j a v a / l a n g / S t r i n g ; - 01 00 1a 28 49 49 49 29 5b 5b 5b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 219, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 03 - // parsed:, offset 222, len 3, h: 000f: type{java.lang.String[][][]} - // . . . - 07 00 0b -// parsed:, offset 225, len 0, h: end constant_pool -// parsed:, offset 225, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 227, len 2, h: this_class: type{dxc.junit.opcodes.multianewarray.jm.T_multianewarray_3} -// . . - 00 06 -// parsed:, offset 229, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 231, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 233, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 235, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 237, len:75,desc: ()V -// parsed:, offset 237, len 0, h: methods[0]: - // parsed:, offset 237, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 239, len 2, h: name: - // . . - 00 05 - // parsed:, offset 241, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 243, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 245, len 0, h: attributes[0]: - // parsed:, offset 245, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 247, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 251, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 253, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 255, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 264, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 266, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 268, len 0, h: end attributes[0] -// parsed:, offset 268, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 268, len:44,desc: (III)[[[Ljava/lang/String; -// parsed:, offset 268, len 0, h: methods[1]: - // parsed:, offset 268, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 270, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 272, len 2, h: descriptor: (III)[[[Ljava/lang/String; - // . . - 00 0d - // parsed:, offset 274, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 276, len 0, h: attributes[0]: - // parsed:, offset 276, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 278, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 282, len 2, h: max_stack: 0003 - // . . - 00 03 - // parsed:, offset 284, len 2, h: max_locals: 0004 - // . . - 00 04 - // parsed:, offset 286, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 1, h: 0001: iload_2 // 02 - // . - 1c - // parsed:, offset 2, len 1, h: 0002: iload_3 // 03 - // . - 1d - // parsed:, offset 3, len 4, h: 0003: multianewarray type{java.lang.String[][][]}, 03 - // . . . . -//@mod c5 00 0f 03 - c5 01 0f 03 - // parsed:, offset 7, len 1, h: 0007: areturn - // . - b0 - // parsed:, offset 298, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 300, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 302, len 0, h: end attributes[0] -// parsed:, offset 302, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (III)[[[Ljava/lang/String; -// parsed:, offset 302, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 304, len 0, h: attributes[0]: - // parsed:, offset 304, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 306, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 310, len 2, h: source: utf8{"T_multianewarray_3.java"} - // . . - 00 09 -// parsed:, offset 312, len 0, h: end attributes[0] -// parsed:, offset 312, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.j deleted file mode 100644 index 7ca4a030dc7ff016424d1eff998ddbdd58c2fb89..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_3.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(III)[[[Ljava/lang/String; - .limit stack 3 - .limit locals 4 - iload_1 - iload_2 - iload_3 - multianewarray [[[Ljava/lang/String; 3 - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.java deleted file mode 100644 index 468ff6e010574cb4b4aaedf9c79eb1b5f002c2d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_3 { - - public String[][][] run(int d1, int d2, int d3) { - return new String[d1][d2][d3]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_4.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_4.j deleted file mode 100644 index 3583a5af5a199150e47f3dee8cdbe3b3826376ab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_4.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_4.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)[[Ljava/lang/String; - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - multianewarray [[Ljava/lang/String; 2 - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_4.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_4.java deleted file mode 100644 index 24e7c4514fc547d42cb7eb18701e38de8e254ec8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_4 { - - public String[][] run(int d1, int d2) { - return new String[d1][d2]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_5.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_5.j deleted file mode 100644 index 825fd4a67ae6fa5a3ba5dda9dabdb8c8506a3cab..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_5.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_5.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)[[Ljava/lang/String; - .limit stack 2 - .limit locals 3 - iload_1 - fconst_1 - multianewarray [[Ljava/lang/String; 2 - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_5.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_5.java deleted file mode 100644 index c21331741fcffa5f195f07edab0272d1ecf8162d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_5 { - - public String[][] run(int d1, int d2) { - return new String[d1][d2]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_6.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_6.j deleted file mode 100644 index ef716e4bce090b991ec8af40ca9583a4bb13851e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_6.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_6.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)[[Ljava/lang/String; - .limit stack 2 - .limit locals 3 - iload_1 - iload_2 - multianewarray [[Ljava/lang/String; 0 - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_6.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_6.java deleted file mode 100644 index ce6033c53b50e65476edd369b21d4f976df72c82..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_6 { - - public String[][] run(int d1, int d2) { - return new String[d1][d2]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_7.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_7.j deleted file mode 100644 index bce30030505a958a24a2b1438ef028930d4aace0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_7.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_7.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(III)V - .limit stack 3 - .limit locals 4 - iload_1 - iload_2 - iload_3 - ; class not found exception - multianewarray [[[Ldxc/junit/opcodes/multianewarray/jm/Foobar1; 3 - pop - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_7.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_7.java deleted file mode 100644 index 27939ad6d73b3e206411318fc077667a467d2de8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_7.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_7 { - - public void run(int d1, int d2, int d3) { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.cfh b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.cfh deleted file mode 100644 index 92280619afc18f7635460b0189bc668b0df1a9e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.cfh +++ /dev/null @@ -1,206 +0,0 @@ -//@class:dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0011 -// . . - 00 11 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 09 - // parsed:, offset 67, len 7, h: 0007: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 74, len 24, h: 0008: utf8{"[[[Ljava/lang/String;"} - // . . . [ [ [ L j a v a / l a n g / S t r i n g ; - 01 00 15 5b 5b 5b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 98, len 6, h: 0009: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 104, len 5, h: 000a: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 109, len 26, h: 000b: utf8{"T_multianewarray_8.java"} - // . . . T _ m u l t i a n e w a r r a y _ 8 . j a v a - 01 00 17 54 5f 6d 75 6c 74 69 61 6e 65 77 61 72 72 61 79 5f 38 2e 6a 61 76 61 - // parsed:, offset 135, len 3, h: 000c: type{java.lang.String[][][]} - // . . . - 07 00 08 - // parsed:, offset 138, len 57, h: 000d: utf8{"dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8"} - // . . 6 d x c / j u n i t / o p c o d e s / m u l t i a n e w a r r a y / j m / T _ m u l t i a n e w a r r a y _ 8 - 01 00 36 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6d 75 6c 74 69 61 6e 65 77 61 72 72 61 79 2f 6a 6d 2f 54 5f 6d 75 6c 74 69 61 6e 65 77 61 72 72 61 79 5f 38 - // parsed:, offset 195, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 198, len 29, h: 000f: utf8{"(III)[[[Ljava/lang/String;"} - // . . . ( I I I ) [ [ [ L j a v a / l a n g / S t r i n g ; - 01 00 1a 28 49 49 49 29 5b 5b 5b 4c 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 3b - // parsed:, offset 227, len 3, h: 0010: type{dxc.junit.opcodes.multianewarray.jm.T_multianewarray_8} - // . . . - 07 00 0d -// parsed:, offset 230, len 0, h: end constant_pool -// parsed:, offset 230, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 232, len 2, h: this_class: type{dxc.junit.opcodes.multianewarray.jm.T_multianewarray_8} -// . . - 00 10 -// parsed:, offset 234, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 236, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 238, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 240, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 242, len:78,desc: ()V -// parsed:, offset 242, len 0, h: methods[0]: - // parsed:, offset 242, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 244, len 2, h: name: - // . . - 00 04 - // parsed:, offset 246, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 248, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 250, len 0, h: attributes[0]: - // parsed:, offset 250, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 252, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 256, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 258, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 260, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 269, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 271, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 273, len 0, h: end attributes[0] -// parsed:, offset 273, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 273, len:47,desc: (III)[[[Ljava/lang/String; -// parsed:, offset 273, len 0, h: methods[1]: - // parsed:, offset 273, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 275, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 277, len 2, h: descriptor: (III)[[[Ljava/lang/String; - // . . - 00 0f - // parsed:, offset 279, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 281, len 0, h: attributes[0]: - // parsed:, offset 281, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 283, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 287, len 2, h: max_stack: 0003 - // . . - 00 03 - // parsed:, offset 289, len 2, h: max_locals: 0004 - // . . - 00 04 - // parsed:, offset 291, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 2, h: 0000: ldc #4048f5c3 // 3.14 - // . . - 12 0a - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 1, h: 0003: iload_1 // 01 - // . - 1b - // parsed:, offset 4, len 1, h: 0004: iload_2 // 02 - // . - 1c - // parsed:, offset 5, len 1, h: 0005: iload_3 // 03 - // . - 1d - // parsed:, offset 6, len 4, h: 0006: multianewarray type{java.lang.String[][][]}, 03 - // . . . . -//@mod c5 00 0c 03 - c5 00 0a 03 - // parsed:, offset 10, len 1, h: 000a: areturn - // . - b0 - // parsed:, offset 306, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 308, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 310, len 0, h: end attributes[0] -// parsed:, offset 310, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (III)[[[Ljava/lang/String; -// parsed:, offset 310, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 312, len 0, h: attributes[0]: - // parsed:, offset 312, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 314, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 318, len 2, h: source: utf8{"T_multianewarray_8.java"} - // . . - 00 0b -// parsed:, offset 320, len 0, h: end attributes[0] -// parsed:, offset 320, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.j deleted file mode 100644 index 5d315c20e383fade26f4b9b438608ddce9780f5d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_8.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(III)[[[Ljava/lang/String; - .limit stack 3 - .limit locals 4 - - ldc 3.14 - pop - - iload_1 - iload_2 - iload_3 - multianewarray [[[Ljava/lang/String; 3 - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.java deleted file mode 100644 index 7b4aa01804441ed605561510830a03148830b7b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_8 { - - public String[][][] run(int d1, int d2, int d3) { - return new String[d1][d2][d3]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_9.j b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_9.j deleted file mode 100644 index b814c676b24df5fb51a9b3c21601a6ce894f8136..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_9.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_multianewarray_9.java -.class public dxc/junit/opcodes/multianewarray/jm/T_multianewarray_9 -.super java/lang/Object - - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(III)[[[Ljava/lang/String; - .limit stack 2 - .limit locals 4 - - iload_1 - iload_2 - multianewarray [[[Ljava/lang/String; 2 - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_9.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_9.java deleted file mode 100644 index 0df794d4615648ec7764830415963ffe4b62589e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/T_multianewarray_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm; - -public class T_multianewarray_9 { - - public String[][][] run(int d1, int d2, int d3) { - return new String[d1][d2][]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/sub/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/sub/TestStubs.java deleted file mode 100644 index ee091bb8e6535d31e24d6a6db0e01a0aab80a497..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/multianewarray/jm/sub/TestStubs.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.multianewarray.jm.sub; - -public class TestStubs { - - @SuppressWarnings("unused") - private class TestStub { - // used by testE2 - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/Test_newarray.java b/tools/dx-tests/src/dxc/junit/opcodes/newarray/Test_newarray.java deleted file mode 100644 index 4126bbaeea3024ecabc4a5c339d19b82e46bd508..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/Test_newarray.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.newarray; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.newarray.jm.T_newarray_1; -import dxc.junit.opcodes.newarray.jm.T_newarray_2; - -public class Test_newarray extends DxTestCase { - - /** - * @title Array of ints - */ - public void testN1() { - T_newarray_1 t = new T_newarray_1(); - int[] r = t.run(10); - int l = r.length; - assertEquals(10, l); - - // check default initialization - for (int i = 0; i < l; i++) { - assertEquals(0, r[i]); - } - - } - - /** - * @title Array of floats - */ - public void testN2() { - T_newarray_2 t = new T_newarray_2(); - float[] r = t.run(10); - int l = r.length; - assertEquals(10, l); - - // check default initialization - for (int i = 0; i < l; i++) { - assertEquals(0f, r[i]); - } - } - - /** - * @title expected NegativeArraySizeException - */ - public void testE1() { - T_newarray_2 t = new T_newarray_2(); - try { - t.run(-1); - fail("expected NegativeArraySizeException"); - } catch (NegativeArraySizeException nase) { - // expected - } - } - - /** - * @title Array size = 0 - */ - public void testB1() { - T_newarray_1 t = new T_newarray_1(); - int[] r = t.run(0); - assertNotNull(r); - assertEquals(0, r.length); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.newarray.jm.T_newarray_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.newarray.jm.T_newarray_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.20 - * @title atype must take one of the following - * values - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.newarray.jm.T_newarray_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.newarray.jm.T_newarray_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_1.j b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_1.j deleted file mode 100644 index afe0883bdb3c7b0e4e9e0ab539e9a0f8d35f4292..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_newarray_1.java -.class public dxc/junit/opcodes/newarray/jm/T_newarray_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)[I - .limit locals 2 - .limit stack 2 - iload_1 - newarray int - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_1.java b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_1.java deleted file mode 100644 index 0d5d4397859f25ff67476348b7aecb860fb08b9f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.newarray.jm; - -public class T_newarray_1 { - - public int[] run(int sz) { - return new int[sz]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_2.j b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_2.j deleted file mode 100644 index a04589dbe372db60f6abb98053312140d0267262..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_2.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_newarray_2.java -.class public dxc/junit/opcodes/newarray/jm/T_newarray_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)[F - .limit locals 2 - .limit stack 2 - iload_1 - newarray float - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_2.java b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_2.java deleted file mode 100644 index 419f2d5929da635e10e9b2c77c3391e042740cfa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.newarray.jm; - -public class T_newarray_2 { - - public float[] run(int sz) { - return new float[sz]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_3.j b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_3.j deleted file mode 100644 index 51c10041b8e230d008433fc20f898e6050830599..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_3.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_newarray_3.java -.class public dxc/junit/opcodes/newarray/jm/T_newarray_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)[I - .limit locals 2 - .limit stack 2 -; iload_1 - newarray int - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_3.java b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_3.java deleted file mode 100644 index 9de24fc7ecbdbf58c61ba298a33645c26309e02a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.newarray.jm; - -public class T_newarray_3 { - - public int[] run(int sz) { - return new int[sz]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_4.j b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_4.j deleted file mode 100644 index 9f5666959cd118005750411d812a500ffd675636..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_4.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_newarray_4.java -.class public dxc/junit/opcodes/newarray/jm/T_newarray_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)[I - .limit locals 2 - .limit stack 2 -; iload_1 - fconst_1 - newarray int - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_4.java b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_4.java deleted file mode 100644 index 1fcb3b8ad51f61fffb2b120f4bcead5cfde5857d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.newarray.jm; - -public class T_newarray_4 { - - public int[] run(int sz) { - return new int[sz]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.cfh deleted file mode 100644 index b59839a27b34a8b63dcff10b16aa21268286a775..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/opcodes/newarray/jm/T_newarray_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0d 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 45, h: 0005: utf8{"dxc/junit/opcodes/newarray/jm/T_newarray_5"} - // . . * d x c / j u n i t / o p c o d e s / n e w a r r a y / j m / T _ n e w a r r a y _ 5 - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6e 65 77 61 72 72 61 79 2f 6a 6d 2f 54 5f 6e 65 77 61 72 72 61 79 5f 35 - // parsed:, offset 101, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 107, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0c - // parsed:, offset 112, len 3, h: 0008: type{dxc.junit.opcodes.newarray.jm.T_newarray_5} - // . . . - 07 00 05 - // parsed:, offset 115, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 122, len 20, h: 000a: utf8{"T_newarray_5.java"} - // . . . T _ n e w a r r a y _ 5 . j a v a - 01 00 11 54 5f 6e 65 77 61 72 72 61 79 5f 35 2e 6a 61 76 61 - // parsed:, offset 142, len 8, h: 000b: utf8{"(I)[I"} - // . . . ( I ) [ I - 01 00 05 28 49 29 5b 49 - // parsed:, offset 150, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 156, len 3, h: 000d: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 159, len 0, h: end constant_pool -// parsed:, offset 159, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 161, len 2, h: this_class: type{dxc.junit.opcodes.newarray.jm.T_newarray_5} -// . . - 00 08 -// parsed:, offset 163, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0d -// parsed:, offset 165, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 167, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 169, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 171, len:71,desc: ()V -// parsed:, offset 171, len 0, h: methods[0]: - // parsed:, offset 171, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 173, len 2, h: name: - // . . - 00 04 - // parsed:, offset 175, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 177, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 179, len 0, h: attributes[0]: - // parsed:, offset 179, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 181, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 185, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 187, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 189, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 198, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 200, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 202, len 0, h: end attributes[0] -// parsed:, offset 202, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 202, len:40,desc: (I)[I -// parsed:, offset 202, len 0, h: methods[1]: - // parsed:, offset 202, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 204, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 206, len 2, h: descriptor: (I)[I - // . . - 00 0b - // parsed:, offset 208, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 210, len 0, h: attributes[0]: - // parsed:, offset 210, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 212, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 216, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 218, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 220, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 2, h: 0001: newarray int - // . . -//@mod bc 0a - bc 03 - // parsed:, offset 3, len 1, h: 0003: areturn - // . - b0 - // parsed:, offset 228, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 230, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 232, len 0, h: end attributes[0] -// parsed:, offset 232, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)[I -// parsed:, offset 232, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 234, len 0, h: attributes[0]: - // parsed:, offset 234, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 236, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 240, len 2, h: source: utf8{"T_newarray_5.java"} - // . . - 00 0a -// parsed:, offset 242, len 0, h: end attributes[0] -// parsed:, offset 242, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.j b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.j deleted file mode 100644 index 06737b41c634e0a7a6de9650d15a7b95ffe478d3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_newarray_5.java -.class public dxc/junit/opcodes/newarray/jm/T_newarray_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)[I - .limit locals 2 - .limit stack 2 - iload_1 - newarray int - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.java b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.java deleted file mode 100644 index 7ad3257c3ff677ebc473f62e1a43d0b43ec4c32e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.newarray.jm; - -public class T_newarray_5 { - - public int[] run(int sz) { - return new int[sz]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_6.j b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_6.j deleted file mode 100644 index db587957d7f1568eb7ab06acb613b9c7dfc9ff65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_6.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_newarray_6.java -.class public dxc/junit/opcodes/newarray/jm/T_newarray_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)[I - .limit stack 1 - .limit locals 2 - - aload_0 - newarray int - areturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_6.java b/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_6.java deleted file mode 100644 index 6729fa40fc49081b137a7731921965073ae33a22..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/newarray/jm/T_newarray_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.newarray.jm; - -public class T_newarray_6 { - - public int[] run(int sz) { - return new int[sz]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/nop/Test_nop.java b/tools/dx-tests/src/dxc/junit/opcodes/nop/Test_nop.java deleted file mode 100644 index 78e019b2c5619e1e1305646789a170483251a6ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/nop/Test_nop.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.nop; - -import dxc.junit.DxTestCase; -import dxc.junit.opcodes.nop.jm.T_nop_1; - -public class Test_nop extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_nop_1 t = new T_nop_1(); - // how do we test nop - e.g. push some data onto the stack, and - // test if nothing has changed - assertTrue(t.run()); - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/nop/jm/T_nop_1.j b/tools/dx-tests/src/dxc/junit/opcodes/nop/jm/T_nop_1.j deleted file mode 100644 index d4ddbed3a2c7376ef3b9c2bc0772fafc82515982..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/nop/jm/T_nop_1.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_nop_1.java -.class public dxc/junit/opcodes/nop/jm/T_nop_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 4 - ldc2_w 12345678 - nop - nop - nop - nop - nop - dup2 - nop - nop - nop - lcmp - ifne Label0 - iconst_1 - ireturn -Label0: - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/nop/jm/T_nop_1.java b/tools/dx-tests/src/dxc/junit/opcodes/nop/jm/T_nop_1.java deleted file mode 100644 index be368690f20ee7927043cb3c15756a1003586118..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/nop/jm/T_nop_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.nop.jm; - -public class T_nop_1 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/Test_opc_goto.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/Test_opc_goto.java deleted file mode 100644 index b4a9cccb609a2574300fbbe1929f592f4b02651e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/Test_opc_goto.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_goto; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.opc_goto.jm.T_opc_goto_1; -import dxc.junit.opcodes.opc_goto.jm.T_opc_goto_5; - -public class Test_opc_goto extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_opc_goto_1 t = new T_opc_goto_1(); - assertEquals(0, t.run(20)); - } - - /** - * @title normal test - */ - public void testN2() { - T_opc_goto_1 t = new T_opc_goto_1(); - assertEquals(-20, t.run(-20)); - } - - /** - * @title negative offset - */ - public void testN3() { - T_opc_goto_5 t = new T_opc_goto_5(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.1.7 - * @title branch target is inside instruction - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.opc_goto.jm.T_opc_goto_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall be inside the - * method - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.opc_goto.jm.T_opc_goto_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.7 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.opc_goto.jm.T_opc_goto_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_1.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_1.j deleted file mode 100644 index 17477a9b1793e6c49f8b0161b44d5b632cfa1ac8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_1.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_goto_1.java -.class public dxc/junit/opcodes/opc_goto/jm/T_opc_goto_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - goto Label0 - - Label1: - iinc 1 -1 - - Label0: - iload_1 - ifgt Label1 - - iload_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_1.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_1.java deleted file mode 100644 index 9e50e31bb60e41f4aee4db89358d5e808c07afc6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_1.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_goto.jm; - -public class T_opc_goto_1 { - - public int run(int a) { - while (a > 0) { - a--; - } - return a; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.cfh b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.cfh deleted file mode 100644 index 82dbe4fdf3e90eae4a132cd41a064a85da4878d6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.cfh +++ /dev/null @@ -1,193 +0,0 @@ -//@class:dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000f -// . . - 00 0f -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 67, len 3, h: 0007: type{dxc.junit.opcodes.opc_goto.jm.T_opc_goto_2} - // . . . - 07 00 0a - // parsed:, offset 70, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 77, len 3, h: 0009: string{"a"} - // . . . - 08 00 0c - // parsed:, offset 80, len 45, h: 000a: utf8{"dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2"} - // . . * d x c / j u n i t / o p c o d e s / o p c _ g o t o / j m / T _ o p c _ g o t o _ 2 - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6f 70 63 5f 67 6f 74 6f 2f 6a 6d 2f 54 5f 6f 70 63 5f 67 6f 74 6f 5f 32 - // parsed:, offset 125, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 131, len 4, h: 000c: utf8{"a"} - // . . . a - 01 00 01 61 - // parsed:, offset 135, len 20, h: 000d: utf8{"T_opc_goto_2.java"} - // . . . T _ o p c _ g o t o _ 2 . j a v a - 01 00 11 54 5f 6f 70 63 5f 67 6f 74 6f 5f 32 2e 6a 61 76 61 - // parsed:, offset 155, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 158, len 0, h: end constant_pool -// parsed:, offset 158, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 160, len 2, h: this_class: type{dxc.junit.opcodes.opc_goto.jm.T_opc_goto_2} -// . . - 00 07 -// parsed:, offset 162, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 164, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 166, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 168, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 170, len:74,desc: ()V -// parsed:, offset 170, len 0, h: methods[0]: - // parsed:, offset 170, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 172, len 2, h: name: - // . . - 00 04 - // parsed:, offset 174, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 176, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 178, len 0, h: attributes[0]: - // parsed:, offset 178, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 180, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 184, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 186, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 188, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 197, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 199, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 201, len 0, h: end attributes[0] -// parsed:, offset 201, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 201, len:43,desc: ()V -// parsed:, offset 201, len 0, h: methods[1]: - // parsed:, offset 201, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 203, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 205, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 207, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 209, len 0, h: attributes[0]: - // parsed:, offset 209, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 211, len 4, h: length: 00000013 - // . . . . - 00 00 00 13 - // parsed:, offset 215, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 217, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 219, len 4, h: code_length: 00000007 - // . . . . - 00 00 00 07 - // parsed:, offset 0, len 3, h: 0000: goto 0004 - // . . . -//@mod: a7 00 04 -// we jump to the parameter of a byte code (was: ldc, now: string "a"), so this -// must be rejected by the verifier - a7 00 05 - // parsed:, offset 3, len 1, h: 0003: return - // . - b1 - // parsed:, offset 4, len 2, h: 0004: ldc string{"a"} - // . . - 12 09 - // parsed:, offset 6, len 1, h: 0006: return - // . - b1 - // parsed:, offset 230, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 232, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 234, len 0, h: end attributes[0] -// parsed:, offset 234, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 234, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 236, len 0, h: attributes[0]: - // parsed:, offset 236, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 238, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 242, len 2, h: source: utf8{"T_opc_goto_2.java"} - // . . - 00 0d -// parsed:, offset 244, len 0, h: end attributes[0] -// parsed:, offset 244, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.j deleted file mode 100644 index 9a155dfe7aa8f3572df71ec721c195d2260e6d61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_goto_2.java -.class public dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - goto Label0 - return -Label0: - ldc "a" - return -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.java deleted file mode 100644 index 344523d248097ea43e7efc1d608b54b568c79608..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_goto.jm; - -public class T_opc_goto_2 { - - public void run() { - String a = "a"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.cfh deleted file mode 100644 index 89cfde8ac44dc1b08eee35d2d28afb4bfb6f99b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.cfh +++ /dev/null @@ -1,191 +0,0 @@ -//@class:dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000f -// . . - 00 0f -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 3, h: 0004: string{"a"} - // . . . - 08 00 0d - // parsed:, offset 50, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 59, len 20, h: 0006: utf8{"T_opc_goto_3.java"} - // . . . T _ o p c _ g o t o _ 3 . j a v a - 01 00 11 54 5f 6f 70 63 5f 67 6f 74 6f 5f 33 2e 6a 61 76 61 - // parsed:, offset 79, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 85, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0c - // parsed:, offset 90, len 3, h: 0009: type{dxc.junit.opcodes.opc_goto.jm.T_opc_goto_3} - // . . . - 07 00 0b - // parsed:, offset 93, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 100, len 45, h: 000b: utf8{"dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3"} - // . . * d x c / j u n i t / o p c o d e s / o p c _ g o t o / j m / T _ o p c _ g o t o _ 3 - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6f 70 63 5f 67 6f 74 6f 2f 6a 6d 2f 54 5f 6f 70 63 5f 67 6f 74 6f 5f 33 - // parsed:, offset 145, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 151, len 4, h: 000d: utf8{"a"} - // . . . a - 01 00 01 61 - // parsed:, offset 155, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 158, len 0, h: end constant_pool -// parsed:, offset 158, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 160, len 2, h: this_class: type{dxc.junit.opcodes.opc_goto.jm.T_opc_goto_3} -// . . - 00 09 -// parsed:, offset 162, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 164, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 166, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 168, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 170, len:74,desc: ()V -// parsed:, offset 170, len 0, h: methods[0]: - // parsed:, offset 170, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 172, len 2, h: name: - // . . - 00 05 - // parsed:, offset 174, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 176, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 178, len 0, h: attributes[0]: - // parsed:, offset 178, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 180, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 184, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 186, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 188, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 197, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 199, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 201, len 0, h: end attributes[0] -// parsed:, offset 201, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 201, len:43,desc: ()V -// parsed:, offset 201, len 0, h: methods[1]: - // parsed:, offset 201, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 203, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 205, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 207, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 209, len 0, h: attributes[0]: - // parsed:, offset 209, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 211, len 4, h: length: 00000013 - // . . . . - 00 00 00 13 - // parsed:, offset 215, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 217, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 219, len 4, h: code_length: 00000007 - // . . . . - 00 00 00 07 - // parsed:, offset 0, len 3, h: 0000: goto 0004 - // . . . -//@mod a7 00 04 - a7 00 ff - // parsed:, offset 3, len 1, h: 0003: return - // . - b1 - // parsed:, offset 4, len 2, h: 0004: ldc string{"a"} - // . . - 12 04 - // parsed:, offset 6, len 1, h: 0006: return - // . - b1 - // parsed:, offset 230, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 232, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 234, len 0, h: end attributes[0] -// parsed:, offset 234, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 234, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 236, len 0, h: attributes[0]: - // parsed:, offset 236, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 238, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 242, len 2, h: source: utf8{"T_opc_goto_3.java"} - // . . - 00 06 -// parsed:, offset 244, len 0, h: end attributes[0] -// parsed:, offset 244, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.j deleted file mode 100644 index 926612c535476db1d6971e0664557907df6e20ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_goto_3.java -.class public dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - goto Label0 - return -Label0: - ldc "a" - return -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.java deleted file mode 100644 index 243af4f1f6b1b20234b594df98d78d3f03db8b91..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_goto.jm; - -public class T_opc_goto_3 { - - public void run() { - String a = "a"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.cfh deleted file mode 100644 index 1b60dd5ea1f0201490b6662818c0b9e9cbd9e2f5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.cfh +++ /dev/null @@ -1,182 +0,0 @@ -//@class:dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 67, len 3, h: 0007: type{dxc.junit.opcodes.opc_goto.jm.T_opc_goto_4} - // . . . - 07 00 08 - // parsed:, offset 70, len 45, h: 0008: utf8{"dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4"} - // . . * d x c / j u n i t / o p c o d e s / o p c _ g o t o / j m / T _ o p c _ g o t o _ 4 - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6f 70 63 5f 67 6f 74 6f 2f 6a 6d 2f 54 5f 6f 70 63 5f 67 6f 74 6f 5f 34 - // parsed:, offset 115, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 122, len 20, h: 000a: utf8{"T_opc_goto_4.java"} - // . . . T _ o p c _ g o t o _ 4 . j a v a - 01 00 11 54 5f 6f 70 63 5f 67 6f 74 6f 5f 34 2e 6a 61 76 61 - // parsed:, offset 142, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 148, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 151, len 0, h: end constant_pool -// parsed:, offset 151, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 153, len 2, h: this_class: type{dxc.junit.opcodes.opc_goto.jm.T_opc_goto_4} -// . . - 00 07 -// parsed:, offset 155, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 157, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 159, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 161, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 163, len:75,desc: ()V -// parsed:, offset 163, len 0, h: methods[0]: - // parsed:, offset 163, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 165, len 2, h: name: - // . . - 00 04 - // parsed:, offset 167, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 169, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 171, len 0, h: attributes[0]: - // parsed:, offset 171, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 173, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 177, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 179, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 181, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 190, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 192, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 194, len 0, h: end attributes[0] -// parsed:, offset 194, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 194, len:44,desc: ()V -// parsed:, offset 194, len 0, h: methods[1]: - // parsed:, offset 194, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 196, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 198, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 200, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 202, len 0, h: attributes[0]: - // parsed:, offset 202, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 204, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 208, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 210, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 212, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 3, h: 0000: goto 0003 - // . . . -//@mod a7 00 03 - a7 00 04 - // parsed:, offset 3, len 4, h: 0003: wide aload 0000 - // . . . . - c4 19 00 00 - // parsed:, offset 7, len 1, h: 0007: return - // . - b1 - // parsed:, offset 224, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 226, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 228, len 0, h: end attributes[0] -// parsed:, offset 228, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 228, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 230, len 0, h: attributes[0]: - // parsed:, offset 230, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 232, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 236, len 2, h: source: utf8{"T_opc_goto_4.java"} - // . . - 00 0a -// parsed:, offset 238, len 0, h: end attributes[0] -// parsed:, offset 238, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.j deleted file mode 100644 index 9fda78af9aea38f9f89807e12acb711f9f6c8833..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_goto_4.java -.class public dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - goto Label0 -Label0: - aload_w 0 - return -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.java deleted file mode 100644 index 1b6e4abde65c7425e1157c8b2d0a11e751d4cd4c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_goto.jm; - -public class T_opc_goto_4 { - - public void run() { - String a = "a"; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_5.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_5.j deleted file mode 100644 index 12e5804e4da6e22880a59741dc185618db6c7665..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_5.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_goto_5.java -.class public dxc/junit/opcodes/opc_goto/jm/T_opc_goto_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - goto Label1 -Label0: - nop - nop - nop - iconst_1 - ireturn -Label1: - goto Label0 - iconst_0 - ireturn -.end method - - diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_5.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_5.java deleted file mode 100644 index 61d7c4d3f4cffd1374ae59b0a724734a012c63bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_goto/jm/T_opc_goto_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_goto.jm; - -public class T_opc_goto_5 { - - public boolean run() { - return true; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/TestStubs.java deleted file mode 100644 index 03fb771fd8175682ffc2f994eb59a65a5da913fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/TestStubs.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof; - -public class TestStubs { - @SuppressWarnings("unused") - private class TestStub { - // testE1 - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/Test_opc_instanceof.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/Test_opc_instanceof.java deleted file mode 100644 index b5278dfdaad1a35d29982ea75ab2e5f0975d9911..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/Test_opc_instanceof.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_1; -import dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_2; -import dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_3; -import dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_7; - -public class Test_opc_instanceof extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_opc_instanceof_1 t = new T_opc_instanceof_1(); - assertTrue(t.run("")); - } - - /** - * @title check null value - */ - public void testN2() { - T_opc_instanceof_1 t = new T_opc_instanceof_1(); - assertFalse(t.run(null)); - } - - /** - * @title normal test - */ - public void testN3() { - T_opc_instanceof_1 t = new T_opc_instanceof_1(); - assertFalse(t.run(this)); - } - - /** - * @title normal test - */ - public void testN4() { - // @uses dxc.junit.opcodes.opc_instanceof.jm.SubClass - // @uses dxc.junit.opcodes.opc_instanceof.jm.SuperClass - // @uses dxc.junit.opcodes.opc_instanceof.jm.SuperInterface - // @uses dxc.junit.opcodes.opc_instanceof.jm.SuperInterface2 - T_opc_instanceof_2 t = new T_opc_instanceof_2(); - assertEquals(0, t.run()); - } - - /** - * @title expected IllegalAccessError - */ - public void testE1() { - // @uses dxc.junit.opcodes.opc_instanceof.jm.TestStubs$TestStub - T_opc_instanceof_3 t = new T_opc_instanceof_3(); - try { - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE2() { - T_opc_instanceof_7 t = new T_opc_instanceof_7(); - try { - t.run(); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool index - */ - public void testVFE1() { - try { - Class - .forName("dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class - .forName("dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE3() { - try { - Class - .forName("dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool type - */ - public void testVFE4() { - try { - Class - .forName("dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_1.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_1.j deleted file mode 100644 index 07c0fd986ebff66107bd6bd528a23762f507a477..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_1.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_1.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Z - .limit stack 1 - .limit locals 2 - aload_1 - instanceof java/lang/String - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_1.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_1.java deleted file mode 100644 index c9a44fb0b1adebf2af20198b3e9d6d6067078024..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_1 { - - public boolean run(Object o) { - return (o instanceof String); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_2.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_2.j deleted file mode 100644 index f5a5675d9ecd454f31c3317ad8e1ce44bd6f36f7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_2.j +++ /dev/null @@ -1,117 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_2.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 2 - .limit locals 2 - -; (SubClass instanceof SuperClass) - new dxc/junit/opcodes/opc_instanceof/jm/SubClass - dup - invokespecial dxc/junit/opcodes/opc_instanceof/jm/SubClass.()V - instanceof dxc/junit/opcodes/opc_instanceof/jm/SuperClass - ifne Label1 - iconst_1 - goto LabelExit - -Label1: -; !(SuperClass instanceof SubClass) - new dxc/junit/opcodes/opc_instanceof/jm/SuperClass - dup - invokespecial dxc/junit/opcodes/opc_instanceof/jm/SuperClass.()V - instanceof dxc/junit/opcodes/opc_instanceof/jm/SubClass - ifeq Label2 - iconst_2 - goto LabelExit - -Label2: -; (SubClass instanceof SuperInterface) - new dxc/junit/opcodes/opc_instanceof/jm/SubClass - dup - invokespecial dxc/junit/opcodes/opc_instanceof/jm/SubClass.()V - instanceof dxc/junit/opcodes/opc_instanceof/jm/SuperInterface - ifne Label3 - iconst_3 - goto LabelExit - -Label3: -; !(SubClass instanceof SuperInterface2) - new dxc/junit/opcodes/opc_instanceof/jm/SubClass - dup - invokespecial dxc/junit/opcodes/opc_instanceof/jm/SubClass.()V - instanceof dxc/junit/opcodes/opc_instanceof/jm/SuperInterface2 - ifeq Label4 - iconst_4 - goto LabelExit - -Label4: -; !(SubClass[] instanceof SuperInterface) - iconst_1 - anewarray dxc/junit/opcodes/opc_instanceof/jm/SubClass - instanceof dxc/junit/opcodes/opc_instanceof/jm/SuperInterface - ifeq Label6 - sipush 5 - goto LabelExit - -Label6: -; (SubClass[] instanceof Object) - iconst_1 - anewarray dxc/junit/opcodes/opc_instanceof/jm/SubClass - instanceof java/lang/Object - ifne Label7 - sipush 7 - goto LabelExit - -Label7: -; !(SubClass[] instanceof SubClass) - iconst_1 - anewarray dxc/junit/opcodes/opc_instanceof/jm/SubClass - instanceof dxc/junit/opcodes/opc_instanceof/jm/SubClass - ifeq Label8 - sipush 8 - goto LabelExit - -Label8: -; (SubClass[] instanceof SuperClass[]) - iconst_1 - anewarray dxc/junit/opcodes/opc_instanceof/jm/SubClass - instanceof [Ldxc/junit/opcodes/opc_instanceof/jm/SuperClass; - ifne Label9 - sipush 9 - goto LabelExit - -Label9: -; !(SuperClass[] instanceof SubClass[]) - iconst_1 - anewarray dxc/junit/opcodes/opc_instanceof/jm/SuperClass - instanceof [Ldxc/junit/opcodes/opc_instanceof/jm/SubClass; - ifeq Label0 - sipush 10 - goto LabelExit - -Label0: - iconst_0 -LabelExit: - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_2.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_2.java deleted file mode 100644 index fa3a477a7e9f84c626f6b1dff776337cd2af2989..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_2 { - - public int run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_3.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_3.j deleted file mode 100644 index cd0e33aecdd5571911783cc771049a499eff4b99..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_3.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 3 - .limit locals 4 - aload_0 - instanceof [[[Ldxc/junit/opcodes/opc_instanceof/TestStubs$TestStub; - pop - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_3.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_3.java deleted file mode 100644 index 919d5414762c15bad914cc891d5bcbef89d636b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_3 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.cfh deleted file mode 100644 index 6282aac1ca71b00f397f6669a222a524b15127d7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.cfh +++ /dev/null @@ -1,191 +0,0 @@ -//@class:dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0010 -// . . - 00 10 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 57, h: 0003: utf8{"dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4"} - // . . 6 d x c / j u n i t / o p c o d e s / o p c _ i n s t a n c e o f / j m / T _ o p c _ i n s t a n c e o f _ 4 - 01 00 36 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6f 70 63 5f 69 6e 73 74 61 6e 63 65 6f 66 2f 6a 6d 2f 54 5f 6f 70 63 5f 69 6e 73 74 61 6e 63 65 6f 66 5f 34 - // parsed:, offset 91, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 104, len 24, h: 0005: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 128, len 19, h: 0006: utf8{"java/lang/String"} - // . . . j a v a / l a n g / S t r i n g - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 - // parsed:, offset 147, len 9, h: 0007: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 156, len 6, h: 0008: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 162, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 07 00 0c - // parsed:, offset 167, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 174, len 3, h: 000b: type{java.lang.String} - // . . . - 07 00 06 - // parsed:, offset 177, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 183, len 26, h: 000d: utf8{"T_opc_instanceof_4.java"} - // . . . T _ o p c _ i n s t a n c e o f _ 4 . j a v a - 01 00 17 54 5f 6f 70 63 5f 69 6e 73 74 61 6e 63 65 6f 66 5f 34 2e 6a 61 76 61 - // parsed:, offset 209, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 212, len 3, h: 000f: type{dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_4} - // . . . - 07 00 03 -// parsed:, offset 215, len 0, h: end constant_pool -// parsed:, offset 215, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 217, len 2, h: this_class: type{dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_4} -// . . - 00 0f -// parsed:, offset 219, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 221, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 223, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 225, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 227, len:72,desc: ()V -// parsed:, offset 227, len 0, h: methods[0]: - // parsed:, offset 227, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 229, len 2, h: name: - // . . - 00 07 - // parsed:, offset 231, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 233, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 235, len 0, h: attributes[0]: - // parsed:, offset 235, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 237, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 241, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 243, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 245, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 254, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 256, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 258, len 0, h: end attributes[0] -// parsed:, offset 258, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 258, len:41,desc: (Ljava/lang/Object;)Z -// parsed:, offset 258, len 0, h: methods[1]: - // parsed:, offset 258, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 260, len 2, h: name: run - // . . - 00 08 - // parsed:, offset 262, len 2, h: descriptor: (Ljava/lang/Object;)Z - // . . - 00 05 - // parsed:, offset 264, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 266, len 0, h: attributes[0]: - // parsed:, offset 266, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 268, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 272, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 274, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 276, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_1 // 01 - // + - 2b - // parsed:, offset 1, len 3, h: 0001: instanceof type{java.lang.String} - // . . . -//@mod c1 00 0b - c1 01 0b - // parsed:, offset 4, len 1, h: 0004: ireturn - // . - ac - // parsed:, offset 285, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 287, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 289, len 0, h: end attributes[0] -// parsed:, offset 289, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Z -// parsed:, offset 289, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 291, len 0, h: attributes[0]: - // parsed:, offset 291, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 293, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 297, len 2, h: source: utf8{"T_opc_instanceof_4.java"} - // . . - 00 0d -// parsed:, offset 299, len 0, h: end attributes[0] -// parsed:, offset 299, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.j deleted file mode 100644 index ecef8ecf7346d902321ef5d3e746941a25f09144..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_4.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Z - .limit stack 1 - .limit locals 2 - aload_1 - instanceof java/lang/String - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.java deleted file mode 100644 index decdb1c1ccbb870045125819686781b7b2a804ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_4 { - - public boolean run(Object o) { - return (o instanceof String); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_5.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_5.j deleted file mode 100644 index 9765c16bb1dfe08841ace26f79086a6cfe29936c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_5.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_5.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Z - .limit stack 1 - .limit locals 2 - - fconst_1 - instanceof java/lang/String - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_5.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_5.java deleted file mode 100644 index 29b53cd4f6b6251b3d31df9d1972ffcce732b4f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_5 { - - public boolean run(Object o) { - return (o instanceof String); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_6.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_6.j deleted file mode 100644 index fcba05c8a157188f2fa7484e65a7c1f2a93315cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_6.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_6.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Z - .limit stack 1 - .limit locals 2 -; aload_1 - instanceof java/lang/String - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_6.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_6.java deleted file mode 100644 index 67ad4b979bd41e4b02d49354f45a2ffcab566d38..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_6 { - - public boolean run(Object o) { - return (o instanceof String); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_7.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_7.j deleted file mode 100644 index 7010432ae73b233147117674ffefd355cb196173..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_7.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_7.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 3 - .limit locals 4 - aload_0 - ; next: class not found error - instanceof [[[Ldxc/junit/opcodes/opc_instanceof/foobar1; - pop - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_7.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_7.java deleted file mode 100644 index 8842de686a966270ac95f9682086069ce940ba1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_7 { - - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.cfh b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.cfh deleted file mode 100644 index a6805469e79dced67edd8fc1cc3a78287d8c8a02..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0011 -// . . - 00 11 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 10 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 3, h: 0003: type{java.lang.String} - // . . . - 07 00 0c - // parsed:, offset 37, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 50, len 24, h: 0005: utf8{"(Ljava/lang/Object;)Z"} - // . . . ( L j a v a / l a n g / O b j e c t ; ) Z - 01 00 15 28 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b 29 5a - // parsed:, offset 74, len 26, h: 0006: utf8{"T_opc_instanceof_8.java"} - // . . . T _ o p c _ i n s t a n c e o f _ 8 . j a v a - 01 00 17 54 5f 6f 70 63 5f 69 6e 73 74 61 6e 63 65 6f 66 5f 38 2e 6a 61 76 61 - // parsed:, offset 100, len 9, h: 0007: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 109, len 6, h: 0008: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 115, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 07 00 0e - // parsed:, offset 120, len 57, h: 000a: utf8{"dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8"} - // . . 6 d x c / j u n i t / o p c o d e s / o p c _ i n s t a n c e o f / j m / T _ o p c _ i n s t a n c e o f _ 8 - 01 00 36 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6f 70 63 5f 69 6e 73 74 61 6e 63 65 6f 66 2f 6a 6d 2f 54 5f 6f 70 63 5f 69 6e 73 74 61 6e 63 65 6f 66 5f 38 - // parsed:, offset 177, len 7, h: 000b: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 184, len 19, h: 000c: utf8{"java/lang/String"} - // . . . j a v a / l a n g / S t r i n g - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 53 74 72 69 6e 67 - // parsed:, offset 203, len 3, h: 000d: type{dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_8} - // . . . - 07 00 0a - // parsed:, offset 206, len 6, h: 000e: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 212, len 5, h: 000f: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 217, len 3, h: 0010: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 220, len 0, h: end constant_pool -// parsed:, offset 220, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 222, len 2, h: this_class: type{dxc.junit.opcodes.opc_instanceof.jm.T_opc_instanceof_8} -// . . - 00 0d -// parsed:, offset 224, len 2, h: super_class: type{java.lang.Object} -// . . - 00 10 -// parsed:, offset 226, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 228, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 230, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 232, len:75,desc: ()V -// parsed:, offset 232, len 0, h: methods[0]: - // parsed:, offset 232, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 234, len 2, h: name: - // . . - 00 07 - // parsed:, offset 236, len 2, h: descriptor: ()V - // . . - 00 0e - // parsed:, offset 238, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 240, len 0, h: attributes[0]: - // parsed:, offset 240, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 242, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 246, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 248, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 250, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 259, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 261, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 263, len 0, h: end attributes[0] -// parsed:, offset 263, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 263, len:44,desc: (Ljava/lang/Object;)Z -// parsed:, offset 263, len 0, h: methods[1]: - // parsed:, offset 263, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 265, len 2, h: name: run - // . . - 00 08 - // parsed:, offset 267, len 2, h: descriptor: (Ljava/lang/Object;)Z - // . . - 00 05 - // parsed:, offset 269, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 271, len 0, h: attributes[0]: - // parsed:, offset 271, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 273, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 277, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 279, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 281, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 2, h: 0000: ldc #4048f5c3 // 3.14 - // . . - 12 0f - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 1, h: 0003: aload_1 // 01 - // + - 2b - // parsed:, offset 4, len 3, h: 0004: instanceof type{java.lang.String} - // . . . -//@mod c1 00 03 - c1 00 0f - // parsed:, offset 7, len 1, h: 0007: ireturn - // . - ac - // parsed:, offset 293, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 295, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 297, len 0, h: end attributes[0] -// parsed:, offset 297, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (Ljava/lang/Object;)Z -// parsed:, offset 297, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 299, len 0, h: attributes[0]: - // parsed:, offset 299, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 301, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 305, len 2, h: source: utf8{"T_opc_instanceof_8.java"} - // . . - 00 06 -// parsed:, offset 307, len 0, h: end attributes[0] -// parsed:, offset 307, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.j deleted file mode 100644 index 4dd32009e901cf40a699dd40a119f58c9657da26..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_instanceof_8.java -.class public dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;)Z - .limit stack 1 - .limit locals 2 - - ldc 3.14 - pop - - aload_1 - instanceof java/lang/String - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.java deleted file mode 100644 index 8a4990dc1ec1844b1778d7daa5992386cb567121..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/T_opc_instanceof_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class T_opc_instanceof_8 { - - public boolean run(Object o) { - return (o instanceof String); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/TestStubs.java deleted file mode 100644 index cf54729750d630363d3d814f106a55a7e6aada9d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_instanceof/jm/TestStubs.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_instanceof.jm; - -public class TestStubs { - @SuppressWarnings("unused") - private class TestStub { - // testE1 - } -} - -interface SuperInterface{ - -} - -interface SuperInterface2{ - -} - -class SuperClass implements SuperInterface{ - -} - -class SubClass extends SuperClass{ - -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/Test_opc_new.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/Test_opc_new.java deleted file mode 100644 index 14b6c64828966dd421bd7951d9e5c253f8628a27..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/Test_opc_new.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.opc_new.jm.T_opc_new_1; -import dxc.junit.opcodes.opc_new.jm.T_opc_new_3; -import dxc.junit.opcodes.opc_new.jm.T_opc_new_4; -import dxc.junit.opcodes.opc_new.jm.T_opc_new_5; -import dxc.junit.opcodes.opc_new.jm.T_opc_new_8; -import dxc.junit.opcodes.opc_new.jm.T_opc_new_9; - -public class Test_opc_new extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_opc_new_1 t = new T_opc_new_1(); - String s = t.run(); - assertNotNull(s); - assertEquals(0, s.compareTo("abc")); - } - - /** - * @title expected Error (exception during class loading) - */ - public void testE1() { - try { - T_opc_new_3.run(); - fail("expected Error"); - } catch (Error e) { - // expected - } - } - - /** - * @title expected IllegalAccessError - */ - public void testE2() { - // @uses dxc.junit.opcodes.opc_new.jm.TestStubs$TestStub - try { - T_opc_new_4 t = new T_opc_new_4(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE3() { - try { - T_opc_new_5 t = new T_opc_new_5(); - t.run(); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.18 - * @title attempt to instantiate interface - */ - public void testE4() { - // @uses dxc.junit.opcodes.opc_new.jm.TestInterface - try { - T_opc_new_8 t = new T_opc_new_8(); - t.run(); - fail("expected InstantiationError"); - } catch (InstantiationError ie) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.18 - * @title attempt to instantiate abstract - * class - */ - public void testE5() { - // @uses dxc.junit.opcodes.opc_new.jm.TestAbstractClass - T_opc_new_9 t = new T_opc_new_9(); - try { - t.run(); - fail("expected Error"); - } catch (Error iae) { - // expected - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.opc_new.jm.T_opc_new_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.18 - * @title attempt to create array using new - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.opc_new.jm.T_opc_new_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint n/a - * @title Attempt to access uninitialized class (before is - * called) - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.opc_new.jm.T_opc_new_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.16 - * @title constant pool type - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.opc_new.jm.T_opc_new_10"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_1.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_1.j deleted file mode 100644 index 63e9ddc79e0cc57c0fd569f049ea86f3cefee367..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_1.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_1.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()Ljava/lang/String; - .limit stack 3 - .limit locals 1 - - new java/lang/String - dup - ldc "abc" - invokespecial java/lang/String/(Ljava/lang/String;)V - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_1.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_1.java deleted file mode 100644 index 9dffdbdf95ad3ec9b47f6e60cbf9bf52f6fede1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_1 { - - public String run() { - return new String("abc"); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.cfh b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.cfh deleted file mode 100644 index acc5a5dc8bd357a8fa70b9dedb493a65b323e44e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.cfh +++ /dev/null @@ -1,197 +0,0 @@ -//@class:dxc/junit/opcodes/opc_new/jm/T_opc_new_10 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000f -// . . - 00 0f -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 08 - // parsed:, offset 15, len 44, h: 0002: utf8{"dxc/junit/opcodes/opc_new/jm/T_opc_new_10"} - // . . ) d x c / j u n i t / o p c o d e s / o p c _ n e w / j m / T _ o p c _ n e w _ 1 0 - 01 00 29 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6f 70 63 5f 6e 65 77 2f 6a 6d 2f 54 5f 6f 70 63 5f 6e 65 77 5f 31 30 - // parsed:, offset 59, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 78, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 91, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 100, len 23, h: 0006: utf8{"()Ljava/lang/Object;"} - // . . . ( ) L j a v a / l a n g / O b j e c t ; - 01 00 14 28 29 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b - // parsed:, offset 123, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 129, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 134, len 20, h: 0009: utf8{"T_opc_new_10.java"} - // . . . T _ o p c _ n e w _ 1 0 . j a v a - 01 00 11 54 5f 6f 70 63 5f 6e 65 77 5f 31 30 2e 6a 61 76 61 - // parsed:, offset 154, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 161, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 167, len 5, h: 000c: float{0x4048f5c3 / 3.14} - // . @ H . . - 04 40 48 f5 c3 - // parsed:, offset 172, len 3, h: 000d: type{dxc.junit.opcodes.opc_new.jm.T_opc_new_10} - // . . . - 07 00 02 - // parsed:, offset 175, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 178, len 0, h: end constant_pool -// parsed:, offset 178, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 180, len 2, h: this_class: type{dxc.junit.opcodes.opc_new.jm.T_opc_new_10} -// . . - 00 0d -// parsed:, offset 182, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 184, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 186, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 188, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 190, len:78,desc: ()V -// parsed:, offset 190, len 0, h: methods[0]: - // parsed:, offset 190, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 192, len 2, h: name: - // . . - 00 05 - // parsed:, offset 194, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 196, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 198, len 0, h: attributes[0]: - // parsed:, offset 198, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 200, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 204, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 206, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 208, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 217, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 219, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 221, len 0, h: end attributes[0] -// parsed:, offset 221, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 221, len:47,desc: ()Ljava/lang/Object; -// parsed:, offset 221, len 0, h: methods[1]: - // parsed:, offset 221, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 223, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 225, len 2, h: descriptor: ()Ljava/lang/Object; - // . . - 00 06 - // parsed:, offset 227, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 229, len 0, h: attributes[0]: - // parsed:, offset 229, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 231, len 4, h: length: 00000017 - // . . . . - 00 00 00 17 - // parsed:, offset 235, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 237, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 239, len 4, h: code_length: 0000000b - // . . . . - 00 00 00 0b - // parsed:, offset 0, len 2, h: 0000: ldc #4048f5c3 // 3.14 - // . . - 12 0c - // parsed:, offset 2, len 1, h: 0002: pop - // W - 57 - // parsed:, offset 3, len 3, h: 0003: new type{java.lang.Object} - // . . . -//@mod bb 00 0e - bb 00 0c - // parsed:, offset 6, len 1, h: 0006: dup - // Y - 59 - // parsed:, offset 7, len 3, h: 0007: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 10, len 1, h: 000a: areturn - // . - b0 - // parsed:, offset 254, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 256, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 258, len 0, h: end attributes[0] -// parsed:, offset 258, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()Ljava/lang/Object; -// parsed:, offset 258, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 260, len 0, h: attributes[0]: - // parsed:, offset 260, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 262, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 266, len 2, h: source: utf8{"T_opc_new_10.java"} - // . . - 00 09 -// parsed:, offset 268, len 0, h: end attributes[0] -// parsed:, offset 268, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.j deleted file mode 100644 index c55935f9983f37538505bea69a0e8def99cdfe9b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_10.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_10 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 1 - - ldc 3.14 - pop - - new java/lang/Object - dup - invokespecial java/lang/Object/()V - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.java deleted file mode 100644 index 7b549bb8f6b1ddb937f31cacfc63e25f4ca1b813..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_10.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_10 { - - public Object run() { - return new Object(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_2.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_2.j deleted file mode 100644 index 4dd2001d7dbe25d1837a57fa5928715374815c1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_2.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_2.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_2 -.super java/lang/Object - -.field i I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - aload_0 - bipush 123 - putfield dxc.junit.opcodes.opc_new.jm.T_opc_new_2.i I - - return -.end method - - -.method public static run()I - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/opc_new/jm/T_opc_new_2 - dup -; invokespecial dxc/junit/opcodes/opc_new/jm/T_opc_new_2/()V - astore_0 - - aload_0 - getfield dxc.junit.opcodes.opc_new.jm.T_opc_new_2.i I - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_2.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_2.java deleted file mode 100644 index 4fe58d088e46bf9f386016b249561b889674c945..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_2.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_2 { - - int i = 123; - - public static int run() { - T_opc_new_2 t = new T_opc_new_2(); - return t.i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_3.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_3.j deleted file mode 100644 index b7d35f88f3100702c5a4695a497a91145c8a3d70..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_3.j +++ /dev/null @@ -1,61 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_3.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_3 -.super java/lang/Object - -.field static i I - -.method static ()V - .limit stack 2 - .limit locals 0 - - bipush 123 - iconst_0 - idiv - putstatic dxc.junit.opcodes.opc_new.jm.T_opc_new_3.i I - - return - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public static run()I - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/opc_new/jm/T_opc_new_3 - dup - invokespecial dxc/junit/opcodes/opc_new/jm/T_opc_new_3/()V - astore_0 - - getstatic dxc.junit.opcodes.opc_new.jm.T_opc_new_3.i I - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_3.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_3.java deleted file mode 100644 index 9a75f14b40cc02d70dee725adada8ef58bdea41a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_3.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_3 { - - static int i = 123 / 0; - - public static int run() { - T_opc_new_3 t = new T_opc_new_3(); - return t.i; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_4.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_4.j deleted file mode 100644 index e596e9e58ebbac0acfba23a468c573c286deda0f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_4.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_4.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/opc_new/jm/TestStubs$TestStub - dup - invokespecial dxc/junit/opcodes/opc_new/jm/TestStubs$TestStub/()V - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_4.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_4.java deleted file mode 100644 index 2a340facc3aadfa5736fe03bbafa63f66b18a2b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_4 { - - public Object run() { - return null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_5.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_5.j deleted file mode 100644 index 8ddb620ad0ab0bd7ca170c0a5c161e7c2defcf79..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_5.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_5.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/opc_new/jm/Foobar - dup - invokespecial dxc/junit/opcodes/opc_new/jm/Foobar/()V - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_5.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_5.java deleted file mode 100644 index 08927393cb4e93966c60afed1127482c03dc0a18..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_5 { - - public Object run() { - return null; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.cfh deleted file mode 100644 index 10917fa5e1ff036eed8ffa613c94bbaaff3a50a3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.cfh +++ /dev/null @@ -1,188 +0,0 @@ -//@class:dxc/junit/opcodes/opc_new/jm/T_opc_new_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 67, len 23, h: 0007: utf8{"()Ljava/lang/Object;"} - // . . . ( ) L j a v a / l a n g / O b j e c t ; - 01 00 14 28 29 4c 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 3b - // parsed:, offset 90, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 97, len 43, h: 0009: utf8{"dxc/junit/opcodes/opc_new/jm/T_opc_new_6"} - // . . ( d x c / j u n i t / o p c o d e s / o p c _ n e w / j m / T _ o p c _ n e w _ 6 - 01 00 28 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 6f 70 63 5f 6e 65 77 2f 6a 6d 2f 54 5f 6f 70 63 5f 6e 65 77 5f 36 - // parsed:, offset 140, len 3, h: 000a: type{dxc.junit.opcodes.opc_new.jm.T_opc_new_6} - // . . . - 07 00 09 - // parsed:, offset 143, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 149, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 152, len 19, h: 000d: utf8{"T_opc_new_6.java"} - // . . . T _ o p c _ n e w _ 6 . j a v a - 01 00 10 54 5f 6f 70 63 5f 6e 65 77 5f 36 2e 6a 61 76 61 -// parsed:, offset 171, len 0, h: end constant_pool -// parsed:, offset 171, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 173, len 2, h: this_class: type{dxc.junit.opcodes.opc_new.jm.T_opc_new_6} -// . . - 00 0a -// parsed:, offset 175, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 177, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 179, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 181, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 183, len:75,desc: ()V -// parsed:, offset 183, len 0, h: methods[0]: - // parsed:, offset 183, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 185, len 2, h: name: - // . . - 00 04 - // parsed:, offset 187, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 189, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 191, len 0, h: attributes[0]: - // parsed:, offset 191, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 193, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 197, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 199, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 201, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 210, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 212, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 214, len 0, h: end attributes[0] -// parsed:, offset 214, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 214, len:44,desc: ()Ljava/lang/Object; -// parsed:, offset 214, len 0, h: methods[1]: - // parsed:, offset 214, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 216, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 218, len 2, h: descriptor: ()Ljava/lang/Object; - // . . - 00 07 - // parsed:, offset 220, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 222, len 0, h: attributes[0]: - // parsed:, offset 222, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 224, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 228, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 230, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 232, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 3, h: 0000: new type{java.lang.Object} - // . . . -//@mod bb 00 0c - bb 01 0c - // parsed:, offset 3, len 1, h: 0003: dup - // Y - 59 - // parsed:, offset 4, len 3, h: 0004: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 7, len 1, h: 0007: areturn - // . - b0 - // parsed:, offset 244, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 246, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 248, len 0, h: end attributes[0] -// parsed:, offset 248, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()Ljava/lang/Object; -// parsed:, offset 248, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 250, len 0, h: attributes[0]: - // parsed:, offset 250, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 252, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 256, len 2, h: source: utf8{"T_opc_new_6.java"} - // . . - 00 0d -// parsed:, offset 258, len 0, h: end attributes[0] -// parsed:, offset 258, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.j deleted file mode 100644 index a6c2e1444db06e33ba92ed9184d03eec59c74ad7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_6.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 1 - - new java/lang/Object - dup - invokespecial java/lang/Object/()V - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.java deleted file mode 100644 index 3ff3df7d47f0741e961dd8be2d05d8599ddf2e80..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_6 { - - public Object run() { - return new Object(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_7.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_7.j deleted file mode 100644 index 482b25e4bf16ae7719ac0374a91a9b645b5d36df..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_7.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_7.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 1 - - new [Ljava/lang/Object; - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_7.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_7.java deleted file mode 100644 index 37256b463e66d1fb1e45ac4d1f7beb06a8c4cd59..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_7 { - - public Object run() { - return new Object(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_8.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_8.j deleted file mode 100644 index 8ca522dc5154d30bf7fb48d5f36c82b4614c9ecf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_8.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_8.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/opc_new/jm/TestInterface - dup - invokespecial dxc/junit/opcodes/opc_new/jm/TestInterface/()V - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_8.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_8.java deleted file mode 100644 index dfe96211f2a09d7a035dbd2109041c69aa69e4fe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_8 { - - public Object run() { - return new Object(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_9.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_9.j deleted file mode 100644 index 688c67871d32c9d1e6a5213509316991821c0b34..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_9.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_new_9.java -.class public dxc/junit/opcodes/opc_new/jm/T_opc_new_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 1 - - new dxc/junit/opcodes/opc_new/jm/TestAbstractClass - dup - invokespecial dxc/junit/opcodes/opc_new/jm/TestAbstractClass/()V - - aload_0 - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_9.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_9.java deleted file mode 100644 index 8999e7f974fa80c68f605418f95cfd979bab3010..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/T_opc_new_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - -public class T_opc_new_9 { - - public Object run() { - return new Object(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/TestStubs.java deleted file mode 100644 index 7d8214a4bcfdc8252418dfd1dd1988eff2fde15d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_new/jm/TestStubs.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_new.jm; - - -interface TestInterface { - public abstract void test(); -} - -abstract class TestAbstractClass{ - -} - -public class TestStubs { - private static @SuppressWarnings("unused") class TestStub { - private TestStub() { - - } - // testE3 - } -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/Test_opc_return.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/Test_opc_return.java deleted file mode 100644 index 98b4c94b904c13ca2173987e9f2cbf4249db6bae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/Test_opc_return.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_return; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.opc_return.jm.T_opc_return_1; -import dxc.junit.opcodes.opc_return.jm.T_opc_return_2; -import dxc.junit.opcodes.opc_return.jm.T_opc_return_3; -import dxc.junit.opcodes.opc_return.jm.T_opc_return_4; - -public class Test_opc_return extends DxTestCase { - - /** - * @title check that frames are discarded and reinstananted correctly - */ - public void testN1() { - T_opc_return_1 t = new T_opc_return_1(); - assertEquals(123456, t.run()); - } - - /** - * @title check that monitor is released by return - */ - public void testN2() { - assertTrue(T_opc_return_2.execute()); - } - - - /** - * @title Method is synchronized but thread is not monitor owner - */ - public void testE1() { - T_opc_return_3 t = new T_opc_return_3(); - try { - assertTrue(t.run()); - fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @title Lock structural rule 1 is violated - */ - public void testE2() { - T_opc_return_4 t = new T_opc_return_4(); - try { - t.run(); - // the JVM spec says that it is optional to implement the structural - // lock rules, see JVM spec 8.13 and monitorenter/exit opcodes. - System.out.print("dvmvfe:"); - //fail("expected IllegalMonitorStateException"); - } catch (IllegalMonitorStateException imse) { - // expected - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - int - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.opc_return.jm.T_opc_return_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title method's return type - reference - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.opc_return.jm.T_opc_return_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_1.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_1.j deleted file mode 100644 index fe94d2e63602489aff6e19c0088b068fdc9ee3b5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_1.j +++ /dev/null @@ -1,82 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_return_1.java -.class public dxc/junit/opcodes/opc_return/jm/T_opc_return_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit locals 6 - .limit stack 6 - - iconst_1 - istore_1 - iconst_2 - istore_2 - iconst_3 - istore 3 - - iconst_4 - - invokestatic dxc/junit/opcodes/opc_return/jm/T_opc_return_1/test()V - - iconst_4 - if_icmpne Label0 - - iload_1 - iconst_1 - if_icmpne Label0 - - iload_2 - iconst_2 - if_icmpne Label0 - - iload_3 - iconst_3 - if_icmpne Label0 - - ldc 123456 - ireturn - -Label1: - pop -Label0: - iconst_0 - ireturn - -.end method - -.method private static test()V - .limit locals 4 - .limit stack 4 - - ldc 0xaaa - istore_1 - ldc 0xbbbb - istore_2 - ldc 0xcccc - istore_3 - - ldc 0xdddd - - ldc 0xcafe - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_1.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_1.java deleted file mode 100644 index b2170ff9043a118cdb7a078f4b95d2ac57eb6559..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_1.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_return.jm; - -public class T_opc_return_1 { - - public int run() { - return 123456; - } - - private static void test() { - int a = 0xaaaa; - int b = 0xbbbb; - int c = 0xcccc; - return; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_2.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_2.j deleted file mode 100644 index b6f383bfa58e35c71e89610908078774b0f1ac92..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_2.j +++ /dev/null @@ -1,159 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_return_2.java -.class public dxc/junit/opcodes/opc_return/jm/T_opc_return_2 -.super java/lang/Object -.implements java/lang/Runnable - -.field value I -.field failed Z - -.method public ()V - .limit stack 3 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.value I - - aload_0 - iconst_0 - putfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.failed Z - - return - -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 2 - - iconst_0 - istore_1 - -Label4: - iload_1 - sipush 1000 - if_icmpge Label3 - - aload_0 - invokespecial dxc/junit/opcodes/opc_return/jm/T_opc_return_2/test()V - - iinc 1 1 - - goto Label4 - - -Label3: - return - -.end method - - - -.method private synchronized test()V - .limit stack 3 - .limit locals 2 - -.line 16 - aload_0 - dup - getfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.value I - dup - istore_1 - - iconst_1 - iadd - putfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.value I - - iinc 1 1 - - invokestatic java/lang/Thread/yield()V - - iload_1 - aload_0 - getfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.value I - if_icmpeq Label0 - - aload_0 - iconst_1 - putfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.failed Z - -Label0: - return -.end method - - - -.method public static execute()Z - .limit stack 3 - .limit locals 4 - - new dxc/junit/opcodes/opc_return/jm/T_opc_return_2 - dup - invokespecial dxc/junit/opcodes/opc_return/jm/T_opc_return_2/()V - astore_0 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_1 - - new java/lang/Thread - dup - aload_0 - invokespecial java/lang/Thread/(Ljava/lang/Runnable;)V - astore_2 - - aload_1 - invokevirtual java/lang/Thread/start()V - - aload_2 - invokevirtual java/lang/Thread/start()V - -Label12: - ldc2_w 5000 - invokestatic java/lang/Thread/sleep(J)V - -Label13: - goto Label0 - -Label14: ; exception handler - astore_3 - goto Label3 - -Label0: - aload_0 - getfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.value I - sipush 2000 - if_icmpne Label3 - - aload_0 - getfield dxc.junit.opcodes.opc_return.jm.T_opc_return_2.failed Z - ifne Label3 - - iconst_1 - ireturn - -Label3: - iconst_0 - ireturn - -.catch java/lang/InterruptedException from Label12 to Label13 using Label14 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_2.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_2.java deleted file mode 100644 index b70986f05b7d53449e768ac5d2e337d25e40b997..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_2.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_return.jm; - -public class T_opc_return_2 implements Runnable { - public final static int CNT = 1000; - int value = 0; - boolean failed = false; - - public void run() { - for(int i = 0; i < CNT; i++) { - test(); - } - } - - private synchronized void test() { - value++; - int c = value; - Thread.yield(); - if(c != value) - failed = true; - } - - public static boolean execute() { - T_opc_return_2 test = new T_opc_return_2(); - Thread t1 = new Thread(test); - Thread t2 = new Thread(test); - - t1.start(); - t2.start(); - - try - { - Thread.sleep(5000); - } - catch(InterruptedException ie) { - return false; - } - - if(test.value != CNT * 2) - return false; - return !test.failed; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_3.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_3.j deleted file mode 100644 index 33b99cc43918a8e55303d10159fa7697daf123bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_3.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_return_3.java -.class public dxc/junit/opcodes/opc_return/jm/T_opc_return_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method private synchronized test()V - .limit stack 1 - aload_0 - monitorexit - return -.end method - - - -.method public run()Z - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial dxc/junit/opcodes/opc_return/jm/T_opc_return_3/test()V - - iconst_1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_3.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_3.java deleted file mode 100644 index 1e1ee3629bcbd02a4d3319e83e17bd6062a45e8f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_3.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_return.jm; - -public class T_opc_return_3 { - - private synchronized void test() { - return; - } - - public boolean run() { - test(); - return true; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_4.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_4.j deleted file mode 100644 index 80c1778ac76c72d468da01e0ad3fa3c810ce9f75..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_4.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_return_4.java -.class public dxc/junit/opcodes/opc_return/jm/T_opc_return_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 1 - .limit locals 1 - - aload_0 - monitorenter - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_4.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_4.java deleted file mode 100644 index 89dddd5c4bddf395905b3082a16b7af5cdfdd48a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_return.jm; - -public class T_opc_return_4 { - - public void run() { - return; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_5.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_5.j deleted file mode 100644 index aa2d8bc2192773ca112e34d6cd8e73692f1558ec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_5.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_return_5.java -.class public dxc/junit/opcodes/opc_return/jm/T_opc_return_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()I - .limit stack 1 - .limit locals 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_5.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_5.java deleted file mode 100644 index 4025b845bf8c31546720540e08fb500fd43c9fb7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_return.jm; - -public class T_opc_return_5 { - - public void run() { - return; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_6.j b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_6.j deleted file mode 100644 index f28639467510f511f46144eb345736792b40ab8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_6.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_opc_return_6.java -.class public dxc/junit/opcodes/opc_return/jm/T_opc_return_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Ljava/lang/String; - .limit stack 1 - .limit locals 1 - - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_6.java b/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_6.java deleted file mode 100644 index 27def5eca2847988f62d61c9701e952d8dfeb940..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/opc_return/jm/T_opc_return_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.opc_return.jm; - -public class T_opc_return_6 { - - public void run() { - return; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/Test_pop.java b/tools/dx-tests/src/dxc/junit/opcodes/pop/Test_pop.java deleted file mode 100644 index 893b4256d117da36fd8dc85c5295d8a17c01f077..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/Test_pop.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.pop.jm.T_pop_1; -import dxc.junit.opcodes.pop.jm.T_pop_2; - -public class Test_pop extends DxTestCase { - - /** - * @title type of argument - int - */ - public void testN1() { - T_pop_1 t = new T_pop_1(); - assertEquals(1234, t.run()); - } - - /** - * @title type of argument - float - */ - public void testN2() { - T_pop_2 t = new T_pop_2(); - assertEquals(1234f, t.run()); - } - - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.pop.jm.T_pop_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - long - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.pop.jm.T_pop_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_1.j b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_1.j deleted file mode 100644 index 730d4a62e29c2eadf39eb7d1f979974284087f57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_1.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop_1.java -.class public dxc/junit/opcodes/pop/jm/T_pop_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 2 - .limit locals 2 - - sipush 1234 - sipush 5678 - pop - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_1.java b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_1.java deleted file mode 100644 index d1f799e7a06cde7d9d80c4cfca59b9952913f363..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop.jm; - -public class T_pop_1 { - - public int run() { - return 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_2.j b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_2.j deleted file mode 100644 index 19977d28db45ca034b39e942a9c3044c481f1cb3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop_2.java -.class public dxc/junit/opcodes/pop/jm/T_pop_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()F - .limit stack 2 - .limit locals 2 - ldc 1234.0 - ldc 5678.0 - pop - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_2.java b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_2.java deleted file mode 100644 index b14351aee0a5d1030acd3693684e6297e4282ddd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop.jm; - -public class T_pop_2 { - - public float run() { - return 1234f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_3.j b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_3.j deleted file mode 100644 index ce81ca5a4bb092e17c52a30fee769631fc94e52c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop_3.java -.class public dxc/junit/opcodes/pop/jm/T_pop_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 2 - .limit locals 3 - sipush 1234 -; sipush 1234 - pop - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_3.java b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_3.java deleted file mode 100644 index 46c457470f33aaf98e86cd1055263aefd24af8d5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop.jm; - -public class T_pop_3 { - - public int run() { - return 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_4.j b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_4.j deleted file mode 100644 index 3f9f52cdfba6f67207ffd13e23c696c663b642e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop_4.java -.class public dxc/junit/opcodes/pop/jm/T_pop_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 3 - .limit locals 3 - - sipush 1234 - lconst_1 - - pop - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_4.java b/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_4.java deleted file mode 100644 index 5c2bd53b08262581b309ac910964ed9f53d39c7c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop/jm/T_pop_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop.jm; - -public class T_pop_4 { - - public int run() { - return 1234; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/Test_pop2.java b/tools/dx-tests/src/dxc/junit/opcodes/pop2/Test_pop2.java deleted file mode 100644 index 01af28994fb2debe09893eb73beeea22c41e40b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/Test_pop2.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.pop2.jm.T_pop2_1; -import dxc.junit.opcodes.pop2.jm.T_pop2_2; - -public class Test_pop2 extends DxTestCase { - - /** - * @title type of argument - long - */ - public void testN1() { - T_pop2_1 t = new T_pop2_1(); - assertEquals(1234l, t.run()); - } - - /** - * @title type of argument - double - */ - public void testN2() { - T_pop2_2 t = new T_pop2_2(); - assertEquals(1234d, t.run()); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.pop2.jm.T_pop2_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.pop2.jm.T_pop2_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_1.j b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_1.j deleted file mode 100644 index ce2c92a9bb4b946df6ecac0e80174920dd5d313d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_1.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop2_1.java -.class public dxc/junit/opcodes/pop2/jm/T_pop2_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()J - .limit stack 4 - .limit locals 2 - - ldc2_w 1234 - ldc2_w 5678 - pop2 - - lreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_1.java b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_1.java deleted file mode 100644 index 5d2109074db8eda1d55dae4d7173c5cbc986e6de..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop2.jm; - -public class T_pop2_1 { - - public long run() { - return 1234l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_2.j b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_2.j deleted file mode 100644 index d184609469c97dff91a2ab56bfb5ec0ab43c2fa5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop2_2.java -.class public dxc/junit/opcodes/pop2/jm/T_pop2_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()D - .limit stack 4 - .limit locals 2 - ldc2_w 1234.0 - ldc2_w 5678.0 - pop2 - dreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_2.java b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_2.java deleted file mode 100644 index 329658a06b8f62b902a3a5e4179c1b68dada3562..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop2.jm; - -public class T_pop2_2 { - - public double run() { - return 1234d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_3.j b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_3.j deleted file mode 100644 index 82b7a69cf86c8e7d78709e2d6daaec069cf52059..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_3.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop2_3.java -.class public dxc/junit/opcodes/pop2/jm/T_pop2_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()J - .limit stack 2 - .limit locals 3 - ldc2_w 1234 -; ldc2_w 1234 - pop2 - lreturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_3.java b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_3.java deleted file mode 100644 index 1b5fefcf64848dbcd3ca2c31e24c78c581dae895..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop2.jm; - -public class T_pop2_3 { - - public long run() { - return 1234l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_4.j b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_4.j deleted file mode 100644 index 5b4978887e690bc56ca9ffb661cad5a7469959a4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_4.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_pop2_4.java -.class public dxc/junit/opcodes/pop2/jm/T_pop2_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()J - .limit stack 3 - .limit locals 3 - - ldc2_w 1234 - iconst_1 - - pop2 - - lreturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_4.java b/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_4.java deleted file mode 100644 index 9b3c66eb75e2f3077fd2e3e0a63eb711626a8a08..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/pop2/jm/T_pop2_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.pop2.jm; - -public class T_pop2_4 { - - public long run() { - return 1234l; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/TPutfield.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/TPutfield.java deleted file mode 100644 index e417405e641efa2e69110eedae270122176dc289..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/TPutfield.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield; - -class TPutfield { - // used by testE2 - @SuppressWarnings("unused") - private int TestStubField = 0; - - // used by testE7 - protected int TestStubFieldP = 0; - - // used by testE5 - public final int TestStubFieldFinal = 0; -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/Test_putfield.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/Test_putfield.java deleted file mode 100644 index dd9b11a93db6de58aedf32e0c616d6f74e874e4d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/Test_putfield.java +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.putfield.jm.T_putfield_1; -import dxc.junit.opcodes.putfield.jm.T_putfield_10; -import dxc.junit.opcodes.putfield.jm.T_putfield_11; -import dxc.junit.opcodes.putfield.jm.T_putfield_12; -import dxc.junit.opcodes.putfield.jm.T_putfield_13; -import dxc.junit.opcodes.putfield.jm.T_putfield_14; -import dxc.junit.opcodes.putfield.jm.T_putfield_15; -import dxc.junit.opcodes.putfield.jm.T_putfield_16; -import dxc.junit.opcodes.putfield.jm.T_putfield_18; -import dxc.junit.opcodes.putfield.jm.T_putfield_2; -import dxc.junit.opcodes.putfield.jm.T_putfield_7; -import dxc.junit.opcodes.putfield.jm.T_putfield_8; -import dxc.junit.opcodes.putfield.jm.T_putfield_9; - -public class Test_putfield extends DxTestCase { - - /** - * @title type - int - */ - public void testN1() { - T_putfield_1 t = new T_putfield_1(); - assertEquals(0, t.st_i1); - t.run(); - assertEquals(1000000, t.st_i1); - } - - /** - * @title type - double - */ - public void testN2() { - T_putfield_2 t = new T_putfield_2(); - assertEquals(0d, t.st_d1); - t.run(); - assertEquals(1000000d, t.st_d1); - } - - /** - * @title modification of final field - */ - public void testN3() { - T_putfield_12 t = new T_putfield_12(); - assertEquals(0, t.st_i1); - t.run(); - assertEquals(1000000, t.st_i1); - } - - /** - * @title modification of protected field from subclass - */ - public void testN4() { - // @uses dxc.junit.opcodes.putfield.jm.T_putfield_1 - T_putfield_14 t = new T_putfield_14(); - assertEquals(0, t.getProtectedField()); - t.run(); - assertEquals(1000000, t.getProtectedField()); - } - - /** - * @title assignment compatible object references - */ - public void testN5() { - // @uses dxc.junit.opcodes.putfield.jm.TChild - // @uses dxc.junit.opcodes.putfield.jm.TSuper - T_putfield_18 t = new T_putfield_18(); - assertEquals(0, t.run().compareTo("xyz")); - } - - /** - * @title assignment compatible values - */ - public void testN6() { - T_putfield_16 t = new T_putfield_16(); - assertNull(t.o); - t.run(); - assertEquals("", (String) t.o); - } - - /** - * @title attempt to set static field - */ - public void testE1() { - try { - T_putfield_7 t = new T_putfield_7(); - t.run(); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title modification of non-accessible private field - */ - public void testE2() { - // @uses dxc.junit.opcodes.putfield.TPutfield - try { - T_putfield_8 t = new T_putfield_8(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NullPointerException - */ - public void testE3() { - T_putfield_9 t = new T_putfield_9(); - try { - t.run(); - fail("expected NullPointerException"); - } catch (NullPointerException e) { - // expected - } - } - - /** - * @title expected NoSuchFieldError - */ - public void testE4() { - try { - T_putfield_10 t = new T_putfield_10(); - t.run(); - fail("expected NoSuchFieldError"); - } catch (NoSuchFieldError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Modification of final field in other class - */ - public void testE5() { - // @uses dxc.junit.opcodes.putfield.TPutfield - try { - T_putfield_11 t = new T_putfield_11(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - - // FIXME: "fail" commented out temporarily - check - /** - * @title modification of superclass' private field from subclass - * FIXME: is this a JVM bug? - */ - public void testE6() { - // @uses dxc.junit.opcodes.putfield.jm.T_putfield_1 - try { - T_putfield_15 t = new T_putfield_15(); - assertEquals(0, t.getPvtField()); - t.run(); - assertEquals(10101, t.getPvtField()); - //fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title modification of non-accessible protected field - */ - public void testE7() { - // @uses dxc.junit.opcodes.putfield.TPutfield - try { - T_putfield_13 t = new T_putfield_13(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.12 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.putfield.jm.T_putfield_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.putfield.jm.T_putfield_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.17 - * @title type of argument - float instead of - * int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.putfield.jm.T_putfield_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.17 - * @title type of argument - assignment - * incompatible references - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.putfield.jm.T_putfield_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.17 - * @title type of argument - assignment - * incompatible values - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.putfield.jm.T_putfield_20"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.16 - * @title type of argument - assignment - * incompatible object references - */ - public void testVFE6() { - // @uses dxc.junit.opcodes.putfield.jm.TChild - // @uses dxc.junit.opcodes.putfield.jm.TSuper - try { - Class.forName("dxc.junit.opcodes.putfield.jm.T_putfield_19"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_1.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_1.j deleted file mode 100644 index 05a16e532a0c696588b89f110b67e7046b5f29c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_1.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_1.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_1 -.super java/lang/Object - -.field public st_i1 I -.field protected st_p1 I -.field private st_pvt1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_1.st_i1 I - return -.end method - -.method public getPvtField()I - aload_0 - getfield dxc.junit.opcodes.putfield.jm.T_putfield_1.st_pvt1 I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_1.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_1.java deleted file mode 100644 index 23ae8508924e20f32804d50efc39c21825fe3385..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_1.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_1 { - public int st_i1; - protected int st_p1; - private int st_pvt1; - - public void run() { - st_i1 = 1000000; - } - - public int getPvtField() - { - return st_pvt1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_10.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_10.j deleted file mode 100644 index 858ee70648131eac15513c263275303668d2269d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_10.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_10.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_10 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_10.st_i1N I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_10.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_10.java deleted file mode 100644 index 361e4f80fec6be7be2404a118025066c2e306cc7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_10.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_10 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_11.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_11.j deleted file mode 100644 index f11374f4659c68cee426d709693050f4e039f061..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_11.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_11.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/putfield/TPutfield - dup - invokespecial dxc/junit/opcodes/putfield/TPutfield/()V - - ldc 1000000 - putfield dxc.junit.opcodes.putfield.TPutfield.TestStubFieldFinal I - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_11.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_11.java deleted file mode 100644 index e24a160d21a95dc21d8305edfe013456263eabe7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_11.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - - -public class T_putfield_11 { - public void run() { - - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_12.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_12.j deleted file mode 100644 index 7650f550f4621feaa2abeef761ac5241ec52c0a0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_12.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_12.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_12 -.super java/lang/Object - -.field public final st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_12.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_12.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_12.java deleted file mode 100644 index c40a5e8e55e1ba5e93e1425471d5c41af1d1ab45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_12.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_12 { - public int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_13.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_13.j deleted file mode 100644 index 02693254dc8ed6a46d32c79eead2cb6bf2e2b3ca..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_13.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_13.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_13 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - - new dxc/junit/opcodes/putfield/TPutfield - dup - invokespecial dxc/junit/opcodes/putfield/TPutfield/()V - - ldc 1000000 - putfield dxc.junit.opcodes.putfield.TPutfield.TestStubFieldP I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_13.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_13.java deleted file mode 100644 index 3c2708bb4b25f5ffe8257a0d706c412c801cd736..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_13.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_13 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_14.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_14.j deleted file mode 100644 index 4a7ef8871996bd0787de8561ddfa6ca0fc0c06e8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_14.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_14.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_14 -.super dxc/junit/opcodes/putfield/jm/T_putfield_1 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/putfield/jm/T_putfield_1/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_1.st_p1 I - return -.end method - -.method public getProtectedField()I - .limit stack 2 - aload_0 - getfield dxc.junit.opcodes.putfield.jm.T_putfield_1.st_p1 I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_14.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_14.java deleted file mode 100644 index 8ba1e76305265b5ff487af1d8909d29f1a721443..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_14.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_14 extends T_putfield_1{ - - public void run() { - st_p1 = 1000000; - } - - public int getProtectedField(){ - return st_p1; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_15.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_15.j deleted file mode 100644 index ee2c082503a9f203c6b9858001094b54c1d601fa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_15.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_15.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_15 -.super dxc/junit/opcodes/putfield/jm/T_putfield_1 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/putfield/jm/T_putfield_1/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 10101 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_1.st_pvt1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_15.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_15.java deleted file mode 100644 index fabb97afd3ddfbe4dfd69bacb9c47302a5f112cb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_15.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_15 extends T_putfield_1{ - - public void run() { - throw new UnsupportedOperationException(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_16.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_16.j deleted file mode 100644 index d62bb323b0e04652c2a6f30b899b533146b3719f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_16.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_16.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_16 -.super java/lang/Object - -.field public o Ljava/lang/Object; - - -.method public ()V - .limit stack 2 - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - aconst_null - putfield dxc.junit.opcodes.putfield.jm.T_putfield_16.o Ljava/lang/Object; - return -.end method - - -.method public run()V - .limit stack 4 - .limit locals 2 - - aload_0 - new java/lang/String - dup - ldc "" - invokespecial java/lang/String/(Ljava/lang/String;)V - - putfield dxc.junit.opcodes.putfield.jm.T_putfield_16.o Ljava/lang/Object; - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_16.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_16.java deleted file mode 100644 index 3ea025ec4c3adb6a559d3bc8af7758a20f23c8fc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_16.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_16 { - - public Object o = null; - - public void run() { - String s = new String(""); - o = s; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.cfh b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.cfh deleted file mode 100644 index b32c3df646c39805b5d80ca1de4237b55d3c4dda..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.cfh +++ /dev/null @@ -1,216 +0,0 @@ -//@class:dxc/junit/opcodes/putfield/jm/T_putfield_17 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 11 00 0a - // parsed:, offset 15, len 5, h: 0002: field{dxc.junit.opcodes.putfield.jm.T_putfield_17.st_i1:I} - // . . . . . - 09 00 0c 00 10 - // parsed:, offset 20, len 46, h: 0003: utf8{"dxc/junit/opcodes/putfield/jm/T_putfield_17"} - // . . + d x c / j u n i t / o p c o d e s / p u t f i e l d / j m / T _ p u t f i e l d _ 1 7 - 01 00 2b 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 70 75 74 66 69 65 6c 64 2f 6a 6d 2f 54 5f 70 75 74 66 69 65 6c 64 5f 31 37 - // parsed:, offset 66, len 19, h: 0004: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 85, len 21, h: 0005: utf8{"T_putfield_17.java"} - // . . . T _ p u t f i e l d _ 1 7 . j a v a - 01 00 12 54 5f 70 75 74 66 69 65 6c 64 5f 31 37 2e 6a 61 76 61 - // parsed:, offset 106, len 5, h: 0006: int{0x000f4240 / 1000000} - // . . . B @ - 03 00 0f 42 40 - // parsed:, offset 111, len 13, h: 0007: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 124, len 9, h: 0008: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 133, len 6, h: 0009: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 139, len 5, h: 000a: nat{:()V} - // . . . . . - 0c 00 08 00 0d - // parsed:, offset 144, len 7, h: 000b: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 151, len 3, h: 000c: type{dxc.junit.opcodes.putfield.jm.T_putfield_17} - // . . . - 07 00 03 - // parsed:, offset 154, len 6, h: 000d: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 160, len 8, h: 000e: utf8{"st_i1"} - // . . . s t _ i 1 - 01 00 05 73 74 5f 69 31 - // parsed:, offset 168, len 4, h: 000f: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 172, len 5, h: 0010: nat{st_i1:I} - // . . . . . - 0c 00 0e 00 0f - // parsed:, offset 177, len 3, h: 0011: type{java.lang.Object} - // . . . - 07 00 04 -// parsed:, offset 180, len 0, h: end constant_pool -// parsed:, offset 180, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 182, len 2, h: this_class: type{dxc.junit.opcodes.putfield.jm.T_putfield_17} -// . . - 00 0c -// parsed:, offset 184, len 2, h: super_class: type{java.lang.Object} -// . . - 00 11 -// parsed:, offset 186, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 188, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:st_i1, offset 190, len:84,desc: I -// parsed:, offset 190, len 0, h: fields[0]: - // parsed:, offset 190, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 192, len 2, h: name: st_i1 - // . . - 00 0e - // parsed:, offset 194, len 2, h: descriptor: I - // . . - 00 0f - // parsed:, offset 196, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 198, len 0, h: end fields[0] -// ========== end-ParseMember:st_i1, desc: I -// parsed:, offset 198, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 200, len:74,desc: ()V -// parsed:, offset 200, len 0, h: methods[0]: - // parsed:, offset 200, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 202, len 2, h: name: - // . . - 00 08 - // parsed:, offset 204, len 2, h: descriptor: ()V - // . . - 00 0d - // parsed:, offset 206, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 208, len 0, h: attributes[0]: - // parsed:, offset 208, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 210, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 214, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 216, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 218, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 227, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 229, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 231, len 0, h: end attributes[0] -// parsed:, offset 231, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 231, len:43,desc: ()V -// parsed:, offset 231, len 0, h: methods[1]: - // parsed:, offset 231, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 233, len 2, h: name: run - // . . - 00 09 - // parsed:, offset 235, len 2, h: descriptor: ()V - // . . - 00 0d - // parsed:, offset 237, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 239, len 0, h: attributes[0]: - // parsed:, offset 239, len 2, h: name: Code - // . . - 00 0b - // parsed:, offset 241, len 4, h: length: 00000013 - // . . . . - 00 00 00 13 - // parsed:, offset 245, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 247, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 249, len 4, h: code_length: 00000007 - // . . . . - 00 00 00 07 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 2, h: 0001: ldc #+000f4240 - // . . - 12 06 - // parsed:, offset 3, len 3, h: 0003: putfield field{dxc.junit.opcodes.putfield.jm.T_putfield_17.st_i1:I} - // . . . -//@mod b5 00 02 - b5 00 06 - // parsed:, offset 6, len 1, h: 0006: return - // . - b1 - // parsed:, offset 260, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 262, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 264, len 0, h: end attributes[0] -// parsed:, offset 264, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 264, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 266, len 0, h: attributes[0]: - // parsed:, offset 266, len 2, h: name: SourceFile - // . . - 00 07 - // parsed:, offset 268, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 272, len 2, h: source: utf8{"T_putfield_17.java"} - // . . - 00 05 -// parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.j deleted file mode 100644 index 03b2c62dad6db6f56571f413a4ab7e4e0defe424..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_17.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_17 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_17.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.java deleted file mode 100644 index be58b94796dc0b88fa5a4a40dc7e4ed3a205c3c4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_17.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_17 { - - public int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_18.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_18.j deleted file mode 100644 index 602550d453db722012188474f1055e79226df46d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_18.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_18.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_18 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()Ljava/lang/String; - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/putfield/jm/TChild - dup - invokespecial dxc/junit/opcodes/putfield/jm/TChild/()V - astore_1 - - aload_1 - ldc "xyz" - putfield dxc.junit.opcodes.putfield.jm.TSuper.s Ljava/lang/String; - - aload_1 - getfield dxc.junit.opcodes.putfield.jm.TChild.s Ljava/lang/String; - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_18.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_18.java deleted file mode 100644 index 617bac271d2c1c66bca391bd755660ca74c96f59..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_18.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_18 { - - public String run() { - TChild c = new TChild(); - c.s = "xyz"; - return c.s; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_19.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_19.j deleted file mode 100644 index 3f61b8c698642aca45a6d06e20e4f75806b8fbf1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_19.j +++ /dev/null @@ -1,44 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_19.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_19 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()Ljava/lang/Object; - .limit stack 2 - .limit locals 2 - - new dxc/junit/opcodes/putfield/jm/TSuper - dup - invokespecial dxc/junit/opcodes/putfield/jm/TSuper/()V - astore_1 - - aload_1 - getfield dxc.junit.opcodes.putfield.jm.TChild.o Ljava/lang/Object; - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_19.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_19.java deleted file mode 100644 index fd9d29e4e9ae70509c1038e23516621e60f50e90..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_19.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_19 { - - public Object run() { - TChild c = new TChild(); - return c.o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_2.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_2.j deleted file mode 100644 index 8414dfd3358e8092fc53d37eef8060440590fbec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_2.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_2.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_2 -.super java/lang/Object - -.field public st_d1 D - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 3 - aload_0 - ldc2_w 1000000.0 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_2.st_d1 D - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_2.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_2.java deleted file mode 100644 index bd039ebe9cee8a9d026f96d693478f69379cd65c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_2 { - - public double st_d1; - - public void run() { - st_d1 = 1000000d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_20.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_20.j deleted file mode 100644 index 7aaf9b563545bb98b2c7d31b4f35a4122f84ef9b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_20.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_20.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_20 -.super java/lang/Object - -.field public v I - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 1 - - aload_0 - ldc 3.14 - - putfield dxc.junit.opcodes.putfield.jm.T_putfield_20.v I - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_20.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_20.java deleted file mode 100644 index ebe55ebb923e10b45f4dbd685d2477088b05ee74..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_20.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_20 { - - public int v; - - public void run() { - v = (int)3.14; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.cfh deleted file mode 100644 index 887ad58d0c84d7ac65043ee69888591ca71025c3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.cfh +++ /dev/null @@ -1,216 +0,0 @@ -//@class:dxc/junit/opcodes/putfield/jm/T_putfield_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0e 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 67, len 7, h: 0007: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 74, len 5, h: 0008: field{dxc.junit.opcodes.putfield.jm.T_putfield_3.st_i1:I} - // . . . . . - 09 00 0f 00 0d - // parsed:, offset 79, len 5, h: 0009: int{0x000f4240 / 1000000} - // . . . B @ - 03 00 0f 42 40 - // parsed:, offset 84, len 20, h: 000a: utf8{"T_putfield_3.java"} - // . . . T _ p u t f i e l d _ 3 . j a v a - 01 00 11 54 5f 70 75 74 66 69 65 6c 64 5f 33 2e 6a 61 76 61 - // parsed:, offset 104, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 110, len 8, h: 000c: utf8{"st_i1"} - // . . . s t _ i 1 - 01 00 05 73 74 5f 69 31 - // parsed:, offset 118, len 5, h: 000d: nat{st_i1:I} - // . . . . . - 0c 00 0c 00 10 - // parsed:, offset 123, len 3, h: 000e: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 126, len 3, h: 000f: type{dxc.junit.opcodes.putfield.jm.T_putfield_3} - // . . . - 07 00 11 - // parsed:, offset 129, len 4, h: 0010: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 133, len 45, h: 0011: utf8{"dxc/junit/opcodes/putfield/jm/T_putfield_3"} - // . . * d x c / j u n i t / o p c o d e s / p u t f i e l d / j m / T _ p u t f i e l d _ 3 - 01 00 2a 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 70 75 74 66 69 65 6c 64 2f 6a 6d 2f 54 5f 70 75 74 66 69 65 6c 64 5f 33 -// parsed:, offset 178, len 0, h: end constant_pool -// parsed:, offset 178, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 180, len 2, h: this_class: type{dxc.junit.opcodes.putfield.jm.T_putfield_3} -// . . - 00 0f -// parsed:, offset 182, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0e -// parsed:, offset 184, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 186, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:st_i1, offset 188, len:84,desc: I -// parsed:, offset 188, len 0, h: fields[0]: - // parsed:, offset 188, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 190, len 2, h: name: st_i1 - // . . - 00 0c - // parsed:, offset 192, len 2, h: descriptor: I - // . . - 00 10 - // parsed:, offset 194, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 196, len 0, h: end fields[0] -// ========== end-ParseMember:st_i1, desc: I -// parsed:, offset 196, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 198, len:74,desc: ()V -// parsed:, offset 198, len 0, h: methods[0]: - // parsed:, offset 198, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 200, len 2, h: name: - // . . - 00 04 - // parsed:, offset 202, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 204, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 206, len 0, h: attributes[0]: - // parsed:, offset 206, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 208, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 212, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 214, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 216, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 225, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 227, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 229, len 0, h: end attributes[0] -// parsed:, offset 229, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 229, len:43,desc: ()V -// parsed:, offset 229, len 0, h: methods[1]: - // parsed:, offset 229, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 231, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 233, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 235, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 237, len 0, h: attributes[0]: - // parsed:, offset 237, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 239, len 4, h: length: 00000013 - // . . . . - 00 00 00 13 - // parsed:, offset 243, len 2, h: max_stack: 0002 - // . . - 00 02 - // parsed:, offset 245, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 247, len 4, h: code_length: 00000007 - // . . . . - 00 00 00 07 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 2, h: 0001: ldc #+000f4240 - // . . - 12 09 - // parsed:, offset 3, len 3, h: 0003: putfield field{dxc.junit.opcodes.putfield.jm.T_putfield_3.st_i1:I} - // . . . -//@mod: b5 00 08 - b5 01 08 - // parsed:, offset 6, len 1, h: 0006: return - // . - b1 - // parsed:, offset 258, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 260, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 262, len 0, h: end attributes[0] -// parsed:, offset 262, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 262, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 264, len 0, h: attributes[0]: - // parsed:, offset 264, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 266, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 270, len 2, h: source: utf8{"T_putfield_3.java"} - // . . - 00 0a -// parsed:, offset 272, len 0, h: end attributes[0] -// parsed:, offset 272, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.j deleted file mode 100644 index 10d3f539aeed41f2fc049360c5cfcd5c3ef7571f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_3.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_3 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_3.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.java deleted file mode 100644 index 6c7216ee1ff11e53dbccad49ee61bc65238808e9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_3.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_3 { - - public int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_4.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_4.j deleted file mode 100644 index 5a4195abf17e00689cbb37b07652b0ab84991be7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_4.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_4.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_4 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 -; ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_4.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_4.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_4.java deleted file mode 100644 index 142d1930ee85bb158939a8a21d9f222abd4a3016..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_4.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_4 { - - public int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_5.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_5.j deleted file mode 100644 index 6ccc8c048ec7fccceb32daf18277501f5ff9f3c1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_5.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_5.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_5 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 -; ldc 1000000 - fconst_1 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_5.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_5.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_5.java deleted file mode 100644 index 9be392395c5f7734c5ad6ed13a3ab99c86220834..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_5.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_5 { - - public int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_6.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_6.j deleted file mode 100644 index 916a084934d1249d84772d533791414c1b32a653..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_6.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_6.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_6 -.super java/lang/Object - -.field public s Ljava/lang/String; - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 2 - - new java/lang/Object - dup - invokespecial java/lang/Object/()V - - aload_0 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_6.s Ljava/lang/String; - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_6.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_6.java deleted file mode 100644 index 63855a00549b3a141bf7dc0adbfdc0affb0aea0e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_6.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_6 { - - public String s; - - public void run() { - Object o = new Object(); - s = (String)o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_7.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_7.j deleted file mode 100644 index a3088a54aeec5f42214541db1c81b6897f6544e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_7.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_7.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_7 -.super java/lang/Object - -.field public static st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aload_0 - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_7.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_7.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_7.java deleted file mode 100644 index 54bd49fe2e3e30148652e6d005d15c82d6e31c68..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_7 { - public int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_8.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_8.j deleted file mode 100644 index 07e9b12d8b762bcb9ac1a1ea7026b3fa14f954a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_8.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_8.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - - new dxc/junit/opcodes/putfield/TPutfield - dup - invokespecial dxc/junit/opcodes/putfield/TPutfield/()V - - ldc 1000000 - putfield dxc.junit.opcodes.putfield.TPutfield.TestStubField I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_8.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_8.java deleted file mode 100644 index 4860faf63a09b4135506d29f4c9e2e5d7f591b43..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_8.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_8 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_9.j b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_9.j deleted file mode 100644 index 79bd81142601927af79a0677fa56cff1d4696526..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_9.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putfield_9.java -.class public dxc/junit/opcodes/putfield/jm/T_putfield_9 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - aconst_null - ldc 1000000 - putfield dxc.junit.opcodes.putfield.jm.T_putfield_9.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_9.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_9.java deleted file mode 100644 index 33b7c7a5b8aacde14e0de56ee845bf7bb85291c9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/T_putfield_9.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - -public class T_putfield_9 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/TestStubs.java deleted file mode 100644 index de2dcc6e61431009748015ef74e66add4235e622..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putfield/jm/TestStubs.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putfield.jm; - - - -class TSuper { - public String s = "abc"; -} - -class TChild extends TSuper { - public Object o = null; -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/TestStubs.java deleted file mode 100644 index 64a481a4da2d1d20a3e75bb19ed017073e3735d9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/TestStubs.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic; - -public class TestStubs { - // used by testE2 - static int TestStubField = 0; - - // used by testE5 - public static final int TestStubFieldFinal = 0; -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/Test_putstatic.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/Test_putstatic.java deleted file mode 100644 index 9d438d889c83b54a8351507f2a0ba9aaee860686..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/Test_putstatic.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_1; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_10; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_11; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_12; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_13; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_14; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_15; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_16; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_2; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_7; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_8; -import dxc.junit.opcodes.putstatic.jm.T_putstatic_9; - -public class Test_putstatic extends DxTestCase { - - /** - * @title type - int - */ - public void testN1() { - T_putstatic_1 t = new T_putstatic_1(); - assertEquals(0, T_putstatic_1.st_i1); - t.run(); - assertEquals(1000000, T_putstatic_1.st_i1); - } - - /** - * @title type - double - */ - public void testN2() { - T_putstatic_2 t = new T_putstatic_2(); - assertEquals(0d, T_putstatic_2.st_d1); - t.run(); - assertEquals(1000000d, T_putstatic_2.st_d1); - } - - /** - * @title modification of final field - */ - public void testN3() { - T_putstatic_12 t = new T_putstatic_12(); - assertEquals(0, T_putstatic_12.st_i1); - t.run(); - assertEquals(1000000, T_putstatic_12.st_i1); - } - - /** - * @title modification of protected field from subclass - */ - public void testN4() { - // @uses dxc.junit.opcodes.putstatic.jm.T_putstatic_1 - T_putstatic_14 t = new T_putstatic_14(); - assertEquals(0, T_putstatic_14.getProtectedField()); - t.run(); - assertEquals(1000000, T_putstatic_14.getProtectedField()); - } - - /** - * @title assignment compatible references - */ - public void testN5() { - T_putstatic_16 t = new T_putstatic_16(); - assertNull(T_putstatic_16.o); - t.run(); - assertEquals("", (String) T_putstatic_16.o); - } - - /** - * @title attempt to set non-static field - */ - public void testE1() { - try { - T_putstatic_7 t = new T_putstatic_7(); - t.run(); - fail("expected IncompatibleClassChangeError"); - } catch (IncompatibleClassChangeError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title modification of non-accessible field - */ - public void testE2() { - // @uses dxc.junit.opcodes.putstatic.TestStubs - try { - T_putstatic_8 t = new T_putstatic_8(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoClassDefFoundError - */ - public void testE3() { - try { - T_putstatic_9 t = new T_putstatic_9(); - t.run(); - fail("expected NoClassDefFoundError"); - } catch (NoClassDefFoundError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title expected NoSuchFieldError - */ - public void testE4() { - try { - T_putstatic_10 t = new T_putstatic_10(); - t.run(); - fail("expected NoSuchFieldError"); - } catch (NoSuchFieldError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title Modification of final field in other class - */ - public void testE5() { - // @uses dxc.junit.opcodes.putstatic.TestStubs - try { - T_putstatic_11 t = new T_putstatic_11(); - t.run(); - fail("expected IllegalAccessError"); - } catch (IllegalAccessError iae) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @title initialization of referenced class throws exception - */ - public void testE6() { - // @uses dxc.junit.opcodes.putstatic.jm.StubInitError - T_putstatic_13 t = new T_putstatic_13(); - try { - t.run(); - fail("expected Error"); - } catch (Error e) { - // expected - } - } - - // FIXME: "fail" commented out temporarily - check - /** - * @title modification of superclass' private field from subclass - * FIXME: is this a bug in JVM? - */ - public void testE7() { - // @uses dxc.junit.opcodes.putstatic.jm.T_putstatic_1 - try { - assertEquals(0, T_putstatic_15.getPvtField()); - T_putstatic_15 t = new T_putstatic_15(); - t.run(); - assertEquals(12321, T_putstatic_15.getPvtField()); - //fail("expected IllegalAccessError"); - } catch (IllegalAccessError e) { - // expected - } catch (VerifyError vfe) { - // ok for dalvikvm; - System.out.print("dvmvfe:"); - } - } - - /** - * @constraint 4.8.1.12 - * @title constant pool index - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.putstatic.jm.T_putstatic_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.putstatic.jm.T_putstatic_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.17 - * @title type of argument - float instead of - * int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.putstatic.jm.T_putstatic_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.17 - * @title type of argument - assignment - * incompatible references - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.putstatic.jm.T_putstatic_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.17 - * @title type of argument - assignment - * incompatible values - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.putstatic.jm.T_putstatic_18"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.1.12 - * @title constant pool type - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.putstatic.jm.T_putstatic_17"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_1.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_1.j deleted file mode 100644 index b1a57ba154e3cf23136669d9150e284adc58bf5a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_1.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_1.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_1 -.super java/lang/Object - -.field public static st_i1 I -.field protected static st_p1 I -.field private static st_pvt1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_1.st_i1 I - return -.end method - -.method public static getPvtField()I - getstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_1.st_pvt1 I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_1.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_1.java deleted file mode 100644 index 4876ea03a742ef23067bb5d6ada49a9dfcdd50b0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_1.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_1 { - public static int st_i1; - protected static int st_p1; - private static int st_pvt1; - - public void run() { - st_i1 = 1000000; - } - - public static int getPvtField() - { - return st_pvt1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_10.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_10.j deleted file mode 100644 index 6ffd7771c3a132c6c99830c1cab18754dd55fc04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_10.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_10.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_10 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_10.st_i1N I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_10.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_10.java deleted file mode 100644 index c1a6d7574a3e9a7900bce7058a220bebcf07dbd9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_10.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_10 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_11.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_11.j deleted file mode 100644 index c60bb184eb1d57d391eaf10acb35863bc70af413..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_11.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_11.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_11 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.TestStubs.TestStubFieldFinal I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_11.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_11.java deleted file mode 100644 index 62318674c2fabb354e1c08ec649d165266ba9c0b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_11.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_11 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_12.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_12.j deleted file mode 100644 index 044864bfd070c1e401857d57968f3d0052314020..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_12.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_12.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_12 -.super java/lang/Object - -.field public final static st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_12.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_12.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_12.java deleted file mode 100644 index 126152890557baa5e6aae776fecf3bb58a5b8ac1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_12.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_12 { - public static int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_13.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_13.j deleted file mode 100644 index 5216b3fd8ffa373aa5e691b692bbdc12e54c337b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_13.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_13.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_13 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()I - .limit stack 1 - .limit locals 1 - - getstatic dxc.junit.opcodes.putstatic.jm.StubInitError.value I - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_13.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_13.java deleted file mode 100644 index 16afdc1d2ce405cf5b24bb0a4721879405ff6a3c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_13.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_13 { - - public int run() { - return StubInitError.value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_14.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_14.j deleted file mode 100644 index c781c0313a2b775cec7396b2d5ddf0f33fc359bc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_14.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_14.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_14 -.super dxc/junit/opcodes/putstatic/jm/T_putstatic_1 - - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/putstatic/jm/T_putstatic_1/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_1.st_p1 I - return -.end method - -.method public static getProtectedField()I - getstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_1.st_p1 I - ireturn -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_14.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_14.java deleted file mode 100644 index 80296f9273ead6c121f2a2071b27b5e9499bdb8d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_14.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_14 extends T_putstatic_1{ - - public void run() { - T_putstatic_1.st_p1 = 1000000; - } - - public static int getProtectedField(){ - return T_putstatic_1.st_p1; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_15.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_15.j deleted file mode 100644 index 44e8785f2b46d9496ae9881e04ce01753db57e57..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_15.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_15.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_15 -.super dxc/junit/opcodes/putstatic/jm/T_putstatic_1 - -.method public ()V - aload_0 - invokespecial dxc/junit/opcodes/putstatic/jm/T_putstatic_1/()V - return -.end method - -.method public run()V - ldc 12321 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_1.st_pvt1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_15.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_15.java deleted file mode 100644 index b2f4daec04e5f838656ca1c02829366724581b21..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_15.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_15 extends T_putstatic_1{ - - public void run() { - // - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_16.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_16.j deleted file mode 100644 index 6b1d15489764a5fec2671f8beaaba21f594ea311..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_16.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_16.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_16 -.super java/lang/Object - -.field public static o Ljava/lang/Object; - -.method static ()V - .limit stack 1 - .limit locals 0 - - aconst_null - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_16.o Ljava/lang/Object; - - return -.end method - - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 3 - .limit locals 2 - - new java/lang/String - dup - ldc "" - invokespecial java/lang/String/(Ljava/lang/String;)V - - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_16.o Ljava/lang/Object; - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_16.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_16.java deleted file mode 100644 index b0d5d14ca6d45088c3b1e2035f7cc1d4639a6f0c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_16.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_16 { - - public static Object o = null; - - public void run() { - String s = new String(""); - o = s; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.cfh b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.cfh deleted file mode 100644 index e5e2de344325256b8d792a1e709d27a0e8ba9862..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.cfh +++ /dev/null @@ -1,213 +0,0 @@ -//@class:dxc/junit/opcodes/putstatic/jm/T_putstatic_17 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 11 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 5, h: 0003: int{0x000f4240 / 1000000} - // . . . B @ - 03 00 0f 42 40 - // parsed:, offset 39, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 52, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 61, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 67, len 22, h: 0007: utf8{"T_putstatic_17.java"} - // . . . T _ p u t s t a t i c _ 1 7 . j a v a - 01 00 13 54 5f 70 75 74 73 74 61 74 69 63 5f 31 37 2e 6a 61 76 61 - // parsed:, offset 89, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 94, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 101, len 48, h: 000a: utf8{"dxc/junit/opcodes/putstatic/jm/T_putstatic_17"} - // . . - d x c / j u n i t / o p c o d e s / p u t s t a t i c / j m / T _ p u t s t a t i c _ 1 7 - 01 00 2d 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 70 75 74 73 74 61 74 69 63 2f 6a 6d 2f 54 5f 70 75 74 73 74 61 74 69 63 5f 31 37 - // parsed:, offset 149, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 155, len 8, h: 000c: utf8{"st_i1"} - // . . . s t _ i 1 - 01 00 05 73 74 5f 69 31 - // parsed:, offset 163, len 4, h: 000d: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 167, len 3, h: 000e: type{dxc.junit.opcodes.putstatic.jm.T_putstatic_17} - // . . . - 07 00 0a - // parsed:, offset 170, len 5, h: 000f: nat{st_i1:I} - // . . . . . - 0c 00 0c 00 0d - // parsed:, offset 175, len 5, h: 0010: field{dxc.junit.opcodes.putstatic.jm.T_putstatic_17.st_i1:I} - // . . . . . - 09 00 0e 00 0f - // parsed:, offset 180, len 3, h: 0011: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 183, len 0, h: end constant_pool -// parsed:, offset 183, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 185, len 2, h: this_class: type{dxc.junit.opcodes.putstatic.jm.T_putstatic_17} -// . . - 00 0e -// parsed:, offset 187, len 2, h: super_class: type{java.lang.Object} -// . . - 00 11 -// parsed:, offset 189, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 191, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:st_i1, offset 193, len:83,desc: I -// parsed:, offset 193, len 0, h: fields[0]: - // parsed:, offset 193, len 2, h: access_flags: public|static - // . . - 00 09 - // parsed:, offset 195, len 2, h: name: st_i1 - // . . - 00 0c - // parsed:, offset 197, len 2, h: descriptor: I - // . . - 00 0d - // parsed:, offset 199, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 201, len 0, h: end fields[0] -// ========== end-ParseMember:st_i1, desc: I -// parsed:, offset 201, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 203, len:73,desc: ()V -// parsed:, offset 203, len 0, h: methods[0]: - // parsed:, offset 203, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 205, len 2, h: name: - // . . - 00 05 - // parsed:, offset 207, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 209, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 211, len 0, h: attributes[0]: - // parsed:, offset 211, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 213, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 217, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 219, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 221, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 230, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 232, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 234, len 0, h: end attributes[0] -// parsed:, offset 234, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 234, len:42,desc: ()V -// parsed:, offset 234, len 0, h: methods[1]: - // parsed:, offset 234, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 236, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 238, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 240, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 242, len 0, h: attributes[0]: - // parsed:, offset 242, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 244, len 4, h: length: 00000012 - // . . . . - 00 00 00 12 - // parsed:, offset 248, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 250, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 252, len 4, h: code_length: 00000006 - // . . . . - 00 00 00 06 - // parsed:, offset 0, len 2, h: 0000: ldc #+000f4240 - // . . - 12 03 - // parsed:, offset 2, len 3, h: 0002: putstatic field{dxc.junit.opcodes.putstatic.jm.T_putstatic_17.st_i1:I} - // . . . -//@mod b3 00 10 - b3 00 03 - // parsed:, offset 5, len 1, h: 0005: return - // . - b1 - // parsed:, offset 262, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 264, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 266, len 0, h: end attributes[0] -// parsed:, offset 266, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 266, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 268, len 0, h: attributes[0]: - // parsed:, offset 268, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 270, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 274, len 2, h: source: utf8{"T_putstatic_17.java"} - // . . - 00 07 -// parsed:, offset 276, len 0, h: end attributes[0] -// parsed:, offset 276, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.j deleted file mode 100644 index 18b3e14d9e120d4da86f9225d0f5d3a6cc6df046..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_17.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_17 -.super java/lang/Object - -.field public static st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_17.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.java deleted file mode 100644 index 28056a71ec23cfa44636770e330a7dee6e8cc2e1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_17.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_17 { - - public static int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_18.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_18.j deleted file mode 100644 index 83d518a78eb38ae2f238f9a3d4c0dd03dcfb524c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_18.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_18.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_18 -.super java/lang/Object - -.field public static v I - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 1 - .limit locals 1 - - ldc 3.14 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_18.v I - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_18.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_18.java deleted file mode 100644 index 5293bcfa13115250e7779d5c7d99f6c50ad32a17..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_18.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_18 { - - public static int v; - - public void run() { - v = (int)3.14f; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_2.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_2.j deleted file mode 100644 index 2b2ca2c2481a80c129ba8a1a4eec96de4bf1a243..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_2.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_2.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_2 -.super java/lang/Object - -.field public static st_d1 D - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit stack 2 - ldc2_w 1000000.0 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_2.st_d1 D - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_2.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_2.java deleted file mode 100644 index eb40d35701046a4cca08dc39e61e2cdc8305434c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_2 { - - public static double st_d1; - - public void run() { - st_d1 = 1000000d; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.cfh b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.cfh deleted file mode 100644 index e200a7c080fd3f3b303aadb483fbef9004b540e9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.cfh +++ /dev/null @@ -1,213 +0,0 @@ -//@class:dxc/junit/opcodes/putstatic/jm/T_putstatic_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 0012 -// . . - 00 12 -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0f 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 21, h: 0005: utf8{"T_putstatic_3.java"} - // . . . T _ p u t s t a t i c _ 3 . j a v a - 01 00 12 54 5f 70 75 74 73 74 61 74 69 63 5f 33 2e 6a 61 76 61 - // parsed:, offset 77, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 83, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0c - // parsed:, offset 88, len 47, h: 0008: utf8{"dxc/junit/opcodes/putstatic/jm/T_putstatic_3"} - // . . , d x c / j u n i t / o p c o d e s / p u t s t a t i c / j m / T _ p u t s t a t i c _ 3 - 01 00 2c 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 70 75 74 73 74 61 74 69 63 2f 6a 6d 2f 54 5f 70 75 74 73 74 61 74 69 63 5f 33 - // parsed:, offset 135, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 142, len 5, h: 000a: int{0x000f4240 / 1000000} - // . . . B @ - 03 00 0f 42 40 - // parsed:, offset 147, len 3, h: 000b: type{dxc.junit.opcodes.putstatic.jm.T_putstatic_3} - // . . . - 07 00 08 - // parsed:, offset 150, len 6, h: 000c: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 156, len 8, h: 000d: utf8{"st_i1"} - // . . . s t _ i 1 - 01 00 05 73 74 5f 69 31 - // parsed:, offset 164, len 5, h: 000e: nat{st_i1:I} - // . . . . . - 0c 00 0d 00 10 - // parsed:, offset 169, len 3, h: 000f: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 172, len 4, h: 0010: utf8{"I"} - // . . . I - 01 00 01 49 - // parsed:, offset 176, len 5, h: 0011: field{dxc.junit.opcodes.putstatic.jm.T_putstatic_3.st_i1:I} - // . . . . . - 09 00 0b 00 0e -// parsed:, offset 181, len 0, h: end constant_pool -// parsed:, offset 181, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 183, len 2, h: this_class: type{dxc.junit.opcodes.putstatic.jm.T_putstatic_3} -// . . - 00 0b -// parsed:, offset 185, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0f -// parsed:, offset 187, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 189, len 2, h: fields_count: 0001 -// . . - 00 01 -// ========== start-ParseMember:st_i1, offset 191, len:83,desc: I -// parsed:, offset 191, len 0, h: fields[0]: - // parsed:, offset 191, len 2, h: access_flags: public|static - // . . - 00 09 - // parsed:, offset 193, len 2, h: name: st_i1 - // . . - 00 0d - // parsed:, offset 195, len 2, h: descriptor: I - // . . - 00 10 - // parsed:, offset 197, len 2, h: attributes_count: 0000 - // . . - 00 00 -// parsed:, offset 199, len 0, h: end fields[0] -// ========== end-ParseMember:st_i1, desc: I -// parsed:, offset 199, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 201, len:73,desc: ()V -// parsed:, offset 201, len 0, h: methods[0]: - // parsed:, offset 201, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 203, len 2, h: name: - // . . - 00 04 - // parsed:, offset 205, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 207, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 209, len 0, h: attributes[0]: - // parsed:, offset 209, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 211, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 215, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 217, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 219, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 228, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 230, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 232, len 0, h: end attributes[0] -// parsed:, offset 232, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 232, len:42,desc: ()V -// parsed:, offset 232, len 0, h: methods[1]: - // parsed:, offset 232, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 234, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 236, len 2, h: descriptor: ()V - // . . - 00 0c - // parsed:, offset 238, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 240, len 0, h: attributes[0]: - // parsed:, offset 240, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 242, len 4, h: length: 00000012 - // . . . . - 00 00 00 12 - // parsed:, offset 246, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 248, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 250, len 4, h: code_length: 00000006 - // . . . . - 00 00 00 06 - // parsed:, offset 0, len 2, h: 0000: ldc #+000f4240 - // . . - 12 0a - // parsed:, offset 2, len 3, h: 0002: putstatic field{dxc.junit.opcodes.putstatic.jm.T_putstatic_3.st_i1:I} - // . . . -//@mod b3 00 11 - b3 01 11 - // parsed:, offset 5, len 1, h: 0005: return - // . - b1 - // parsed:, offset 260, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 262, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 264, len 0, h: end attributes[0] -// parsed:, offset 264, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 264, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 266, len 0, h: attributes[0]: - // parsed:, offset 266, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 268, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 272, len 2, h: source: utf8{"T_putstatic_3.java"} - // . . - 00 05 -// parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.j deleted file mode 100644 index b72a7b0a79f197a34b005dccde048d5c40f970a8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_3.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_3 -.super java/lang/Object - -.field public static st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_3.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.java deleted file mode 100644 index 1ec204e546134ec54deec952823c88006e25b14a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_3.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_3 { - - public static int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_4.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_4.j deleted file mode 100644 index 24fa5aa05169b21950cfc9146ea3fa809e43ff24..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_4.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_4.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_4 -.super java/lang/Object - -.field public static st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V -; ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_4.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_4.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_4.java deleted file mode 100644 index f3c016ad8f230b1ab9394a70a1484e80f96dc22e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_4.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_4 { - - public static int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_5.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_5.j deleted file mode 100644 index f8cb68d1460baa84dd87770f2663b21bd01e6db3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_5.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_5.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_5 -.super java/lang/Object - -.field public static st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V -; ldc 1000000 - fconst_1 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_5.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_5.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_5.java deleted file mode 100644 index de12995998a55855f5bbdc1242836647e870add4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_5.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_5 { - - public static int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_6.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_6.j deleted file mode 100644 index baef85ab84aacce11175e11a3bafc6fc3938e25d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_6.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_6.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_6 -.super java/lang/Object - -.field public static s Ljava/lang/String; - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 2 - .limit locals 2 - - new java/lang/Object - dup - invokespecial java/lang/Object/()V - - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_6.s Ljava/lang/String; - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_6.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_6.java deleted file mode 100644 index 1a625d60ad1df00590498de9fba8d4a9152a2c53..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_6.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_6 { - - public static String s; - - public void run() { - Object o = new Object(); - s = (String)o; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_7.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_7.j deleted file mode 100644 index 806105a36b68aad8824a43cbbc8b5830220302ac..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_7.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_7.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_7 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_7.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_7.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_7.java deleted file mode 100644 index 9fec90dd709cbfb55b6a00690706087ae1478ea0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_7.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_7 { - public static int st_i1; - - public void run() { - st_i1 = 1000000; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_8.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_8.j deleted file mode 100644 index acab0d15f7dcc49647267472c867e1cb0a281c8a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_8.j +++ /dev/null @@ -1,29 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_8.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.TestStub.TestStubField I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_8.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_8.java deleted file mode 100644 index c78048a3d4a84a95627215b5069c55eda3d3863c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_8.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_8 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_9.j b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_9.j deleted file mode 100644 index 2a8245069afed49fa2cf9b68c489fe25e9a8c8f5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_9.j +++ /dev/null @@ -1,31 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_putstatic_9.java -.class public dxc/junit/opcodes/putstatic/jm/T_putstatic_9 -.super java/lang/Object - -.field public st_i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - ldc 1000000 - putstatic dxc.junit.opcodes.putstatic.jm.T_putstatic_91.st_i1 I - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_9.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_9.java deleted file mode 100644 index 9defac39652901c98ba7048688d6b114c10a524b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/T_putstatic_9.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - -public class T_putstatic_9 { - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/TestStubs.java b/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/TestStubs.java deleted file mode 100644 index 9cc2aa6025f018422fd6da990d351985e5e738ae..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/putstatic/jm/TestStubs.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.putstatic.jm; - - -class StubInitError{ - public static int value = 5 / 0; -} \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/Test_ret.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/Test_ret.java deleted file mode 100644 index a8b43aee2a2095fc17efc0d2dc9bb3635b37c645..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/Test_ret.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.ret.jm.T_ret_1; -import dxc.junit.opcodes.ret.jm.T_ret_1_w; - -public class Test_ret extends DxTestCase { - - /** - * NORMAL RET VERSION - */ - - /** - * @title normal test - */ - public void testN1() { - T_ret_1 t = new T_ret_1(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.1.21 - * @title index operand - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title variable referenced by index shall - * contain returnAddress - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.24 - * @title each returnAddress can be returned only - * once - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.22 - * @title single ret instruction - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * WIDE RET VERSION - */ - - /** - * @title - */ - public void testN2() { - T_ret_1_w t = new T_ret_1_w(); - assertTrue(t.run()); - } - - /** - * @constraint 4.8.1.21 - * @title index operand - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_2_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title variable referenced by index shall - * contain returnAddress - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_3_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.24 - * @title each returnAddress can be returned only - * once - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_4_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.22 - * @title single ret instruction - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.ret.jm.T_ret_5_w"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1.j deleted file mode 100644 index f73f634f34f8989a4fae603d98bf6c9c3daf81db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1.j +++ /dev/null @@ -1,56 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_1.java -.class public dxc/junit/opcodes/ret/jm/T_ret_1 -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr SetField - - aload_0 - getfield dxc.junit.opcodes.ret.jm.T_ret_1.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore_1 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.ret.jm.T_ret_1.i1 I - ret 1 -; test that ret returns immediately - aload_0 - sipush 2000 - putfield dxc.junit.opcodes.ret.jm.T_ret_1.i1 I - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1.java deleted file mode 100644 index e0ee60c843368d3637a972c50e41138bec9a3fe3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_1 { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1_w.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1_w.j deleted file mode 100644 index fd91e2324b73c2d62c294c3ab4577bcf8dcc1569..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1_w.j +++ /dev/null @@ -1,56 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_1_w.java -.class public dxc/junit/opcodes/ret/jm/T_ret_1_w -.super java/lang/Object - -.field public i1 I - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 300 - - jsr_w SetField - - aload_0 - getfield dxc.junit.opcodes.ret.jm.T_ret_1_w.i1 I - sipush 1000 - if_icmpne Label0 - - iconst_1 - ireturn - -Label0: - iconst_0 - ireturn - -SetField: - astore 270 - aload_0 - sipush 1000 - putfield dxc.junit.opcodes.ret.jm.T_ret_1_w.i1 I - ret_w 270 -; test that ret returns immediately - aload_0 - sipush 2000 - putfield dxc.junit.opcodes.ret.jm.T_ret_1_w.i1 I - ret_w 270 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1_w.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1_w.java deleted file mode 100644 index 80d159ac5877b2590e535fcdea65bbcece994eef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_1_w.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_1_w { - - public int i1; - - private void setfield() { - i1 = 1000; - } - - public boolean run() { - setfield(); - if(i1 == 1000) - return true; - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2.j deleted file mode 100644 index 58507966ea204597b309bf1cd1b6c7ba29c5c5b6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_2.java -.class public dxc/junit/opcodes/ret/jm/T_ret_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 2 - - jsr SetField - - iconst_0 - ireturn - -SetField: - astore_1 - ret 10 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2.java deleted file mode 100644 index 48719f31d96d709b4b53761be274a631e2f4909a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_2 { - - private void setfield() { - } - - public boolean run() { - setfield(); - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2_w.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2_w.j deleted file mode 100644 index c6ecab88ac848ca5a5f50e21db23de10c20243f0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2_w.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_2_w.java -.class public dxc/junit/opcodes/ret/jm/T_ret_2_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 300 - - jsr_w SetField - - iconst_0 - ireturn - -SetField: - astore 269 - ret_w 300 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2_w.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2_w.java deleted file mode 100644 index a10ec49bab583c1c7ed8b39d832d4eddf7fbdd77..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_2_w.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_2_w { - - private void setfield() { - } - - public boolean run() { - setfield(); - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3.j deleted file mode 100644 index 1016b020ad3fcf3b88e209d2d8bc2cb241d7c92e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_3.java -.class public dxc/junit/opcodes/ret/jm/T_ret_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 3 - - jsr SetField - - iconst_0 - ireturn - -SetField: - astore_2 - aload_0 - astore_1 - ret 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3.java deleted file mode 100644 index 106f93066a6e5b214596b940533b695d299b14e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_3 { - - private void setfield() { - } - - public boolean run() { - setfield(); - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3_w.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3_w.j deleted file mode 100644 index dba768228a96624023d2ae9cdd68e07583324cee..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3_w.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_3_w.java -.class public dxc/junit/opcodes/ret/jm/T_ret_3_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit stack 2 - .limit locals 3 - - jsr_w SetField - - iconst_0 - ireturn - -SetField: - astore_2 - aload_0 - astore_1 - ret_w 1 -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3_w.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3_w.java deleted file mode 100644 index 5c207267431460195fbd298ce59dd26568cf0915..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_3_w.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_3_w { - - private void setfield() { - } - - public boolean run() { - setfield(); - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4.j deleted file mode 100644 index 8c72c1a345473882350de72305ac9d642e1c07bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_4.java -.class public dxc/junit/opcodes/ret/jm/T_ret_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit locals 5 - .limit stack 5 - - goto Label1 - -Label3: - astore_1 - ret 1 - -Label2: - astore_1 - jsr Label3 - ret 1 - -Label1: - jsr Label2 - - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4.java deleted file mode 100644 index 96f1924f842aeb3f52517c20ec83f9490f539cb5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_4 { - - private void f2() { - } - - private void f1() { - f2(); - } - - public boolean run() { - f1(); - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4_w.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4_w.j deleted file mode 100644 index 3cddbb877c933bc4ce687179045989a578a9ca1e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4_w.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_4_w.java -.class public dxc/junit/opcodes/ret/jm/T_ret_4_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()Z - .limit locals 5 - .limit stack 5 - - goto Label1 - -Label3: - astore_1 - ret_w 1 - -Label2: - astore_1 - jsr_w Label3 - ret_w 1 - -Label1: - jsr_w Label2 - - iconst_0 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4_w.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4_w.java deleted file mode 100644 index d27e9d3a6e7aa263c0f61ba32087cbba8138b38b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_4_w.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_4_w { - - private void f2() { - } - - private void f1() { - f2(); - } - - public boolean run() { - f1(); - return false; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5.j deleted file mode 100644 index d0eb53be83bbfc2c917fba69ddc4555429b4946c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_5.java -.class public dxc/junit/opcodes/ret/jm/T_ret_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit locals 5 - .limit stack 5 - - iconst_1 - istore_2 - - jsr Label3 - - return - -Label3: - astore_1 - - iload_2 - iconst_0 - if_icmpeq Label1 - ret 1 -Label1: - ret 1 - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5.java deleted file mode 100644 index 60d00144bda462c0cfe187ab5fb424b4c6aa15d2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_5 { - - private void setfield() { - } - - public void run() { - setfield(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5_w.j b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5_w.j deleted file mode 100644 index b049caefab354ec96d86f09262d725a5d75e8fff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5_w.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_ret_5_w.java -.class public dxc/junit/opcodes/ret/jm/T_ret_5_w -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()V - .limit locals 5 - .limit stack 5 - - iconst_1 - istore_2 - - jsr_w Label3 - - return - -Label3: - astore_1 - - iload_2 - iconst_0 - if_icmpeq Label1 - ret_w 1 -Label1: - ret_w 1 - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5_w.java b/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5_w.java deleted file mode 100644 index dfc10c6ebfa805949614ece37c83d06450cb8b0b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/ret/jm/T_ret_5_w.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.ret.jm; - -public class T_ret_5_w { - - private void setfield() { - } - - public void run() { - setfield(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/Test_saload.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/Test_saload.java deleted file mode 100644 index 435a117e8a047ce9714986917831ae2af75606c9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/Test_saload.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.saload.jm.T_saload_1; - -public class Test_saload extends DxTestCase { - - /** - * @title normal test. trying different indexes - */ - public void testN1() { - T_saload_1 t = new T_saload_1(); - short[] arr = new short[2]; - arr[1] = 10000; - assertEquals(10000, t.run(arr, 1)); - } - - /** - * @title normal test. trying different indexes - */ - public void testN2() { - T_saload_1 t = new T_saload_1(); - short[] arr = new short[2]; - arr[0] = 10000; - assertEquals(10000, t.run(arr, 0)); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_saload_1 t = new T_saload_1(); - short[] arr = new short[2]; - try { - t.run(arr, 2); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_saload_1 t = new T_saload_1(); - try { - t.run(null, 2); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_saload_1 t = new T_saload_1(); - short[] arr = new short[2]; - try { - t.run(arr, -1); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - Object, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - int[], int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.saload.jm.T_saload_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_1.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_1.j deleted file mode 100644 index 180c18022f45b49703d40d43e01e33a91beb32cb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_1.java -.class public dxc/junit/opcodes/saload/jm/T_saload_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SI)S - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - - saload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_1.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_1.java deleted file mode 100644 index dd3083ce342f000e8f61b040788957f7bcf36293..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_1 { - public short run(short[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_2.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_2.j deleted file mode 100644 index f38e43abe119c2ce91d8b53a559d169ccaf6367d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_2.java -.class public dxc/junit/opcodes/saload/jm/T_saload_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SI)S - .limit stack 3 - .limit locals 4 - - aload_1 -; iload_2 - - saload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_2.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_2.java deleted file mode 100644 index bef1b9b137d82351da4ec154cf68b306eb96f10f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_2.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_2 { - - public short run(short[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_3.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_3.j deleted file mode 100644 index aab2008df21472edeabc64d59d23863142b0f91d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_3.java -.class public dxc/junit/opcodes/saload/jm/T_saload_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SI)S - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - saload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_3.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_3.java deleted file mode 100644 index 4d2571c54530d7caefe16eb3534d976cc2bc9be0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_3.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_3 { - - public short run(short[] arr, int idx) { - return arr[idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_4.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_4.j deleted file mode 100644 index 75cbfbfccaf03d77d62c7a3c3b94ea5e95ef2aeb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_4.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_4.java -.class public dxc/junit/opcodes/saload/jm/T_saload_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([SD)S - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - saload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_4.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_4.java deleted file mode 100644 index c482474d76bd90d74c8e1b745ad6dbdb14eaa920..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_4.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_4 { - - public short run(short[] arr, double idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_5.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_5.j deleted file mode 100644 index f528968a4e1b6fde7f6cee897a6d552053a3f01d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_5.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_5.java -.class public dxc/junit/opcodes/saload/jm/T_saload_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([SJ)S - .limit stack 4 - .limit locals 5 - - aload_1 - lload_2 - saload - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_5.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_5.java deleted file mode 100644 index 4f95b0d451beea2d00ebe87aa691d9c1e437d37b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_5.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_5 { - - public short run(short[] arr, long idx) { - return arr[(int)idx]; - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_6.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_6.j deleted file mode 100644 index 9682e210b7f4e8091ac7e8b1efd70536a66edec0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_6.java -.class public dxc/junit/opcodes/saload/jm/T_saload_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;[SI)S - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - - saload - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_6.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_6.java deleted file mode 100644 index 1c1cf0d34f6336dacf780dec0db15ef0529b632d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_6 { - - public short run(Object a, short[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_7.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_7.j deleted file mode 100644 index fac34c856fb8c037126f1a2569bb714b8799e492..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_7.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_7.java -.class public dxc/junit/opcodes/saload/jm/T_saload_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([D[SI)S - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - saload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_7.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_7.java deleted file mode 100644 index 5036d2267d7402d15e95c740c69f9cac6b2962f7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_7 { - - public short run(double[] a, short[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_8.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_8.j deleted file mode 100644 index f5d15daf74cb4d12df6e61ae4f220178ea846a1a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_8.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_8.java -.class public dxc/junit/opcodes/saload/jm/T_saload_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run([I[SI)S - .limit stack 2 - .limit locals 4 - aload_1 - iload_3 - saload - - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_8.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_8.java deleted file mode 100644 index 77bc620dfe353206a30401cf2a2339015dda0f31..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_8 { - - public short run(int[] a, short[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_9.j b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_9.j deleted file mode 100644 index af1e40dd3c9dab6e7a9e438176fd66c98dacdcc2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_9.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_saload_9.java -.class public dxc/junit/opcodes/saload/jm/T_saload_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SI)S - .limit stack 2 - .limit locals 3 - - aload_1 - aload_0 - saload - ireturn - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_9.java b/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_9.java deleted file mode 100644 index 05b3f3e971430f6c57d974704001f56a21dfe230..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/saload/jm/T_saload_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.saload.jm; - -public class T_saload_9 { - - public short run(short[] arr, int idx) { - return arr[idx]; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/Test_sastore.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/Test_sastore.java deleted file mode 100644 index f4127c49773269ae29c7e14e04e7c547c98796da..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/Test_sastore.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.sastore.jm.T_sastore_1; - -public class Test_sastore extends DxTestCase { - - /** - * @title normal test. trying different indexes - */ - public void testN1() { - T_sastore_1 t = new T_sastore_1(); - short[] arr = new short[2]; - t.run(arr, 1, (short) 10000); - assertEquals(10000, arr[1]); - } - - /** - * @title normal test. trying different indexes - */ - public void testN2() { - T_sastore_1 t = new T_sastore_1(); - short[] arr = new short[2]; - t.run(arr, 0, (short) 10000); - assertEquals(10000, arr[0]); - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE1() { - T_sastore_1 t = new T_sastore_1(); - short[] arr = new short[2]; - try { - t.run(arr, 2, (short) 10000); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @title expected NullPointerException - */ - public void testE2() { - T_sastore_1 t = new T_sastore_1(); - try { - t.run(null, 2, (short) 10000); - fail("expected NullPointerException"); - } catch (NullPointerException aie) { - // expected - } - } - - /** - * @title expected ArrayIndexOutOfBoundsException - */ - public void testE3() { - T_sastore_1 t = new T_sastore_1(); - short[] arr = new short[2]; - try { - t.run(arr, -1, (short) 10000); - fail("expected ArrayIndexOutOfBoundsException"); - } catch (ArrayIndexOutOfBoundsException aie) { - // expected - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, double, - * int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, int, long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - object, int, int - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double[], int, - * int - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long[], int, int - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - array, reference, - * int - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.sastore.jm.T_sastore_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_1.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_1.j deleted file mode 100644 index 239c519e634c98c03d8a0271603db2903a8c8abe..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_1.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SIS)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_1.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_1.java deleted file mode 100644 index d55f7557372f575abf8c31948e78c1ec970bbe41..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_1 { - public void run(short[] arr, int idx, short value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_2.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_2.j deleted file mode 100644 index d72eb807a8374fa604e3e91f9b65e8bb78845d16..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_2.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_2.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SIS)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - ;iload_3 - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_2.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_2.java deleted file mode 100644 index 5072930e94c0fd4739302ce231e308f1f4c366b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_2 { - - public void run(short[] arr, int idx, short value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_3.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_3.j deleted file mode 100644 index 19c93e3c5a77044c334319b04ca2d3e7a36428b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_3.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SIS)V - .limit stack 3 - .limit locals 4 - - ;aload_1 - iload_2 - iload_3 - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_3.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_3.java deleted file mode 100644 index 9417fffc41e87b63d96f4aa9246b3c3bcef96c61..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_3 { - - public void run(short[] arr, int idx, short value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_4.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_4.j deleted file mode 100644 index 2fd5a513be9989f7efabcff5b0ed85993e8c5541..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_4.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_4.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([SDI)V - .limit stack 4 - .limit locals 5 - - aload_1 - dload_2 -; d2i - iload 4 - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_4.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_4.java deleted file mode 100644 index 20e56194ce3fd801388b24954e2592bc0d061c87..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_4 { - - public void run(short[] arr, double idx, short value) { - arr[(int)idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_5.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_5.j deleted file mode 100644 index 1c26fe88e3ff0c8b31662d40ab892fc55fc2dd15..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_5.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_5.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run([SIJ)V - .limit stack 4 - .limit locals 5 - - aload_1 - iload_2 - lload 3 -; l2i -; i2s - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_5.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_5.java deleted file mode 100644 index c235f957dd106afbe0ca24dc81446592f37f0464..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_5 { - - public void run(short[] arr, int idx, long value) { - arr[idx] = (short)value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_6.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_6.j deleted file mode 100644 index e7ba17c980aea45c661ba884b03619091fdb9ff4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_6.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_6.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(Ljava/lang/Object;IS)V - .limit stack 3 - .limit locals 4 - - aload_1 - iload_2 - iload_3 - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_6.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_6.java deleted file mode 100644 index 074ad48c136d4016e03b3669143fbf08452af464..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_6 { - - public void run(Object a, short[] arr, int idx, short value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_7.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_7.j deleted file mode 100644 index b2a3f8a401468132da7b0234aa0645dbda42fb19..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_7.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_7.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([D[SIS)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_7.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_7.java deleted file mode 100644 index 88d61cf9e21507b42035a2d99513163aad8676f2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_7 { - - public void run(double a[], short[] arr, int idx, short value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_8.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_8.j deleted file mode 100644 index c6df01dfbcbbd6487904a28542fd91ead9041fcc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_8.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_8.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([J[SIS)V - .limit stack 3 - .limit locals 5 - - aload_1 - iload_3 - iload 4 - sastore - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_8.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_8.java deleted file mode 100644 index bce0b50f2f8aae9ba18fcb60548a274fe4b3013b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_8 { - - public void run(long a[], short[] arr, int idx, short value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_9.j b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_9.j deleted file mode 100644 index a0a551f5af4dcca2902590d274c34ebe9092dfec..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_9.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sastore_9.java -.class public dxc/junit/opcodes/sastore/jm/T_sastore_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run([SIS)V - .limit stack 3 - .limit locals 4 - - aload_1 - aload_0 - iload_3 - sastore - return - -.end method \ No newline at end of file diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_9.java b/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_9.java deleted file mode 100644 index 444da12ee49057b86be2a14fd9e98c26bbf9d7d5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sastore/jm/T_sastore_9.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sastore.jm; - -public class T_sastore_9 { - - public void run(short[] arr, int idx, short value) { - arr[idx] = value; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/Test_sipush.java b/tools/dx-tests/src/dxc/junit/opcodes/sipush/Test_sipush.java deleted file mode 100644 index 2f414c4915f1a3d4a9a04ea2f96ed7c52b3a1d8b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/Test_sipush.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sipush; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.sipush.jm.T_sipush_1; -import dxc.junit.opcodes.sipush.jm.T_sipush_2; -import dxc.junit.opcodes.sipush.jm.T_sipush_3; - -public class Test_sipush extends DxTestCase { - - /** - * @title sipush -13570 - */ - public void testN1() { - T_sipush_1 t = new T_sipush_1(); - assertEquals(-13570, t.run()); - } - - /** - * @title sipush 0 - */ - public void testB1() { - T_sipush_2 t = new T_sipush_2(); - assertEquals(0, t.run()); - } - - /** - * @title sipush - 1 - */ - public void testB2() { - T_sipush_3 t = new T_sipush_3(); - assertEquals(-1, t.run()); - } - - /** - * @constraint 4.8.2.5 - * @title stack size - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.sipush.jm.T_sipush_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_1.j b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_1.j deleted file mode 100644 index 93b611e854b45da7ecdf63bfe1dc3fd989954bcd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_1.j +++ /dev/null @@ -1,28 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sipush_1.java -.class public dxc/junit/opcodes/sipush/jm/T_sipush_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()S - sipush -13570 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_1.java b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_1.java deleted file mode 100644 index 32f714e6c193ae0e80ee1f5d263d4aec8cc79314..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sipush.jm; - -public class T_sipush_1 { - - public short run() { - return (short)0xcafe; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_2.j b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_2.j deleted file mode 100644 index 590d92fc0070c3c7fdb004ac23894000ab89ccef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_2.j +++ /dev/null @@ -1,34 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sipush_2.java -.class public dxc/junit/opcodes/sipush/jm/T_sipush_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()S - .limit stack 1 - .limit locals 1 - - sipush 0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_2.java b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_2.java deleted file mode 100644 index adab91612f62ba2b8d5a9e6a255f2b3ae88a164a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sipush.jm; - -public class T_sipush_2 { - - public short run() { - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_3.j b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_3.j deleted file mode 100644 index 415c159e8948e661c18853bc24f465084215fe83..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_3.j +++ /dev/null @@ -1,33 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sipush_3.java -.class public dxc/junit/opcodes/sipush/jm/T_sipush_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run()S - .limit stack 1 - .limit locals 1 - - sipush -1 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_3.java b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_3.java deleted file mode 100644 index 81ff83be20d8321ea9bfbd9fb89372fd9b0b1ae8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sipush.jm; - -public class T_sipush_3 { - - public short run() { - return -1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_4.j b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_4.j deleted file mode 100644 index f852a9ac9fbed1a888fe12a678138286700a99b3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_sipush_4.java -.class public dxc/junit/opcodes/sipush/jm/T_sipush_4 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()S - .limit stack 1 -; .limit locals 1 - - sipush 1 - sipush 1 - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_4.java b/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_4.java deleted file mode 100644 index e3e540c611fa095da551d188b7ee8e3309ede003..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/sipush/jm/T_sipush_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.sipush.jm; - -public class T_sipush_4 { - - public short run() { - return 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/Test_swap.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/Test_swap.java deleted file mode 100644 index b7d820863e6166acdd6c4714de43522c4b369daf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/Test_swap.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.swap.jm.T_swap_1; -import dxc.junit.opcodes.swap.jm.T_swap_6; -import dxc.junit.opcodes.swap.jm.T_swap_7; -import dxc.junit.opcodes.swap.jm.T_swap_8; - -public class Test_swap extends DxTestCase { - - /** - * @title Integers - */ - public void testN1() { - T_swap_1 t = new T_swap_1(); - assertEquals(8, t.run(15, 8)); - } - - /** - * @title Floats - */ - public void testN2() { - T_swap_6 t = new T_swap_6(); - assertEquals(8f, t.run(15f, 8f)); - } - - /** - * @title References - */ - public void testN3() { - T_swap_7 t = new T_swap_7(); - int tmp[] = new int[1]; - assertEquals(tmp, t.run(this, tmp)); - } - - /** - * @title Reference & int - */ - public void testN4() { - T_swap_8 t = new T_swap_8(); - assertEquals(this, t.run(0xff, this)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.swap.jm.T_swap_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - - /** - * @constraint 4.8.2.1 - * @title types of arguments - double & int - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.swap.jm.T_swap_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & int - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.swap.jm.T_swap_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title types of arguments - long & long - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.swap.jm.T_swap_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_1.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_1.j deleted file mode 100644 index 42cb0cc0632c8deb73a56e81738f9d66b2966765..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_1.j +++ /dev/null @@ -1,32 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_1.java -.class public dxc/junit/opcodes/swap/jm/T_swap_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_2 - iload_1 - swap - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_1.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_1.java deleted file mode 100644 index a662235352c6b25238aadcff59ece35af1a2dd3b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_1 { - - public int run(int a, int b) { - return b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_2.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_2.j deleted file mode 100644 index 77dca55cd486e63e3b0f378f6a91f02aedffcc49..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_2.java -.class public dxc/junit/opcodes/swap/jm/T_swap_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run(II)I - .limit stack 2 - .limit locals 3 - iload_1 -; iload_2 - swap - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_2.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_2.java deleted file mode 100644 index f9ee17f33b170ce7b9648abe5fb11f78243dd64d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_2 { - - public int run(int a, int b) { - return b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_3.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_3.j deleted file mode 100644 index 3ea9627c99375bc1fb54eede15e4b67c12b9c4bb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_3.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_3.java -.class public dxc/junit/opcodes/swap/jm/T_swap_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(DI)I - .limit stack 3 - .limit locals 4 - - dload_1 -; d2i - iload_3 - swap - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_3.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_3.java deleted file mode 100644 index 34278c5281af6800dd0dc3a02a8c3e4d73f9245b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_3.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_3 { - - public int run(double a, int b) { - return b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_4.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_4.j deleted file mode 100644 index 641c2567ce75ff3bea0c713509ef712be6cd8299..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_4.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_4.java -.class public dxc/junit/opcodes/swap/jm/T_swap_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(IJ)I - .limit stack 3 - .limit locals 4 - - iload_1 - lload_2 - swap - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_4.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_4.java deleted file mode 100644 index ffd75d64e36e3d556be8f6d36047b4890c7f73aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_4.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_4 { - - public int run(int a, long b) { - return (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_5.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_5.j deleted file mode 100644 index 53d03afb73ddf742cde98e2a4f2d5c91bc5634c6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_5.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_5.java -.class public dxc/junit/opcodes/swap/jm/T_swap_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(JJ)I - .limit stack 4 - .limit locals 5 - - lload_1 - lload_3 - swap - - iconst_0 - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_5.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_5.java deleted file mode 100644 index d68494417fd9cb5aa8e1fe4e024fe79c3cb2674c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_5.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_5 { - - public int run(int a, long b) { - return (int)b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_6.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_6.j deleted file mode 100644 index 4b339528c2f6fc37e405491e215bd9fa40dad112..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_6.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_6.java -.class public dxc/junit/opcodes/swap/jm/T_swap_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(FF)F - .limit stack 4 - .limit locals 5 - - fload_2 - fload_1 - - swap - - freturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_6.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_6.java deleted file mode 100644 index c52c8d3cfd5ec8f449ae69a589fb579e246d86d8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_6.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_6 { - - public float run(float a, float b) { - return b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_7.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_7.j deleted file mode 100644 index 615a782030ce039843889d57df55cbe21a5b2094..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_7.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_7.java -.class public dxc/junit/opcodes/swap/jm/T_swap_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; - .limit stack 4 - .limit locals 5 - - aload_2 - aload_1 - - swap - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_7.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_7.java deleted file mode 100644 index 789077e6119b7a92a433cc5480f64afafc8c7ca4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_7.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_7 { - - public Object run(Object a, Object b) { - return b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_8.j b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_8.j deleted file mode 100644 index 81a647b23343597ab5f9d8a66c0787260aa1ad40..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_8.j +++ /dev/null @@ -1,37 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_swap_8.java -.class public dxc/junit/opcodes/swap/jm/T_swap_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run(ILjava/lang/Object;)Ljava/lang/Object; - .limit stack 4 - .limit locals 5 - - aload_2 - iload_1 - - swap - - areturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_8.java b/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_8.java deleted file mode 100644 index d4608bb2c1a9b8dc41868bc5f483b38ae9e89be4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/swap/jm/T_swap_8.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.swap.jm; - -public class T_swap_8 { - - public Object run(int a, Object b) { - return b; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/Test_tableswitch.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/Test_tableswitch.java deleted file mode 100644 index 459fb727ae7109f49f66a33e7db41cf2cfc8febf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/Test_tableswitch.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.opcodes.tableswitch.jm.T_tableswitch_1; - -public class Test_tableswitch extends DxTestCase { - - /** - * @title normal test - */ - public void testN1() { - T_tableswitch_1 t = new T_tableswitch_1(); - assertEquals(2, t.run(-1)); - - assertEquals(-1, t.run(4)); - assertEquals(20, t.run(2)); - assertEquals(-1, t.run(5)); - - assertEquals(-1, t.run(6)); - assertEquals(20, t.run(3)); - assertEquals(-1, t.run(7)); - } - - /** - * @title check Integer.MAX_VALUE - */ - public void testB1() { - T_tableswitch_1 t = new T_tableswitch_1(); - assertEquals(-1, t.run(Integer.MAX_VALUE)); - } - - /** - * @title check Integer.MIN_VALUE - */ - public void testB2() { - T_tableswitch_1 t = new T_tableswitch_1(); - assertEquals(-1, t.run(Integer.MIN_VALUE)); - } - - /** - * @constraint 4.8.2.1 - * @title number of arguments - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - float - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.8 - * @title branch target shall be inside the - * method - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.8 - * @title branch target shall not be "inside" wide - * instruction - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_5"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.8 - * @title low value shall be less than high - * value - */ - public void testVFE5() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_6"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.8 - * @title non-zero padding - */ - public void testVFE6() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_7"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.1 - * @title type of argument - reference - */ - public void testVFE7() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_8"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.8 - * @title number of entries in jump table - */ - public void testVFE8() { - try { - Class.forName("dxc.junit.opcodes.tableswitch.jm.T_tableswitch_9"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_1.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_1.j deleted file mode 100644 index e21d5c3149d59018eee334e83cd44fd2ef083a8e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_1.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_1.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - tableswitch -1 3 - Label0 - Label3 - Label3 - Label1 - Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_1.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_1.java deleted file mode 100644 index 6feb6d8b73d886e54b1667f3904737e422e55334..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_1.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_1 { - - public int run(int i) { - switch (i) { - case -1: - return 2; - case 2: - case 3: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_2.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_2.j deleted file mode 100644 index 4fbe7d76edea04cf8db4deb5b1886de2f5bc8738..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_2.j +++ /dev/null @@ -1,46 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_2.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 -; iload_1 - tableswitch 1 3 - Label0 - Label1 - Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_2.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_2.java deleted file mode 100644 index dd07d01ec5d8eec15fed21d7897b06a0fca11e74..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_2.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_2 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - case 2: - case 3: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_3.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_3.j deleted file mode 100644 index 14f6827bf69d1566251b508c669903b49afac7e0..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_3.j +++ /dev/null @@ -1,48 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_3.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - fconst_1 - - tableswitch 1 3 - Label0 - Label1 - Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_3.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_3.java deleted file mode 100644 index fe2cfed938479a6e7c4e950b8f3bb78ceae89bc1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_3.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_3 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - case 2: - case 3: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.cfh b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.cfh deleted file mode 100644 index f70e16ca0b7bd718ec0eacab919a94d523290098..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 51, h: 0006: utf8{"dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4"} - // . . 0 d x c / j u n i t / o p c o d e s / t a b l e s w i t c h / j m / T _ t a b l e s w i t c h _ 4 - 01 00 30 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 74 61 62 6c 65 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 34 - // parsed:, offset 113, len 23, h: 0007: utf8{"T_tableswitch_4.java"} - // . . . T _ t a b l e s w i t c h _ 4 . j a v a - 01 00 14 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 34 2e 6a 61 76 61 - // parsed:, offset 136, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 141, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 148, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 154, len 3, h: 000b: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_4} - // . . . - 07 00 06 - // parsed:, offset 157, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 160, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 167, len 0, h: end constant_pool -// parsed:, offset 167, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 169, len 2, h: this_class: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_4} -// . . - 00 0b -// parsed:, offset 171, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 173, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 175, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 177, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 179, len:102,desc: ()V -// parsed:, offset 179, len 0, h: methods[0]: - // parsed:, offset 179, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 181, len 2, h: name: - // . . - 00 04 - // parsed:, offset 183, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 185, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 187, len 0, h: attributes[0]: - // parsed:, offset 187, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 189, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 193, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 195, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 197, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 206, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 208, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 210, len 0, h: end attributes[0] -// parsed:, offset 210, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 210, len:71,desc: (I)I -// parsed:, offset 210, len 0, h: methods[1]: - // parsed:, offset 210, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 212, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 214, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 216, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 218, len 0, h: attributes[0]: - // parsed:, offset 218, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 220, len 4, h: length: 0000002f - // . . . / - 00 00 00 2f - // parsed:, offset 224, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 226, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 228, len 4, h: code_length: 00000023 - // . . . # - 00 00 00 23 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 27, h: 0001: tableswitch +00000001: 001c +00000002: 001e +00000003: 001e default: 0021 - // . . . . . . . . . . . . . . . . . . . . . . . . . . -//@mod aa 00 00 00 00 00 20 00 00 00 01 00 00 00 03 00 00 00 1b 00 00 00 1d 00 00 00 1d - aa 00 00 00 00 00 20 00 00 00 01 00 00 00 03 00 00 00 1b 00 00 00 1d 00 00 00 ff - // parsed:, offset 28, len 1, h: 001c: iconst_2 // #+02 - // . - 05 - // parsed:, offset 29, len 1, h: 001d: ireturn - // . - ac - // parsed:, offset 30, len 2, h: 001e: bipush #+14 - // . . - 10 14 - // parsed:, offset 32, len 1, h: 0020: ireturn - // . - ac - // parsed:, offset 33, len 1, h: 0021: iconst_m1 // #-01 - // . - 02 - // parsed:, offset 34, len 1, h: 0022: ireturn - // . - ac - // parsed:, offset 267, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 269, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 271, len 0, h: end attributes[0] -// parsed:, offset 271, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 271, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 273, len 0, h: attributes[0]: - // parsed:, offset 273, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 275, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 279, len 2, h: source: utf8{"T_tableswitch_4.java"} - // . . - 00 07 -// parsed:, offset 281, len 0, h: end attributes[0] -// parsed:, offset 281, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.j deleted file mode 100644 index b527e242a1edecbb095da3a657adeeab8545bb93..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_4.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - tableswitch 1 3 - Label0 - Label1 - Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.java deleted file mode 100644 index ab0d8e12894420a2fd33f8f92de800b40e73d17d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_4.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_4 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - case 2: - case 3: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.cfh b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.cfh deleted file mode 100644 index 9d8b286c205fe531dafa55f5f3e593a9f52c9d74..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 51, h: 0005: utf8{"dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5"} - // . . 0 d x c / j u n i t / o p c o d e s / t a b l e s w i t c h / j m / T _ t a b l e s w i t c h _ 5 - 01 00 30 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 74 61 62 6c 65 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 35 - // parsed:, offset 107, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 113, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 118, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 125, len 23, h: 0009: utf8{"T_tableswitch_5.java"} - // . . . T _ t a b l e s w i t c h _ 5 . j a v a - 01 00 14 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 35 2e 6a 61 76 61 - // parsed:, offset 148, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 154, len 3, h: 000b: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_5} - // . . . - 07 00 05 - // parsed:, offset 157, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 160, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 167, len 0, h: end constant_pool -// parsed:, offset 167, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 169, len 2, h: this_class: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_5} -// . . - 00 0b -// parsed:, offset 171, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 173, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 175, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 177, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 179, len:105,desc: ()V -// parsed:, offset 179, len 0, h: methods[0]: - // parsed:, offset 179, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 181, len 2, h: name: - // . . - 00 04 - // parsed:, offset 183, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 185, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 187, len 0, h: attributes[0]: - // parsed:, offset 187, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 189, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 193, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 195, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 197, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 206, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 208, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 210, len 0, h: end attributes[0] -// parsed:, offset 210, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 210, len:74,desc: (I)I -// parsed:, offset 210, len 0, h: methods[1]: - // parsed:, offset 210, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 212, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 214, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 216, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 218, len 0, h: attributes[0]: - // parsed:, offset 218, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 220, len 4, h: length: 00000032 - // . . . 2 - 00 00 00 32 - // parsed:, offset 224, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 226, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 228, len 4, h: code_length: 00000026 - // . . . & - 00 00 00 26 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 27, h: 0001: tableswitch +00000001: 001c +00000002: 001e +00000003: 001e default: 0021 - // . . . . . . . . . . . . . . . . . . . . . . . . . . -//@mod aa 00 00 00 00 00 20 00 00 00 01 00 00 00 03 00 00 00 1b 00 00 00 1d 00 00 00 1d - aa 00 00 00 00 00 21 00 00 00 01 00 00 00 03 00 00 00 1b 00 00 00 1d 00 00 00 1d - // parsed:, offset 28, len 1, h: 001c: iconst_2 // #+02 - // . - 05 - // parsed:, offset 29, len 1, h: 001d: ireturn - // . - ac - // parsed:, offset 30, len 2, h: 001e: bipush #+14 - // . . - 10 14 - // parsed:, offset 32, len 1, h: 0020: ireturn - // . - ac - // parsed:, offset 33, len 4, h: 0021: wide iload 0001 - // . . . . - c4 15 00 01 - // parsed:, offset 37, len 1, h: 0025: ireturn - // . - ac - // parsed:, offset 270, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 272, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 274, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 276, len 0, h: attributes[0]: - // parsed:, offset 276, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 278, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 282, len 2, h: source: utf8{"T_tableswitch_5.java"} - // . . - 00 09 -// parsed:, offset 284, len 0, h: end attributes[0] -// parsed:, offset 284, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.j deleted file mode 100644 index e085f06f66a80c328f517aa1c7794529bd556b1a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_5.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - tableswitch 1 3 - Label0 - Label1 - Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iload_w 1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.java deleted file mode 100644 index 37025244bbb8ddfbe848336a431f29b2e445d231..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_5.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_5 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - case 2: - case 3: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.cfh b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.cfh deleted file mode 100644 index 51a3fad3b3df02605e5c42dede0315e72c9f7a66..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.cfh +++ /dev/null @@ -1,194 +0,0 @@ -//@class:dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0b 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 51, h: 0005: utf8{"dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6"} - // . . 0 d x c / j u n i t / o p c o d e s / t a b l e s w i t c h / j m / T _ t a b l e s w i t c h _ 6 - 01 00 30 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 74 61 62 6c 65 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 36 - // parsed:, offset 107, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 113, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 09 - // parsed:, offset 118, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 125, len 6, h: 0009: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 131, len 3, h: 000a: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_6} - // . . . - 07 00 05 - // parsed:, offset 134, len 3, h: 000b: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 137, len 23, h: 000c: utf8{"T_tableswitch_6.java"} - // . . . T _ t a b l e s w i t c h _ 6 . j a v a - 01 00 14 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 36 2e 6a 61 76 61 - // parsed:, offset 160, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 167, len 0, h: end constant_pool -// parsed:, offset 167, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 169, len 2, h: this_class: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_6} -// . . - 00 0a -// parsed:, offset 171, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0b -// parsed:, offset 173, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 175, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 177, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 179, len:91,desc: ()V -// parsed:, offset 179, len 0, h: methods[0]: - // parsed:, offset 179, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 181, len 2, h: name: - // . . - 00 04 - // parsed:, offset 183, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 185, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 187, len 0, h: attributes[0]: - // parsed:, offset 187, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 189, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 193, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 195, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 197, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 206, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 208, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 210, len 0, h: end attributes[0] -// parsed:, offset 210, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 210, len:60,desc: (I)I -// parsed:, offset 210, len 0, h: methods[1]: - // parsed:, offset 210, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 212, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 214, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 216, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 218, len 0, h: attributes[0]: - // parsed:, offset 218, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 220, len 4, h: length: 00000024 - // . . . $ - 00 00 00 24 - // parsed:, offset 224, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 226, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 228, len 4, h: code_length: 00000018 - // . . . . - 00 00 00 18 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 19, h: 0001: tableswitch +00000001: 0014 default: 0016 - // . . . . . . . . . . . . . . . . . . . -//@mod aa 00 00 00 00 00 15 00 00 00 01 00 00 00 01 00 00 00 13 - aa 00 00 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 13 - // parsed:, offset 20, len 1, h: 0014: iconst_2 // #+02 - // . - 05 - // parsed:, offset 21, len 1, h: 0015: ireturn - // . - ac - // parsed:, offset 22, len 1, h: 0016: iconst_m1 // #-01 - // . - 02 - // parsed:, offset 23, len 1, h: 0017: ireturn - // . - ac - // parsed:, offset 256, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 258, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 260, len 0, h: end attributes[0] -// parsed:, offset 260, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 260, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 262, len 0, h: attributes[0]: - // parsed:, offset 262, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 264, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 268, len 2, h: source: utf8{"T_tableswitch_6.java"} - // . . - 00 0c -// parsed:, offset 270, len 0, h: end attributes[0] -// parsed:, offset 270, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.j deleted file mode 100644 index b2909721bcf13271d46b9c0d2ce25a8a3c6e6312..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_6.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - tableswitch 1 1 - Label0 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label3: - iconst_m1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.java deleted file mode 100644 index 038bd4ff208eca42fb422519c22dbdce8a8bd1ce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_6.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_6 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.cfh b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.cfh deleted file mode 100644 index 74cf765d4697627e3e049627bac033226e718455..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.cfh +++ /dev/null @@ -1,200 +0,0 @@ -//@class:dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000e -// . . - 00 0e -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 51, h: 0004: utf8{"dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7"} - // . . 0 d x c / j u n i t / o p c o d e s / t a b l e s w i t c h / j m / T _ t a b l e s w i t c h _ 7 - 01 00 30 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 74 61 62 6c 65 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 37 - // parsed:, offset 98, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 107, len 23, h: 0006: utf8{"T_tableswitch_7.java"} - // . . . T _ t a b l e s w i t c h _ 7 . j a v a - 01 00 14 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 37 2e 6a 61 76 61 - // parsed:, offset 130, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 136, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 141, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 148, len 3, h: 000a: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_7} - // . . . - 07 00 04 - // parsed:, offset 151, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 157, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 160, len 7, h: 000d: utf8{"(I)I"} - // . . . ( I ) I - 01 00 04 28 49 29 49 -// parsed:, offset 167, len 0, h: end constant_pool -// parsed:, offset 167, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 169, len 2, h: this_class: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_7} -// . . - 00 0a -// parsed:, offset 171, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 173, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 175, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 177, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 179, len:105,desc: ()V -// parsed:, offset 179, len 0, h: methods[0]: - // parsed:, offset 179, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 181, len 2, h: name: - // . . - 00 05 - // parsed:, offset 183, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 185, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 187, len 0, h: attributes[0]: - // parsed:, offset 187, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 189, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 193, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 195, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 197, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 206, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 208, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 210, len 0, h: end attributes[0] -// parsed:, offset 210, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 210, len:74,desc: (I)I -// parsed:, offset 210, len 0, h: methods[1]: - // parsed:, offset 210, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 212, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 214, len 2, h: descriptor: (I)I - // . . - 00 0d - // parsed:, offset 216, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 218, len 0, h: attributes[0]: - // parsed:, offset 218, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 220, len 4, h: length: 00000032 - // . . . 2 - 00 00 00 32 - // parsed:, offset 224, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 226, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 228, len 4, h: code_length: 00000026 - // . . . & - 00 00 00 26 - // parsed:, offset 0, len 1, h: 0000: iload_1 // 01 - // . - 1b - // parsed:, offset 1, len 27, h: 0001: tableswitch +00000001: 001c +00000002: 001e +00000003: 001e default: 0021 - // . . . . . . . . . . . . . . . . . . . . . . . . . . -//@mod aa 00 00 00 00 00 20 00 00 00 01 00 00 00 03 00 00 00 1b 00 00 00 1d 00 00 00 1d - aa 00 01 00 00 00 20 00 00 00 01 00 00 00 03 00 00 00 1b 00 00 00 1d 00 00 00 1d - // parsed:, offset 28, len 1, h: 001c: iconst_2 // #+02 - // . - 05 - // parsed:, offset 29, len 1, h: 001d: ireturn - // . - ac - // parsed:, offset 30, len 2, h: 001e: bipush #+14 - // . . - 10 14 - // parsed:, offset 32, len 1, h: 0020: ireturn - // . - ac - // parsed:, offset 33, len 4, h: 0021: wide iload 0001 - // . . . . - c4 15 00 01 - // parsed:, offset 37, len 1, h: 0025: ireturn - // . - ac - // parsed:, offset 270, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 272, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 274, len 0, h: end attributes[0] -// parsed:, offset 274, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: (I)I -// parsed:, offset 274, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 276, len 0, h: attributes[0]: - // parsed:, offset 276, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 278, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 282, len 2, h: source: utf8{"T_tableswitch_7.java"} - // . . - 00 06 -// parsed:, offset 284, len 0, h: end attributes[0] -// parsed:, offset 284, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.j deleted file mode 100644 index e944ce0d30b1af696202f889e5dd48afc4d9de01..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.j +++ /dev/null @@ -1,47 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_7.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - iload_1 - - tableswitch 1 3 - Label0 - Label1 - Label1 - default: Label3 - - Label0: - iconst_2 - ireturn - - Label1: - bipush 20 - ireturn - - Label3: - iload_w 1 - ireturn -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.java deleted file mode 100644 index e36101b13d7107ee7071c3c56a8c4520ec6ee803..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_7.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_7 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - case 2: - case 3: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_8.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_8.j deleted file mode 100644 index d9d3f2a61a897e547e27199243107b26d26d3343..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_8.j +++ /dev/null @@ -1,54 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_8.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_8 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - -.method public run(I)I - .limit stack 1 - .limit locals 2 - - aload_0 - - tableswitch 1 3 - Label0 - Label1 - Label1 - default: Label3 - - Label0: -.line 8 - iconst_2 - ireturn - - Label1: -.line 11 - bipush 20 - ireturn - - Label3: -.line 13 - iconst_m1 - - Label5: - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_8.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_8.java deleted file mode 100644 index 205fec97b8e709bd26daf737ded0ed195b4824c2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_8.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_8 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - case 2: - case 3: - return 20; - default: - return -1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.cfh b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.cfh deleted file mode 100644 index ded5708cb98952e67b5939ab10488b917b4aec27..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 51, h: 0003: utf8{"dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9"} - // . . 0 d x c / j u n i t / o p c o d e s / t a b l e s w i t c h / j m / T _ t a b l e s w i t c h _ 9 - 01 00 30 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 74 61 62 6c 65 73 77 69 74 63 68 2f 6a 6d 2f 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 39 - // parsed:, offset 85, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 98, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 107, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 113, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0a - // parsed:, offset 118, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 125, len 3, h: 0009: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_9} - // . . . - 07 00 03 - // parsed:, offset 128, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 134, len 23, h: 000b: utf8{"T_tableswitch_9.java"} - // . . . T _ t a b l e s w i t c h _ 9 . j a v a - 01 00 14 54 5f 74 61 62 6c 65 73 77 69 74 63 68 5f 39 2e 6a 61 76 61 - // parsed:, offset 157, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 160, len 0, h: end constant_pool -// parsed:, offset 160, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 162, len 2, h: this_class: type{dxc.junit.opcodes.tableswitch.jm.T_tableswitch_9} -// . . - 00 09 -// parsed:, offset 164, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 166, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 168, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 170, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 172, len:89,desc: ()V -// parsed:, offset 172, len 0, h: methods[0]: - // parsed:, offset 172, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 174, len 2, h: name: - // . . - 00 05 - // parsed:, offset 176, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 178, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 180, len 0, h: attributes[0]: - // parsed:, offset 180, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 182, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 186, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 188, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 190, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 199, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 201, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 203, len 0, h: end attributes[0] -// parsed:, offset 203, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 203, len:58,desc: ()V -// parsed:, offset 203, len 0, h: methods[1]: - // parsed:, offset 203, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 205, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 207, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 209, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 211, len 0, h: attributes[0]: - // parsed:, offset 211, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 213, len 4, h: length: 00000022 - // . . . " - 00 00 00 22 - // parsed:, offset 217, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 219, len 2, h: max_locals: 0002 - // . . - 00 02 - // parsed:, offset 221, len 4, h: code_length: 00000016 - // . . . . - 00 00 00 16 - // parsed:, offset 0, len 1, h: 0000: iconst_1 // #+01 - // . - 04 - // parsed:, offset 1, len 19, h: 0001: tableswitch +00000001: 0014 default: 0015 - // . . . . . . . . . . . . . . . . . . . -//@mod aa 00 00 00 00 00 14 00 00 00 01 00 00 00 01 00 00 00 13 - aa 00 00 00 00 00 14 00 00 00 01 00 00 00 02 00 00 00 13 - // parsed:, offset 20, len 1, h: 0014: return - // . - b1 - // parsed:, offset 21, len 1, h: 0015: return - // . - b1 - // parsed:, offset 247, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 249, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 251, len 0, h: end attributes[0] -// parsed:, offset 251, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 251, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 253, len 0, h: attributes[0]: - // parsed:, offset 253, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 255, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 259, len 2, h: source: utf8{"T_tableswitch_9.java"} - // . . - 00 0b -// parsed:, offset 261, len 0, h: end attributes[0] -// parsed:, offset 261, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.j b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.j deleted file mode 100644 index 155aae4b8b65b6594454b373309dee48d454f40c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.j +++ /dev/null @@ -1,41 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_tableswitch_9.java -.class public dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 1 - .limit locals 2 - - iconst_1 - tableswitch 1 1 - Label0 - default: Label1 - -Label0: - return - -Label1: - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.java b/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.java deleted file mode 100644 index 39f83b14629070dde4903b5b907b8ae95e9910dc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/tableswitch/jm/T_tableswitch_9.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.tableswitch.jm; - -public class T_tableswitch_9 { - - public int run(int i) { - switch (i) { - case 1: - return 2; - } - return 0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/wide/Test_wide.java b/tools/dx-tests/src/dxc/junit/opcodes/wide/Test_wide.java deleted file mode 100644 index c27db48ebe06fbf00b04eb1ef89b0e8a439f0927..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/wide/Test_wide.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.wide; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - - -public class Test_wide extends DxTestCase { - - /** - * Wide instruction is tested as part of wide version of particular - * instructions so here we just test if wide instruction can't be applied to - * wrong bytecode. - */ - - /** - * @constraint 4.8.1.5 (?) - * @title Wide instruction shall be applied only on defined - * instructions - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.opcodes.wide.jm.T_wide_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.5 - * @title bytecode modified with wide instruction must not be - * reachable directly - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.opcodes.wide.jm.T_wide_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.cfh b/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.cfh deleted file mode 100644 index 0906ca297fd52e1f5e132e6965ab5fbc3288a2a9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.cfh +++ /dev/null @@ -1,182 +0,0 @@ -//@class:dxc/junit/opcodes/wide/jm/T_wide_1 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0b 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 37, h: 0003: utf8{"dxc/junit/opcodes/wide/jm/T_wide_1"} - // . . " d x c / j u n i t / o p c o d e s / w i d e / j m / T _ w i d e _ 1 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 77 69 64 65 2f 6a 6d 2f 54 5f 77 69 64 65 5f 31 - // parsed:, offset 71, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 84, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 93, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 99, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 09 - // parsed:, offset 104, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 111, len 6, h: 0009: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 117, len 3, h: 000a: type{dxc.junit.opcodes.wide.jm.T_wide_1} - // . . . - 07 00 03 - // parsed:, offset 120, len 3, h: 000b: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 123, len 16, h: 000c: utf8{"T_wide_1.java"} - // . . . T _ w i d e _ 1 . j a v a - 01 00 0d 54 5f 77 69 64 65 5f 31 2e 6a 61 76 61 -// parsed:, offset 139, len 0, h: end constant_pool -// parsed:, offset 139, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 141, len 2, h: this_class: type{dxc.junit.opcodes.wide.jm.T_wide_1} -// . . - 00 0a -// parsed:, offset 143, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0b -// parsed:, offset 145, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 147, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 149, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 151, len:70,desc: ()V -// parsed:, offset 151, len 0, h: methods[0]: - // parsed:, offset 151, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 153, len 2, h: name: - // . . - 00 05 - // parsed:, offset 155, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 157, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 159, len 0, h: attributes[0]: - // parsed:, offset 159, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 161, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 165, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 167, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 169, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 178, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 180, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 182, len 0, h: end attributes[0] -// parsed:, offset 182, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 182, len:39,desc: ()V -// parsed:, offset 182, len 0, h: methods[1]: - // parsed:, offset 182, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 184, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 186, len 2, h: descriptor: ()V - // . . - 00 09 - // parsed:, offset 188, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 190, len 0, h: attributes[0]: - // parsed:, offset 190, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 192, len 4, h: length: 0000000f - // . . . . - 00 00 00 0f - // parsed:, offset 196, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 198, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 200, len 4, h: code_length: 00000003 - // . . . . - 00 00 00 03 - // parsed:, offset 0, len 1, h: 0000: nop - // . -//@mod 00 - c4 - // parsed:, offset 1, len 1, h: 0001: nop - // . - 00 - // parsed:, offset 2, len 1, h: 0002: return - // . - b1 - // parsed:, offset 207, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 209, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 211, len 0, h: end attributes[0] -// parsed:, offset 211, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 211, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 213, len 0, h: attributes[0]: - // parsed:, offset 213, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 215, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 219, len 2, h: source: utf8{"T_wide_1.java"} - // . . - 00 0c -// parsed:, offset 221, len 0, h: end attributes[0] -// parsed:, offset 221, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.j b/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.j deleted file mode 100644 index 7269f723cd6e86a507a351f5f71aab952e28e327..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_wide_1.java -.class public dxc/junit/opcodes/wide/jm/T_wide_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - - nop - nop - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.java b/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.java deleted file mode 100644 index a5f3ee0e8a9720f90dbf68f6f3cd8951b6afa4a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.wide.jm; - -public class T_wide_1 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.cfh b/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.cfh deleted file mode 100644 index c6717dbb5ee70bd077e939edaceed855c11d36aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.cfh +++ /dev/null @@ -1,182 +0,0 @@ -//@class:dxc/junit/opcodes/wide/jm/T_wide_2 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 37, h: 0001: utf8{"dxc/junit/opcodes/wide/jm/T_wide_2"} - // . . " d x c / j u n i t / o p c o d e s / w i d e / j m / T _ w i d e _ 2 - 01 00 22 64 78 63 2f 6a 75 6e 69 74 2f 6f 70 63 6f 64 65 73 2f 77 69 64 65 2f 6a 6d 2f 54 5f 77 69 64 65 5f 32 - // parsed:, offset 47, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 08 - // parsed:, offset 52, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 71, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 84, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 93, len 16, h: 0006: utf8{"T_wide_2.java"} - // . . . T _ w i d e _ 2 . j a v a - 01 00 0d 54 5f 77 69 64 65 5f 32 2e 6a 61 76 61 - // parsed:, offset 109, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 115, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0a - // parsed:, offset 120, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 127, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 133, len 3, h: 000b: type{dxc.junit.opcodes.wide.jm.T_wide_2} - // . . . - 07 00 01 - // parsed:, offset 136, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 139, len 0, h: end constant_pool -// parsed:, offset 139, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 141, len 2, h: this_class: type{dxc.junit.opcodes.wide.jm.T_wide_2} -// . . - 00 0b -// parsed:, offset 143, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 145, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 147, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 149, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 151, len:75,desc: ()V -// parsed:, offset 151, len 0, h: methods[0]: - // parsed:, offset 151, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 153, len 2, h: name: - // . . - 00 05 - // parsed:, offset 155, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 157, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 159, len 0, h: attributes[0]: - // parsed:, offset 159, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 161, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 165, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 167, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 169, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 178, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 180, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 182, len 0, h: end attributes[0] -// parsed:, offset 182, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 182, len:44,desc: ()V -// parsed:, offset 182, len 0, h: methods[1]: - // parsed:, offset 182, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 184, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 186, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 188, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 190, len 0, h: attributes[0]: - // parsed:, offset 190, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 192, len 4, h: length: 00000014 - // . . . . - 00 00 00 14 - // parsed:, offset 196, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 198, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 200, len 4, h: code_length: 00000008 - // . . . . - 00 00 00 08 - // parsed:, offset 0, len 3, h: 0000: goto 0003 - // . . . -//@mod a7 00 03 - a7 00 04 - // parsed:, offset 3, len 4, h: 0003: wide aload 0000 - // . . . . - c4 19 00 00 - // parsed:, offset 7, len 1, h: 0007: return - // . - b1 - // parsed:, offset 212, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 214, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 216, len 0, h: end attributes[0] -// parsed:, offset 216, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 216, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 218, len 0, h: attributes[0]: - // parsed:, offset 218, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 220, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 224, len 2, h: source: utf8{"T_wide_2.java"} - // . . - 00 06 -// parsed:, offset 226, len 0, h: end attributes[0] -// parsed:, offset 226, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.j b/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.j deleted file mode 100644 index 176ece0c243edb0c861dc995c2ed925d28f42aff..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.j +++ /dev/null @@ -1,39 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_wide_2.java -.class public dxc/junit/opcodes/wide/jm/T_wide_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - - .limit stack 1 - - goto Label0 - -Label0: - aload_w 0 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.java b/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.java deleted file mode 100644 index 50d5d4692ce0ac784a69c18da87b12fe4978cf37..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/opcodes/wide/jm/T_wide_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.opcodes.wide.jm; - -public class T_wide_2 { - - public void run() { - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/AllTests.java b/tools/dx-tests/src/dxc/junit/verify/AllTests.java deleted file mode 100644 index 790c0d89a77e9b5bd27fae0a0e3f48f07fd066bf..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/AllTests.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify; - -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.textui.TestRunner; - -/** - * Listing of all the tests that are to be run. - */ -public class AllTests { - - public static void run() { - TestRunner.main(new String[] {AllTests.class.getName()}); - } - - public static final Test suite() { - TestSuite suite = new TestSuite("Tests for java vm: test that " - + "structurally damaged files are rejected by the verifier"); - suite.addTestSuite(dxc.junit.verify.t481_1.Test_t481_1.class); - suite.addTestSuite(dxc.junit.verify.t481_2.Test_t481_2.class); - suite.addTestSuite(dxc.junit.verify.t481_3.Test_t481_3.class); - suite.addTestSuite(dxc.junit.verify.t481_4.Test_t481_4.class); - suite.addTestSuite(dxc.junit.verify.t481_6.Test_t481_6.class); - - suite.addTestSuite(dxc.junit.verify.t482_2.Test_t482_2.class); - suite.addTestSuite(dxc.junit.verify.t482_3.Test_t482_3.class); - suite.addTestSuite(dxc.junit.verify.t482_4.Test_t482_4.class); - suite.addTestSuite(dxc.junit.verify.t482_8.Test_t482_8.class); - suite.addTestSuite(dxc.junit.verify.t482_9.Test_t482_9.class); - suite.addTestSuite(dxc.junit.verify.t482_10.Test_t482_10.class); - suite.addTestSuite(dxc.junit.verify.t482_11.Test_t482_11.class); - suite.addTestSuite(dxc.junit.verify.t482_14.Test_t482_14.class); - suite.addTestSuite(dxc.junit.verify.t482_20.Test_t482_20.class); - - return suite; - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_1/Test_t481_1.java b/tools/dx-tests/src/dxc/junit/verify/t481_1/Test_t481_1.java deleted file mode 100644 index cf26b1f99abe34b4b8bdc9508aa8688694c6cc54..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_1/Test_t481_1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_1; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t481_1 extends DxTestCase { - - /** - * @constraint 4.8.1.1 - * @title code_length must not be zero - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t481_1.jm.T_t481_1_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.cfh deleted file mode 100644 index 4785bad78b3865d552c24bfa3078672f1dc139c5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.cfh +++ /dev/null @@ -1,176 +0,0 @@ -//@class:dxc/junit/verify/t481_1/jm/T_t481_1_1 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 18, h: 0006: utf8{"T_t481_1_1.java"} - // . . . T _ t 4 8 1 _ 1 _ 1 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 31 5f 31 2e 6a 61 76 61 - // parsed:, offset 80, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 85, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 92, len 40, h: 0009: utf8{"dxc/junit/verify/t481_1/jm/T_t481_1_1"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 1 / j m / T _ t 4 8 1 _ 1 _ 1 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 31 2f 6a 6d 2f 54 5f 74 34 38 31 5f 31 5f 31 - // parsed:, offset 132, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 138, len 3, h: 000b: type{dxc.junit.verify.t481_1.jm.T_t481_1_1} - // . . . - 07 00 09 - // parsed:, offset 141, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_1.jm.T_t481_1_1} -// . . - 00 0b -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:68,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 04 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:37,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 197, len 4, h: length: 0000000d - // . . . . - 00 00 00 0d - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000001 - // . . . . -//@mod 00 00 00 01 - 00 00 00 00 - // parsed:, offset 0, len 1, h: 0000: return - // . - b1 - // parsed:, offset 210, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 212, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 214, len 0, h: end attributes[0] -// parsed:, offset 214, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 214, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 218, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 222, len 2, h: source: utf8{"T_t481_1_1.java"} - // . . - 00 06 -// parsed:, offset 224, len 0, h: end attributes[0] -// parsed:, offset 224, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.j b/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.j deleted file mode 100644 index fc6fad0341057f1ec9367f5c3c412bb0dabd39db..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_1_1.java -.class public dxc/junit/verify/t481_1/jm/T_t481_1_1 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - return - -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.java b/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.java deleted file mode 100644 index 3da0228f44017784c8dd60787934c51a9cd7ecc7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_1/jm/T_t481_1_1.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_1.jm; - -public class T_t481_1_1{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_2/Test_t481_2.java b/tools/dx-tests/src/dxc/junit/verify/t481_2/Test_t481_2.java deleted file mode 100644 index 4cabc23a272713ec2981866ccd2d37bb3f54c26f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_2/Test_t481_2.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t481_2 extends DxTestCase { - - /** - * @constraint 4.8.1.2 - * @title code_length must be less than 65536 - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t481_2.jm.T_t481_2_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.cfh deleted file mode 100644 index 049d5568ac948e87354c7f8050900faf5c1a42a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.cfh +++ /dev/null @@ -1,176 +0,0 @@ -//@class:dxc/junit/verify/t481_2/jm/T_t481_2_1 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 09 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 40, h: 0004: utf8{"dxc/junit/verify/t481_2/jm/T_t481_2_1"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 2 / j m / T _ t 4 8 1 _ 2 _ 1 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 32 2f 6a 6d 2f 54 5f 74 34 38 31 5f 32 5f 31 - // parsed:, offset 87, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 96, len 18, h: 0006: utf8{"T_t481_2_1.java"} - // . . . T _ t 4 8 1 _ 2 _ 1 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 32 5f 31 2e 6a 61 76 61 - // parsed:, offset 114, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 120, len 3, h: 0008: type{dxc.junit.verify.t481_2.jm.T_t481_2_1} - // . . . - 07 00 04 - // parsed:, offset 123, len 5, h: 0009: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 128, len 7, h: 000a: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 135, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 141, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_2.jm.T_t481_2_1} -// . . - 00 08 -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:68,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 05 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:37,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 0a - // parsed:, offset 197, len 4, h: length: 0000000d - // . . . . - 00 00 00 0d - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000001 - // . . . . -//@mod 00 00 00 01 - 00 01 00 00 - // parsed:, offset 0, len 1, h: 0000: return - // . - b1 - // parsed:, offset 210, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 212, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 214, len 0, h: end attributes[0] -// parsed:, offset 214, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 214, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 216, len 0, h: attributes[0]: - // parsed:, offset 216, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 218, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 222, len 2, h: source: utf8{"T_t481_2_1.java"} - // . . - 00 06 -// parsed:, offset 224, len 0, h: end attributes[0] -// parsed:, offset 224, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.j b/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.j deleted file mode 100644 index e167ae6da9568c741ac56e2185a53549f54b118f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_2_1.java -.class public dxc/junit/verify/t481_2/jm/T_t481_2_1 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - return - -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.java b/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.java deleted file mode 100644 index 712596d94f1de40aae74ad9d900a42dda55e5504..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_2/jm/T_t481_2_1.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_2.jm; - -public class T_t481_2_1{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_3/Test_t481_3.java b/tools/dx-tests/src/dxc/junit/verify/t481_3/Test_t481_3.java deleted file mode 100644 index 2180f89a1bffbc41e8470e37cb6cc679f3b2c4aa..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_3/Test_t481_3.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t481_3 extends DxTestCase { - - /** - * @constraint 4.8.1.3 - * @title First opcode instruction shall be at offset 0. The idea of - * the test is to put invalid opcode at offset 0. - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t481_3.jm.T_t481_3_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.cfh deleted file mode 100644 index 9fdc97c3cbccada26c0506e42e16a02defe8b61e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/verify/t481_3/jm/T_t481_3_1 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0b 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 08 - // parsed:, offset 67, len 7, h: 0007: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 74, len 6, h: 0008: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 80, len 18, h: 0009: utf8{"T_t481_3_1.java"} - // . . . T _ t 4 8 1 _ 3 _ 1 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 33 5f 31 2e 6a 61 76 61 - // parsed:, offset 98, len 40, h: 000a: utf8{"dxc/junit/verify/t481_3/jm/T_t481_3_1"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 3 / j m / T _ t 4 8 1 _ 3 _ 1 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 33 2f 6a 6d 2f 54 5f 74 34 38 31 5f 33 5f 31 - // parsed:, offset 138, len 3, h: 000b: type{java.lang.Object} - // . . . - 07 00 02 - // parsed:, offset 141, len 3, h: 000c: type{dxc.junit.verify.t481_3.jm.T_t481_3_1} - // . . . - 07 00 0a -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_3.jm.T_t481_3_1} -// . . - 00 0c -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0b -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:71,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 04 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 08 - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:40,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 08 - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 07 - // parsed:, offset 197, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 1, h: 0000: nop - // . -//@mod 00 - ff - // parsed:, offset 1, len 1, h: 0001: nop - // . - 00 - // parsed:, offset 2, len 1, h: 0002: nop - // . - 00 - // parsed:, offset 3, len 1, h: 0003: return - // . - b1 - // parsed:, offset 213, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 215, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 217, len 0, h: end attributes[0] -// parsed:, offset 217, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 217, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 219, len 0, h: attributes[0]: - // parsed:, offset 219, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 221, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 225, len 2, h: source: utf8{"T_t481_3_1.java"} - // . . - 00 09 -// parsed:, offset 227, len 0, h: end attributes[0] -// parsed:, offset 227, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.j b/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.j deleted file mode 100644 index fd5258f208e1d2e1d619294ea21d75b383eb00d6..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_3_1.java -.class public dxc/junit/verify/t481_3/jm/T_t481_3_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - nop - nop - nop - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.java b/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.java deleted file mode 100644 index 4cd3dcf1ae150e7e9aacceb4477edb715dc77e28..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_3/jm/T_t481_3_1.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_3.jm; - -public class T_t481_3_1{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/Test_t481_4.java b/tools/dx-tests/src/dxc/junit/verify/t481_4/Test_t481_4.java deleted file mode 100644 index d3334206fa496f11e9e4b231f1470bb7642ffb4a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/Test_t481_4.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_4; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t481_4 extends DxTestCase { - - /** - * @constraint 4.8.1.4 - * @title opcode 254 (0xfe) may not appear in code array - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t481_4.jm.T_t481_4_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.4 - * @title opcode 255 (0xff) may not appear in code array - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.verify.t481_4.jm.T_t481_4_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.4 - * @title opcode 202 (0xca) may not appear in code array - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.verify.t481_4.jm.T_t481_4_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.1.4 - * @title undocumented opcode 240 (F0) may not appear in code array - */ - public void testVFE4() { - try { - Class.forName("dxc.junit.verify.t481_4.jm.T_t481_4_4"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.cfh deleted file mode 100644 index 6f6a4d234c163a24f9f7f808cffb6ebe5b72e634..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/verify/t481_4/jm/T_t481_4_1 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 40, h: 0005: utf8{"dxc/junit/verify/t481_4/jm/T_t481_4_1"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 4 / j m / T _ t 4 8 1 _ 4 _ 1 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 34 2f 6a 6d 2f 54 5f 74 34 38 31 5f 34 5f 31 - // parsed:, offset 96, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 102, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 04 00 0a - // parsed:, offset 107, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 114, len 3, h: 0009: type{dxc.junit.verify.t481_4.jm.T_t481_4_1} - // . . . - 07 00 05 - // parsed:, offset 117, len 6, h: 000a: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 123, len 18, h: 000b: utf8{"T_t481_4_1.java"} - // . . . T _ t 4 8 1 _ 4 _ 1 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 34 5f 31 2e 6a 61 76 61 - // parsed:, offset 141, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_4.jm.T_t481_4_1} -// . . - 00 09 -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:71,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 04 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:40,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0a - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 197, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 1, h: 0000: nop - // . - 00 - // parsed:, offset 1, len 1, h: 0001: nop - // . -//@mod 00 - fe - // parsed:, offset 2, len 1, h: 0002: nop - // . - 00 - // parsed:, offset 3, len 1, h: 0003: return - // . - b1 - // parsed:, offset 213, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 215, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 217, len 0, h: end attributes[0] -// parsed:, offset 217, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 217, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 219, len 0, h: attributes[0]: - // parsed:, offset 219, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 221, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 225, len 2, h: source: utf8{"T_t481_4_1.java"} - // . . - 00 0b -// parsed:, offset 227, len 0, h: end attributes[0] -// parsed:, offset 227, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.j b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.j deleted file mode 100644 index f6526405a69082419a4bd22e2f9e91f281744e45..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_4_1.java -.class public dxc/junit/verify/t481_4/jm/T_t481_4_1 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - nop - nop - nop - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.java b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.java deleted file mode 100644 index 8caaacab65bd339c80ea2e7f40d0a8b1c800ed76..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_1.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_4.jm; - -public class T_t481_4_1{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.cfh deleted file mode 100644 index 13dee05adfc4f6d43f1c75feda68e3fe5413825d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/verify/t481_4/jm/T_t481_4_2 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 18, h: 0001: utf8{"T_t481_4_2.java"} - // . . . T _ t 4 8 1 _ 4 _ 2 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 34 5f 32 2e 6a 61 76 61 - // parsed:, offset 28, len 5, h: 0002: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 08 - // parsed:, offset 33, len 19, h: 0003: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 52, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 65, len 40, h: 0005: utf8{"dxc/junit/verify/t481_4/jm/T_t481_4_2"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 4 / j m / T _ t 4 8 1 _ 4 _ 2 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 34 2f 6a 6d 2f 54 5f 74 34 38 31 5f 34 5f 32 - // parsed:, offset 105, len 9, h: 0006: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 114, len 6, h: 0007: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 120, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 06 00 0b - // parsed:, offset 125, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 132, len 3, h: 000a: type{dxc.junit.verify.t481_4.jm.T_t481_4_2} - // . . . - 07 00 05 - // parsed:, offset 135, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 141, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 03 -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_4.jm.T_t481_4_2} -// . . - 00 0a -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:71,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 06 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 02 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:40,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 07 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 197, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 1, h: 0000: nop - // . - 00 - // parsed:, offset 1, len 1, h: 0001: nop - // . -//@mod 00 - ff - // parsed:, offset 2, len 1, h: 0002: nop - // . - 00 - // parsed:, offset 3, len 1, h: 0003: return - // . - b1 - // parsed:, offset 213, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 215, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 217, len 0, h: end attributes[0] -// parsed:, offset 217, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 217, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 219, len 0, h: attributes[0]: - // parsed:, offset 219, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 221, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 225, len 2, h: source: utf8{"T_t481_4_2.java"} - // . . - 00 01 -// parsed:, offset 227, len 0, h: end attributes[0] -// parsed:, offset 227, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.j b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.j deleted file mode 100644 index 1b5b83b035fac650d9318974db869351c44d1217..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_4_2.java -.class public dxc/junit/verify/t481_4/jm/T_t481_4_2 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - nop - nop - nop - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.java b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.java deleted file mode 100644 index bbc58a46e9147b536975a9e22cb573f043d854a5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_2.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_4.jm; - -public class T_t481_4_2{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.cfh deleted file mode 100644 index c19522834e5c97aa66f248425de7d9b2c1a96da5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/verify/t481_4/jm/T_t481_4_3 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 08 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 40, h: 0004: utf8{"dxc/junit/verify/t481_4/jm/T_t481_4_3"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 4 / j m / T _ t 4 8 1 _ 4 _ 3 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 34 2f 6a 6d 2f 54 5f 74 34 38 31 5f 34 5f 33 - // parsed:, offset 87, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 96, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 102, len 18, h: 0007: utf8{"T_t481_4_3.java"} - // . . . T _ t 4 8 1 _ 4 _ 3 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 34 5f 33 2e 6a 61 76 61 - // parsed:, offset 120, len 5, h: 0008: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 125, len 7, h: 0009: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 132, len 3, h: 000a: type{dxc.junit.verify.t481_4.jm.T_t481_4_3} - // . . . - 07 00 04 - // parsed:, offset 135, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 141, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_4.jm.T_t481_4_3} -// . . - 00 0a -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:71,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 05 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:40,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 09 - // parsed:, offset 197, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 1, h: 0000: nop - // . - 00 - // parsed:, offset 1, len 1, h: 0001: nop - // . -//@mod 00 - ca - // parsed:, offset 2, len 1, h: 0002: nop - // . - 00 - // parsed:, offset 3, len 1, h: 0003: return - // . - b1 - // parsed:, offset 213, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 215, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 217, len 0, h: end attributes[0] -// parsed:, offset 217, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 217, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 219, len 0, h: attributes[0]: - // parsed:, offset 219, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 221, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 225, len 2, h: source: utf8{"T_t481_4_3.java"} - // . . - 00 07 -// parsed:, offset 227, len 0, h: end attributes[0] -// parsed:, offset 227, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.j b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.j deleted file mode 100644 index 06cb5869b6ca10acdce177c9962fe47f074c81f9..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_4_3.java -.class public dxc/junit/verify/t481_4/jm/T_t481_4_3 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - nop - nop - nop - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.java b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.java deleted file mode 100644 index bd9df26e5df2e0cfca5916f983faeb03710951eb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_3.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_4.jm; - -public class T_t481_4_3{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.cfh deleted file mode 100644 index 6b941002704220d6d0b0e8bc747efcc444af53a1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/verify/t481_4/jm/T_t481_4_4 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 07 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 40, h: 0003: utf8{"dxc/junit/verify/t481_4/jm/T_t481_4_4"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 4 / j m / T _ t 4 8 1 _ 4 _ 4 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 34 2f 6a 6d 2f 54 5f 74 34 38 31 5f 34 5f 34 - // parsed:, offset 74, len 13, h: 0004: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 87, len 9, h: 0005: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 96, len 6, h: 0006: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 102, len 5, h: 0007: nat{:()V} - // . . . . . - 0c 00 05 00 0b - // parsed:, offset 107, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 114, len 3, h: 0009: type{dxc.junit.verify.t481_4.jm.T_t481_4_4} - // . . . - 07 00 03 - // parsed:, offset 117, len 18, h: 000a: utf8{"T_t481_4_4.java"} - // . . . T _ t 4 8 1 _ 4 _ 4 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 34 5f 34 2e 6a 61 76 61 - // parsed:, offset 135, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 141, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_4.jm.T_t481_4_4} -// . . - 00 09 -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:71,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 05 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:40,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 06 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 197, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 1, h: 0000: nop - // . - 00 - // parsed:, offset 1, len 1, h: 0001: nop - // . -//@mod 00 - f0 - // parsed:, offset 2, len 1, h: 0002: nop - // . - 00 - // parsed:, offset 3, len 1, h: 0003: return - // . - b1 - // parsed:, offset 213, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 215, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 217, len 0, h: end attributes[0] -// parsed:, offset 217, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 217, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 219, len 0, h: attributes[0]: - // parsed:, offset 219, len 2, h: name: SourceFile - // . . - 00 04 - // parsed:, offset 221, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 225, len 2, h: source: utf8{"T_t481_4_4.java"} - // . . - 00 0a -// parsed:, offset 227, len 0, h: end attributes[0] -// parsed:, offset 227, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.j b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.j deleted file mode 100644 index 07e8168856857a152a0eec3f770d98e4376c704a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_4_4.java -.class public dxc/junit/verify/t481_4/jm/T_t481_4_4 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - nop - nop - nop - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.java b/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.java deleted file mode 100644 index 17fed6f7d74df73da99a3f175ab75c1ff6214971..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_4/jm/T_t481_4_4.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_4.jm; - -public class T_t481_4_4{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_6/Test_t481_6.java b/tools/dx-tests/src/dxc/junit/verify/t481_6/Test_t481_6.java deleted file mode 100644 index 7dec5bdd961002944322fd1bf40e2b5d927aabb8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_6/Test_t481_6.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_6; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t481_6 extends DxTestCase { - - /** - * @constraint 4.8.1.6 - * @title Last opcode instruction shall be at offset code_length -1. - * The idea of the test is to put invalid opcode at offset code_length -1. - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t481_6.jm.T_t481_6_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.cfh b/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.cfh deleted file mode 100644 index 188b7960729a9fd5636ff0c6940ba90a4c52bb65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.cfh +++ /dev/null @@ -1,185 +0,0 @@ -//@class:dxc/junit/verify/t481_6/jm/T_t481_6_1 -// parsed:, offset 0, len 0, h: begin classfile -// parsed:, offset 0, len 4, h: magic: cafebabe -// . . . . - ca fe ba be -// parsed:, offset 4, len 2, h: minor_version: 0003 -// . . - 00 03 -// parsed:, offset 6, len 2, h: major_version: 002d -// . - - 00 2d -// parsed:, offset 8, len 2, h: constant_pool_count: 000d -// . . - 00 0d -// parsed:, offset 10, len 0, h: constant_pool: - // parsed:, offset 10, len 5, h: 0001: method{java.lang.Object.:()V} - // . . . . . - 0a 00 0c 00 06 - // parsed:, offset 15, len 19, h: 0002: utf8{"java/lang/Object"} - // . . . j a v a / l a n g / O b j e c t - 01 00 10 6a 61 76 61 2f 6c 61 6e 67 2f 4f 62 6a 65 63 74 - // parsed:, offset 34, len 13, h: 0003: utf8{"SourceFile"} - // . . . S o u r c e F i l e - 01 00 0a 53 6f 75 72 63 65 46 69 6c 65 - // parsed:, offset 47, len 9, h: 0004: utf8{""} - // . . . < i n i t > - 01 00 06 3c 69 6e 69 74 3e - // parsed:, offset 56, len 6, h: 0005: utf8{"run"} - // . . . r u n - 01 00 03 72 75 6e - // parsed:, offset 62, len 5, h: 0006: nat{:()V} - // . . . . . - 0c 00 04 00 0b - // parsed:, offset 67, len 18, h: 0007: utf8{"T_t481_6_1.java"} - // . . . T _ t 4 8 1 _ 6 _ 1 . j a v a - 01 00 0f 54 5f 74 34 38 31 5f 36 5f 31 2e 6a 61 76 61 - // parsed:, offset 85, len 7, h: 0008: utf8{"Code"} - // . . . C o d e - 01 00 04 43 6f 64 65 - // parsed:, offset 92, len 40, h: 0009: utf8{"dxc/junit/verify/t481_6/jm/T_t481_6_1"} - // . . % d x c / j u n i t / v e r i f y / t 4 8 1 _ 6 / j m / T _ t 4 8 1 _ 6 _ 1 - 01 00 25 64 78 63 2f 6a 75 6e 69 74 2f 76 65 72 69 66 79 2f 74 34 38 31 5f 36 2f 6a 6d 2f 54 5f 74 34 38 31 5f 36 5f 31 - // parsed:, offset 132, len 3, h: 000a: type{dxc.junit.verify.t481_6.jm.T_t481_6_1} - // . . . - 07 00 09 - // parsed:, offset 135, len 6, h: 000b: utf8{"()V"} - // . . . ( ) V - 01 00 03 28 29 56 - // parsed:, offset 141, len 3, h: 000c: type{java.lang.Object} - // . . . - 07 00 02 -// parsed:, offset 144, len 0, h: end constant_pool -// parsed:, offset 144, len 2, h: access_flags: public|super -// . ! - 00 21 -// parsed:, offset 146, len 2, h: this_class: type{dxc.junit.verify.t481_6.jm.T_t481_6_1} -// . . - 00 0a -// parsed:, offset 148, len 2, h: super_class: type{java.lang.Object} -// . . - 00 0c -// parsed:, offset 150, len 2, h: interfaces_count: 0000 -// . . - 00 00 -// parsed:, offset 152, len 2, h: fields_count: 0000 -// . . - 00 00 -// parsed:, offset 154, len 2, h: methods_count: 0002 -// . . - 00 02 -// ========== start-ParseMember:, offset 156, len:71,desc: ()V -// parsed:, offset 156, len 0, h: methods[0]: - // parsed:, offset 156, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 158, len 2, h: name: - // . . - 00 04 - // parsed:, offset 160, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 162, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 164, len 0, h: attributes[0]: - // parsed:, offset 164, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 166, len 4, h: length: 00000011 - // . . . . - 00 00 00 11 - // parsed:, offset 170, len 2, h: max_stack: 0001 - // . . - 00 01 - // parsed:, offset 172, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 174, len 4, h: code_length: 00000005 - // . . . . - 00 00 00 05 - // parsed:, offset 0, len 1, h: 0000: aload_0 // 00 - // * - 2a - // parsed:, offset 1, len 3, h: 0001: invokespecial method{java.lang.Object.:()V} - // . . . - b7 00 01 - // parsed:, offset 4, len 1, h: 0004: return - // . - b1 - // parsed:, offset 183, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 185, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 187, len 0, h: end attributes[0] -// parsed:, offset 187, len 0, h: end methods[0] -// ========== end-ParseMember:, desc: ()V -// ========== start-ParseMember:run, offset 187, len:40,desc: ()V -// parsed:, offset 187, len 0, h: methods[1]: - // parsed:, offset 187, len 2, h: access_flags: public - // . . - 00 01 - // parsed:, offset 189, len 2, h: name: run - // . . - 00 05 - // parsed:, offset 191, len 2, h: descriptor: ()V - // . . - 00 0b - // parsed:, offset 193, len 2, h: attributes_count: 0001 - // . . - 00 01 - // parsed:, offset 195, len 0, h: attributes[0]: - // parsed:, offset 195, len 2, h: name: Code - // . . - 00 08 - // parsed:, offset 197, len 4, h: length: 00000010 - // . . . . - 00 00 00 10 - // parsed:, offset 201, len 2, h: max_stack: 0000 - // . . - 00 00 - // parsed:, offset 203, len 2, h: max_locals: 0001 - // . . - 00 01 - // parsed:, offset 205, len 4, h: code_length: 00000004 - // . . . . - 00 00 00 04 - // parsed:, offset 0, len 1, h: 0000: nop - // . - 00 - // parsed:, offset 1, len 1, h: 0001: nop - // . - 00 - // parsed:, offset 2, len 1, h: 0002: return - // . - b1 - // parsed:, offset 3, len 1, h: 0003: nop - // . -//@mod 00 - ff - // parsed:, offset 213, len 2, h: exception_table_length: 0000 - // . . - 00 00 - // parsed:, offset 215, len 2, h: attributes_count: 0000 - // . . - 00 00 - // parsed:, offset 217, len 0, h: end attributes[0] -// parsed:, offset 217, len 0, h: end methods[1] -// ========== end-ParseMember:run, desc: ()V -// parsed:, offset 217, len 2, h: attributes_count: 0001 -// . . - 00 01 -// parsed:, offset 219, len 0, h: attributes[0]: - // parsed:, offset 219, len 2, h: name: SourceFile - // . . - 00 03 - // parsed:, offset 221, len 4, h: length: 00000002 - // . . . . - 00 00 00 02 - // parsed:, offset 225, len 2, h: source: utf8{"T_t481_6_1.java"} - // . . - 00 07 -// parsed:, offset 227, len 0, h: end attributes[0] -// parsed:, offset 227, len 0, h: end classfile diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.j b/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.j deleted file mode 100644 index 1635755ff0ec7cfa9436336b58a171ab52ebee04..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.j +++ /dev/null @@ -1,36 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t481_6_1.java -.class public dxc/junit/verify/t481_6/jm/T_t481_6_1 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - nop - nop - return - nop -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.java b/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.java deleted file mode 100644 index 0a119d762393fe2485345c18626202566de0d567..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t481_6/jm/T_t481_6_1.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t481_6.jm; - -public class T_t481_6_1{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_10/Test_t482_10.java b/tools/dx-tests/src/dxc/junit/verify/t482_10/Test_t482_10.java deleted file mode 100644 index 8e1fa155c3122d63e7a82cf8117422f2ba7590e2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_10/Test_t482_10.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_10; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_10 extends DxTestCase { - /** - * @constraint 4.8.2.10 - * @title Uninitialized local variable - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_10.jm.T_t482_10_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.10 - * @title Uninitialized local variable - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.verify.t482_10.jm.T_t482_10_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_1.j deleted file mode 100644 index 6abfdb5e4dec4475f5bc84a92099dcaa0e8b480a..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_1.j +++ /dev/null @@ -1,92 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_10_1.java -.class public dxc/junit/verify/t482_10/jm/T_t482_10_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 5 - -; iconst_2 -; newarray int -; astore_1 - - iconst_1 - istore_2 - -Label8: - iconst_3 - newarray int - astore_1 - - iload_2 - iconst_1 - if_icmpne Label0 - - new java/lang/Exception - dup - invokespecial java/lang/Exception/()V - athrow - -Label13: - goto Label0 - -Label14: - astore_3 - -Label10: - aload_1 - iconst_0 - iaload - istore_2 - -Label11: - goto Label2 - -Label16: - astore 4 - - iconst_1 - istore_2 - - aload 4 - athrow - -Label0: - iconst_1 - istore_2 - - goto Label3 - -Label2: - iconst_1 - istore_2 - -Label3: - return - -.catch java/lang/Exception from Label8 to Label13 using Label14 -.catch all from Label8 to Label16 using Label16 -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_1.java deleted file mode 100644 index 38933b209c25cbdefd67de605d8066d87e1ce01c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_1.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_10.jm; - -public class T_t482_10_1 { - - public void run(){ - - int arr[]; - arr = new int[2]; - int f = 1; - - try{ - arr = new int[3]; - if(f == 1) - throw new Exception(); - - }catch(Exception e){ - f = arr[0]; - } - finally { - f = 1; - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_2.j b/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_2.j deleted file mode 100644 index c8c7b32a54573c82db0ae7111b6f9bbe545b73e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_2.j +++ /dev/null @@ -1,54 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_10_2.java -.class public dxc/junit/verify/t482_10/jm/T_t482_10_2 -.super java/lang/Object - - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - -.method public run()V - .limit stack 6 - .limit locals 2 - - iconst_1 - istore_1 - - new java/lang/Object - dup - invokespecial java/lang/Object/()V - -Label1: - - invokevirtual java/lang/Object/getClass()Ljava/lang/Class; - pop - -Label3: - new java/lang/Object - - iinc 1 1 - iload_1 - sipush 10 - if_icmpne Label1 - - return - -.end method - diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_2.java deleted file mode 100644 index 5c3fa5bbe18e28c5398268208bd158f2fb2b80b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_10/jm/T_t482_10_2.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_10.jm; - -public class T_t482_10_2 { - - public void run(){ - - Object o = new Object(); - o.getClass(); - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/Test_t482_11.java b/tools/dx-tests/src/dxc/junit/verify/t482_11/Test_t482_11.java deleted file mode 100644 index 75b8bf1d79e8438e961bcdbe26518c6cc16691e5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/Test_t482_11.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_11; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; -import dxc.junit.verify.t482_11.jm.T_t482_11_2; - -/** - * - */ -public class Test_t482_11 extends DxTestCase { - - /** - * @constraint 4.8.2.11 - * @title instance fields declared in the class may be accessed before - * calling - */ - public void testN1() { - // @uses dxc.junit.verify.t482_11.jm.TSuper - T_t482_11_2 t = new T_t482_11_2(); - assertEquals(11, t.v); - } - - /** - * @constraint 4.8.2.11 - * @title super. or another must be called - */ - public void testVFE1() { - // @uses dxc.junit.verify.t482_11.jm.TSuper - try { - Class.forName("dxc.junit.verify.t482_11.jm.T_t482_11_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.11 - * @title only instance fields declared in the class may be accessed - * before calling - */ - public void testVFE2() { - // @uses dxc.junit.verify.t482_11.jm.TSuper - try { - Class.forName("dxc.junit.verify.t482_11.jm.T_t482_11_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/TSuper.java b/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/TSuper.java deleted file mode 100644 index 2b3641be8441ce8ee7ec12ba10ad43daad621048..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/TSuper.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_11.jm; - -public class TSuper { - public int s; -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_1.j deleted file mode 100644 index c773656ecd5e2f8fbb806ec04c189fd32ac62600..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_11_1.java -.class public dxc/junit/verify/t482_11/jm/T_t482_11_1 -.super dxc/junit/verify/t482_11/jm/TSuper - -.method public ()V - .limit stack 1 - .limit locals 1 - -; aload_0 -; invokespecial dxc/junit/verify/t482_11/jm/TSuper/()V - - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_1.java deleted file mode 100644 index 72620494158556aa5ecd80b7ae45686d7f3d07a7..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_1.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_11.jm; - -public class T_t482_11_1 extends TSuper{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_2.j b/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_2.j deleted file mode 100644 index 78b1d64aee6469e9ad464f5c63c12453a81b21b8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_2.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_11_2.java -.class public dxc/junit/verify/t482_11/jm/T_t482_11_2 -.super dxc/junit/verify/t482_11/jm/TSuper - -.field public v I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - sipush 11 - invokespecial dxc/junit/verify/t482_11/jm/T_t482_11_2/(I)V - - return -.end method - - -.method (I)V - .limit stack 2 - .limit locals 2 - - aload_0 - iload_1 - putfield dxc/junit/verify/t482_11/jm/T_t482_11_2/v I - - aload_0 - invokespecial dxc/junit/verify/t482_11/jm/TSuper/()V - - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_2.java deleted file mode 100644 index 4d0920a7defe434a36d2aceeff9ec9a2141e9f34..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_2.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_11.jm; - -public class T_t482_11_2 extends TSuper{ - public int v; - - public T_t482_11_2(){ - this(11); - } - - T_t482_11_2(int i){ - v = i; - } - - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_3.j b/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_3.j deleted file mode 100644 index a25f0bff18d60c28f9e6c2a90dbfe2fc3301b963..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_3.j +++ /dev/null @@ -1,55 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_11_3.java -.class public dxc/junit/verify/t482_11/jm/T_t482_11_3 -.super dxc/junit/verify/t482_11/jm/TSuper - -.field public v I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - sipush 11 - invokespecial dxc/junit/verify/t482_11/jm/T_t482_11_3/(I)V - - return -.end method - - -.method (I)V - .limit stack 2 - .limit locals 2 - - aload_0 - iload_1 - putfield dxc/junit/verify/t482_11/jm/T_t482_11_3/s I - - aload_0 - invokespecial dxc/junit/verify/t482_11/jm/TSuper/()V - - return -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_3.java b/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_3.java deleted file mode 100644 index 64acc1892b587d171106a2e65fddafa53fda13ce..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_11/jm/T_t482_11_3.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_11.jm; - -public class T_t482_11_3 extends TSuper{ - public int v; - - public T_t482_11_3(){ - this(11); - } - - T_t482_11_3(int i){ - s = i; - } - - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_14/Test_t482_14.java b/tools/dx-tests/src/dxc/junit/verify/t482_14/Test_t482_14.java deleted file mode 100644 index 501b2ee32a2ff00cbc617eeb4ee22f45d53756ad..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_14/Test_t482_14.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_14; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_14 extends DxTestCase { - /** - * @constraint 4.8.2.14 - * @title may not return a value - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_14.jm.T_t482_14_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.14 - * @title may not return a value - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.verify.t482_14.jm.T_t482_14_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_1.j deleted file mode 100644 index 335dfa3079bc9f345aba7f118add1edbc3cdaebb..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_1.j +++ /dev/null @@ -1,43 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_14_1.java -.class public dxc/junit/verify/t482_14/jm/T_t482_14_1 -.super java/lang/Object - -.field v I - -.method public ()I - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.verify.t482_14.jm.T_t482_14_1.v I - - iconst_1 - ireturn - -.end method - -.method public run()V - .limit stack 0 - .limit locals 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_1.java deleted file mode 100644 index 94afb9f9331acfe2755b04cda5f52cf381df11b1..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_1.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_14.jm; - -public class T_t482_14_1 { - int v = 0; - - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_2.j b/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_2.j deleted file mode 100644 index 49124fb8816f363bd97e49984ff9ec1131e5f50d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_2.j +++ /dev/null @@ -1,56 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_14_2.java -.class public dxc/junit/verify/t482_14/jm/T_t482_14_2 -.super java/lang/Object - -.field static v I - - -.method static ()I - .limit stack 1 - .limit locals 0 - - - iconst_0 - putstatic dxc.junit.verify.t482_14.jm.T_t482_14_2.v I - - iconst_1 - ireturn - -.end method - - - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run()V - .limit stack 0 - .limit locals 1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_2.java deleted file mode 100644 index 7ca5de216650d60202c3c1be3d2dd16e204a05c8..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_14/jm/T_t482_14_2.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_14.jm; - -public class T_t482_14_2 { - static int v = 0; - - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_2/Test_t482_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_2/Test_t482_2.java deleted file mode 100644 index fb6406a2aa34fa64b80a4dce05625eb0b4b14f85..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_2/Test_t482_2.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_2; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_2 extends DxTestCase { - - /** - * @constraint 4.8.2.2 - * @title operand stack depth - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_2.jm.T_t482_2_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_2/jm/T_t482_2_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_2/jm/T_t482_2_1.j deleted file mode 100644 index c180dd8d83e5481c6cf5ba1279fc838a7d472354..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_2/jm/T_t482_2_1.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_2_1.java -.class public dxc/junit/verify/t482_2/jm/T_t482_2_1 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - aload_0 - invokespecial java/lang/Object/()V - return - -.end method - - - -.method public run(I)I - .limit stack 3 - .limit locals 2 - - iload_1 - ifne Label1 - iconst_1 - -Label1: - iconst_2 - iconst_3 - iadd - - ireturn - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_2/jm/T_t482_2_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_2/jm/T_t482_2_1.java deleted file mode 100644 index 8f5146b44d7c7ab336ca4501ff014d40cf7c836d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_2/jm/T_t482_2_1.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_2.jm; - -public class T_t482_2_1{ - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_20/Test_t482_20.java b/tools/dx-tests/src/dxc/junit/verify/t482_20/Test_t482_20.java deleted file mode 100644 index 963bb0fbe26dcd9fe909029896c8775fc0886398..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_20/Test_t482_20.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_20; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_20 extends DxTestCase { - /** - * @constraint 4.8.2.20 - * @title no return instruction in the method - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_20.jm.T_t482_20_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_20/jm/T_t482_20_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_20/jm/T_t482_20_1.j deleted file mode 100644 index f803fbd0f9d0dc58eec6f386d34bf5dea1f13265..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_20/jm/T_t482_20_1.j +++ /dev/null @@ -1,40 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_20_1.java -.class public dxc/junit/verify/t482_20/jm/T_t482_20_1 -.super java/lang/Object - -.method public ()V - .limit stack 1 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - return -.end method - - - -.method public run()V - .limit stack 1 - .limit locals 1 - - iconst_1 - pop - -; return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_20/jm/T_t482_20_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_20/jm/T_t482_20_1.java deleted file mode 100644 index 6e16f9956455976d39f07cd452a8d756777e469c..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_20/jm/T_t482_20_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_20.jm; - -public class T_t482_20_1 { - - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_3/Test_t482_3.java b/tools/dx-tests/src/dxc/junit/verify/t482_3/Test_t482_3.java deleted file mode 100644 index af89d342403219f95fa03928133a424fc734802b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_3/Test_t482_3.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_3; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_3 extends DxTestCase { - /** - * @constraint 4.8.2.3 - * @title attempt to split long - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_3.jm.T_t482_3_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.3 - * @title attempt to split double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.verify.t482_3.jm.T_t482_3_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_1.j deleted file mode 100644 index 202e692679e3288b5cc2f80b0c27239c4604003b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_1.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_3_1.java -.class public dxc/junit/verify/t482_3/jm/T_t482_3_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 3 - - ldc2_w 123 - lstore_1 - - iload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_1.java deleted file mode 100644 index f61df7e3e2d141321eaa1610a3a7978fcb6b0d59..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_3.jm; - -public class T_t482_3_1 { - public void run(){ - long a = 123; - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_2.j b/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_2.j deleted file mode 100644 index 08920f0f57036c130ea209fe232be1d499174c91..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_2.j +++ /dev/null @@ -1,38 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_3_2.java -.class public dxc/junit/verify/t482_3/jm/T_t482_3_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 3 - - ldc2_w 123.0 - dstore_1 - - fload_2 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_2.java deleted file mode 100644 index a3be92eb622765c24754dac656b9493e3cb9b530..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_3/jm/T_t482_3_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_3.jm; - -public class T_t482_3_2 { - public void run(){ - double a = 123.0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_4/Test_t482_4.java b/tools/dx-tests/src/dxc/junit/verify/t482_4/Test_t482_4.java deleted file mode 100644 index 68f8c7e3805108eb3718bc8580f40c1dab9ccd5f..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_4/Test_t482_4.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_4; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_4 extends DxTestCase { - /** - * @constraint 4.8.2.4 - * @title attempt to access uninitialized int - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_4.jm.T_t482_4_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.4 - * @title attempt to access uninitialized double - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.verify.t482_4.jm.T_t482_4_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.4 - * @title attempt to access uninitialized reference - */ - public void testVFE3() { - try { - Class.forName("dxc.junit.verify.t482_4.jm.T_t482_4_3"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_1.j deleted file mode 100644 index 1c0bb5effe6436180a93e3a50181ef8e27891ccc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_1.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_4_1.java -.class public dxc/junit/verify/t482_4/jm/T_t482_4_1 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 3 - - iload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_1.java deleted file mode 100644 index 82d41c4b56576377ccacf49d55ba72b440d56376..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_1.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_4.jm; - -public class T_t482_4_1 { - public void run(){ - long a = 123; - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_2.j b/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_2.j deleted file mode 100644 index 969c69e49708768d4d42b4f38686e1caa0c9dd0d..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_2.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_4_2.java -.class public dxc/junit/verify/t482_4/jm/T_t482_4_2 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 3 - - dload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_2.java deleted file mode 100644 index 8683f502976c8d1d64563437175b8522945a89cd..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_2.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_4.jm; - -public class T_t482_4_2 { - public void run(){ - double a = 123.0; - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_3.j b/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_3.j deleted file mode 100644 index 3f7c2ce075a9ded1ea5ad61a2ba61346b1b5acd5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_3.j +++ /dev/null @@ -1,35 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_4_3.java -.class public dxc/junit/verify/t482_4/jm/T_t482_4_3 -.super java/lang/Object - -.method public ()V - aload_0 - invokespecial java/lang/Object/()V - return -.end method - - - -.method public run()V - .limit stack 2 - .limit locals 3 - - aload_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_3.java b/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_3.java deleted file mode 100644 index d7aa2ae428c3598b0fd6c2d41206582315001478..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_4/jm/T_t482_4_3.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_4.jm; - -public class T_t482_4_3 { - public void run(){ - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_8/Test_t482_8.java b/tools/dx-tests/src/dxc/junit/verify/t482_8/Test_t482_8.java deleted file mode 100644 index 2f61e6c777ff3a9ea98858c13c946991548b837e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_8/Test_t482_8.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_8; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_8 extends DxTestCase { - /** - * @constraint 4.8.2.8 - * @title uninitialized class instance must be on the stack - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_8.jm.T_t482_8_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.8 - * @title attempt to initialize initialized class - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.verify.t482_8.jm.T_t482_8_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_1.j deleted file mode 100644 index c52c248e584065a7f16dee7039c59ffb6cd03835..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_1.j +++ /dev/null @@ -1,45 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_8_1.java -.class public dxc/junit/verify/t482_8/jm/T_t482_8_1 -.super java/lang/Object - - -.method (I)V - .limit stack 1 - .limit locals 2 - -; aload_0 - invokespecial java/lang/Object/()V - - return - -.end method - - - -.method public run()V - .limit stack 3 - .limit locals 2 - - new dxc/junit/verify/t482_8/jm/T_t482_8_1 - dup - iconst_1 - invokespecial dxc/junit/verify/t482_8/jm/T_t482_8_1/(I)V - astore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_1.java deleted file mode 100644 index 5f658cf53de55c2631e77c8dcd1d94c70a84fba5..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_1.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_8.jm; - -public class T_t482_8_1 { - T_t482_8_1(int a){ - - } - - public void run(){ - T_t482_8_1 t = new T_t482_8_1(1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_2.j b/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_2.j deleted file mode 100644 index 8b89868d8db3798c2fdebc0d8b31a4f5fee2b6ef..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_2.j +++ /dev/null @@ -1,49 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_8_2.java -.class public dxc/junit/verify/t482_8/jm/T_t482_8_2 -.super java/lang/Object - - -.method (I)V - .limit stack 1 - .limit locals 2 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - invokespecial java/lang/Object/()V - - - return - -.end method - - - -.method public run()V - .limit stack 3 - .limit locals 2 - - new dxc/junit/verify/t482_8/jm/T_t482_8_1 - dup - iconst_1 - invokespecial dxc/junit/verify/t482_8/jm/T_t482_8_1/(I)V - astore_1 - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_2.java deleted file mode 100644 index e14959a8259a83af858eefd3ee9d68f0ac105ec2..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_8/jm/T_t482_8_2.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_8.jm; - -public class T_t482_8_2 { - T_t482_8_2(int a){ - - } - - public void run(){ - T_t482_8_2 t = new T_t482_8_2(1); - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_9/Test_t482_9.java b/tools/dx-tests/src/dxc/junit/verify/t482_9/Test_t482_9.java deleted file mode 100644 index 949b772d9fb9ce918646e863265cb59e3415c174..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_9/Test_t482_9.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_9; - -import dxc.junit.DxTestCase; -import dxc.junit.DxUtil; - -/** - * - */ -public class Test_t482_9 extends DxTestCase { - /** - * @constraint 4.8.2.9 - * @title attempt to access field of uninitialized class instance - */ - public void testVFE1() { - try { - Class.forName("dxc.junit.verify.t482_9.jm.T_t482_9_1"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - - /** - * @constraint 4.8.2.9 - * @title attempt to use method of uninitialized class instance - */ - public void testVFE2() { - try { - Class.forName("dxc.junit.verify.t482_9.jm.T_t482_9_2"); - fail("expected a verification exception"); - } catch (Throwable t) { - DxUtil.checkVerifyException(t); - } - } - -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_1.j b/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_1.j deleted file mode 100644 index ad10f28639d4cf9e5012b45b68ca0e96870fd822..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_1.j +++ /dev/null @@ -1,50 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_9_1.java -.class public dxc/junit/verify/t482_9/jm/T_t482_9_1 -.super java/lang/Object - -.field v I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.verify.t482_9.jm.T_t482_9_1.v I - - return - -.end method - - - -.method public static run()V - .limit stack 2 - .limit locals 1 - - new dxc/junit/verify/t482_9/jm/T_t482_9_1 -; dup -; invokespecial dxc/junit/verify/t482_9/jm/T_t482_9_1/()V - - iconst_1 - putfield dxc.junit.verify.t482_9.jm.T_t482_9_1.v I - - return -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_1.java b/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_1.java deleted file mode 100644 index 2ecbbe5a5c9e694c198431fb707198366ec66afc..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_1.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_9.jm; - -public class T_t482_9_1 { - int v = 0; - - public static void run(){ - T_t482_9_1 t = new T_t482_9_1(); - t.v = 1; - } -} diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_2.j b/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_2.j deleted file mode 100644 index 69a9fed6e88975c38fd5b208129920071744a7e4..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_2.j +++ /dev/null @@ -1,57 +0,0 @@ -; Copyright (C) 2008 The Android Open Source Project -; -; Licensed under the Apache License, Version 2.0 (the "License"); -; you may not use this file except in compliance with the License. -; You may obtain a copy of the License at -; -; http://www.apache.org/licenses/LICENSE-2.0 -; -; Unless required by applicable law or agreed to in writing, software -; distributed under the License is distributed on an "AS IS" BASIS, -; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -; See the License for the specific language governing permissions and -; limitations under the License. - -.source T_t482_9_2.java -.class public dxc/junit/verify/t482_9/jm/T_t482_9_2 -.super java/lang/Object - -.field v I - -.method public ()V - .limit stack 2 - .limit locals 1 - - aload_0 - invokespecial java/lang/Object/()V - - aload_0 - iconst_0 - putfield dxc.junit.verify.t482_9.jm.T_t482_9_2.v I - - return -.end method - - - -.method test()V - .limit stack 0 - .limit locals 1 - return -.end method - - - -.method public static run()V - .limit stack 2 - .limit locals 1 - - new dxc/junit/verify/t482_9/jm/T_t482_9_2 -; dup -; invokespecial dxc/junit/verify/t482_9/jm/T_t482_9_2/()V - - invokevirtual dxc/junit/verify/t482_9/jm/T_t482_9_2/test()V - - return - -.end method diff --git a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_2.java b/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_2.java deleted file mode 100644 index 3ed6819a3dec3282c7bdaf2a5ef99585af924e65..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxc/junit/verify/t482_9/jm/T_t482_9_2.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxc.junit.verify.t482_9.jm; - -public class T_t482_9_2 { - int v = 0; - - void test() { - - } - - public static void run(){ - T_t482_9_2 t = new T_t482_9_2(); - t.test(); - } -} diff --git a/tools/dx-tests/src/dxconvext/ClassFileAssembler.java b/tools/dx-tests/src/dxconvext/ClassFileAssembler.java deleted file mode 100644 index 09eec27a1ce484dff2f8f19f8c33d16af4a419e3..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxconvext/ClassFileAssembler.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxconvext; - -import dxconvext.util.FileUtils; - -import java.io.BufferedOutputStream; -import java.io.BufferedReader; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.io.Reader; -import java.io.UnsupportedEncodingException; -import java.security.DigestException; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.util.zip.Adler32; - -public class ClassFileAssembler { - - /** - * @param args - */ - public static void main(String[] args) { - ClassFileAssembler cfa = new ClassFileAssembler(); - cfa.run(args); - } - - private void run(String[] args) { - // this class can be used to generate .class files that are somehow - // damaged in order to test the dalvik vm verifier. - // The input is a .cfh (class file hex) file. - // The output is a java vm .class file. - // The .cfh files can be generated as follows: - // 1. create the initial .cfh file from an existing .class files by using - // the ClassFileParser - // 2. modify some bytes to damage the structure of the .class file in a - // way that would not be possible with e.g. jasmin (otherwise you are - // better off using jasmin). - // Uncomment the original bytes, and write "MOD:" meaning a modified - // entry (with the original commented out) - // - // Use the ClassFileAssembler to generate the .class file. - // this class here simply takes all non-comment lines from the .cfh - // file, parses them as hex values and writes the bytes to the class file - File cfhF = new File(args[0]); - if (!cfhF.getName().endsWith(".cfh") && - !cfhF.getName().endsWith(".dfh")) { - System.out.println("file must be a .cfh or .dfh file, and its filename end with .cfh or .dfh"); - return; - } - - String outBase = args[1]; - - boolean isDex = cfhF.getName().endsWith(".dfh"); - - byte[] cfhbytes = FileUtils.readFile(cfhF); - ByteArrayInputStream bais = new ByteArrayInputStream(cfhbytes); - // encoding should not matter, since we are skipping comment lines and parsing - try { - // get the package name - BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(cfhF))); - String firstLine = br.readLine(); - br.close(); - String classHdr = "//@class:"; - String dexHdr = "// Processing '"; - String hdr; - if(isDex) - hdr = dexHdr; - else - hdr = classHdr; - - if (!firstLine.startsWith(hdr)) throw new RuntimeException("wrong format:"+firstLine +" isDex=" + isDex); - String tFile; - if(isDex) { - tFile = outBase + "/classes.dex"; - } else { - String classO = firstLine.substring(hdr.length()).trim(); - tFile = outBase +"/"+classO+".class"; - } - File outFile = new File(tFile); - System.out.println("outfile:" + outFile); - String mkdir = tFile.substring(0, tFile.lastIndexOf("/")); - new File(mkdir).mkdirs(); - - Reader r = new InputStreamReader(bais,"utf-8"); - OutputStream os = new FileOutputStream(outFile); - BufferedOutputStream bos = new BufferedOutputStream(os); - writeClassFile(r, bos, isDex); - bos.close(); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException("problem while parsing .dfh or .cfh file: "+cfhF.getAbsolutePath(), e); - } catch (FileNotFoundException e) { - throw new RuntimeException("problem while parsing .dfh or .cfh file: "+cfhF.getAbsolutePath(), e); - } catch (IOException e) { - throw new RuntimeException("problem while parsing .dfh or .cfh file: "+cfhF.getAbsolutePath(), e); - } - } - - /** - * Calculates the signature for the .dex file in the - * given array, and modify the array to contain it. - * - * Originally from com.android.dx.dex.file.DexFile. - * - * @param bytes non-null; the bytes of the file - */ - private void calcSignature(byte[] bytes) { - MessageDigest md; - - try { - md = MessageDigest.getInstance("SHA-1"); - } catch (NoSuchAlgorithmException ex) { - throw new RuntimeException(ex); - } - - md.update(bytes, 32, bytes.length - 32); - - try { - int amt = md.digest(bytes, 12, 20); - if (amt != 20) { - throw new RuntimeException("unexpected digest write: " + amt + - " bytes"); - } - } catch (DigestException ex) { - throw new RuntimeException(ex); - } - } - - /** - * Calculates the checksum for the .dex file in the - * given array, and modify the array to contain it. - * - * Originally from com.android.dx.dex.file.DexFile. - * - * @param bytes non-null; the bytes of the file - */ - private void calcChecksum(byte[] bytes) { - Adler32 a32 = new Adler32(); - - a32.update(bytes, 12, bytes.length - 12); - - int sum = (int) a32.getValue(); - - bytes[8] = (byte) sum; - bytes[9] = (byte) (sum >> 8); - bytes[10] = (byte) (sum >> 16); - bytes[11] = (byte) (sum >> 24); - } - - public void writeClassFile(Reader r, OutputStream rOs, boolean isDex) { - ByteArrayOutputStream baos = new ByteArrayOutputStream(8192); - BufferedReader br = new BufferedReader(r); - String line; - String secondLine = null; - int lineCnt = 0; - try { - while ((line = br.readLine()) != null) { - if (isDex && lineCnt++ == 1) { - secondLine = line; - } - // skip it if it is a comment - if (!line.trim().startsWith("//")) { - // we have a row like " ae 08 21 ff" etc. - String[] parts = line.split("\\s+"); - for (int i = 0; i < parts.length; i++) { - String part = parts[i].trim(); - if (!part.equals("")) { - int res = Integer.parseInt(part, 16); - baos.write(res); - } - } - } - } - - // now for dex, update the checksum and the signature. - // special case: - // for two tests (currently T_f1_9.dfh and T_f1_10.dfh), we need - // to keep the checksum or the signature, respectively. - byte[] outBytes = baos.toByteArray(); - if (isDex) { - boolean leaveChecksum = secondLine.contains("//@leaveChecksum"); - boolean leaveSignature= secondLine.contains("//@leaveSignature"); - // update checksum and signature for dex file - if(!leaveSignature) - calcSignature(outBytes); - if(!leaveChecksum) - calcChecksum(outBytes); - } - rOs.write(outBytes); - rOs.close(); - } catch (IOException e) { - throw new RuntimeException("problem while writing file",e); - } - } - -} diff --git a/tools/dx-tests/src/dxconvext/ClassFileParser.java b/tools/dx-tests/src/dxconvext/ClassFileParser.java deleted file mode 100644 index 8a433965216a2fdf62f6fb8c7ee3a32ff8ea288e..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxconvext/ClassFileParser.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxconvext; - -import com.android.dx.cf.direct.ClassPathOpener; -import com.android.dx.cf.direct.DirectClassFile; -import com.android.dx.cf.direct.StdAttributeFactory; -import com.android.dx.cf.iface.Member; -import com.android.dx.cf.iface.ParseObserver; -import com.android.dx.util.ByteArray; -import com.android.dx.util.FileUtils; - -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStreamWriter; -import java.io.Writer; - -public class ClassFileParser { - - private BufferedWriter bw; // the writer to write the result to. - - /** - * Parses a .class file and outputs a .cfh (class file in hex format) file. - * - * args[0] is the absolute path to the java src directory e.g. - * /home/fjost/android/workspace/dxconverter/src - * - * args[1] is the absolute path to the classes directory e.g. - * /home/fjost/android/workspace/out/classes_javac this is the place where - * - * args[2] is the absolute path to the java source file, e.g. - * /home/fjost/android/workspace/dxconverter/src/test/MyTest.java - * - * - * - * @param args - */ - public static void main(String[] args) throws IOException { - ClassFileParser cfp = new ClassFileParser(); - cfp.process(args[0], args[1], args[2]); - } - - private void process(final String srcDir, final String classesDir, - final String absSrcFilePath) throws IOException { - ClassPathOpener opener; - - String fileName = absSrcFilePath; - // e.g. test/p1/MyTest.java - String pckPath = fileName.substring(srcDir.length() + 1); - // e.g. test/p1 - String pck = pckPath.substring(0, pckPath.lastIndexOf("/")); - // e.g. MyTest - String cName = pckPath.substring(pck.length() + 1); - cName = cName.substring(0, cName.lastIndexOf(".")); - String cfName = pck+"/"+cName+".class"; - // 2. calculate the target file name: - // e.g. /test/p1/MyTest.class - String inFile = classesDir + "/" + pck + "/" + cName + ".class"; - if (!new File(inFile).exists()) { - throw new RuntimeException("cannot read:" + inFile); - } - byte[] bytes = FileUtils.readFile(inFile); - // write the outfile to the same directory as the corresponding .java - // file - String outFile = absSrcFilePath.substring(0, absSrcFilePath - .lastIndexOf("/"))+ "/" + cName + ".cfh"; - Writer w; - try { - w = new OutputStreamWriter(new FileOutputStream(new File(outFile))); - } catch (FileNotFoundException e) { - throw new RuntimeException("cannot write to file:"+outFile, e); - } - // Writer w = new OutputStreamWriter(System.out); - ClassFileParser.this.processFileBytes(w, cfName, bytes); - - } - - /** - * - * @param w the writer to write the generated .cfh file to - * @param name the relative name of the java src file, e.g. - * dxc/util/Util.java - * @param allbytes the bytes of this java src file - * @return true if everthing went alright - */ - void processFileBytes(Writer w, String name, final byte[] allbytes) throws IOException { - String fixedPathName = fixPath(name); - DirectClassFile cf = new DirectClassFile(allbytes, fixedPathName, true); - bw = new BufferedWriter(w); - String className = fixedPathName.substring(0, fixedPathName.lastIndexOf(".")); - out("//@class:" + className, 0); - cf.setObserver(new ParseObserver() { - private int cur_indent = 0; - private int checkpos = 0; - - /** - * Indicate that the level of indentation for a dump should increase - * or decrease (positive or negative argument, respectively). - * - * @param indentDelta the amount to change indentation - */ - public void changeIndent(int indentDelta) { - cur_indent += indentDelta; - } - - /** - * Indicate that a particular member is now being parsed. - * - * @param bytes non-null; the source that is being parsed - * @param offset offset into bytes for the start of - * the member - * @param name non-null; name of the member - * @param descriptor non-null; descriptor of the member - */ - public void startParsingMember(ByteArray bytes, int offset, - String name, String descriptor) { - // ByteArray ba = bytes.slice(offset, bytes.size()); - out("// ========== start-ParseMember:" + name + ", offset " - + offset + ", len:" + (bytes.size() - offset) - + ",desc: " + descriptor); - // out("// "+dumpReadableString(ba)); - // out(" "+dumpBytes(ba)); - } - - /** - * Indicate that a particular member is no longer being parsed. - * - * @param bytes non-null; the source that was parsed - * @param offset offset into bytes for the end of the - * member - * @param name non-null; name of the member - * @param descriptor non-null; descriptor of the member - * @param member non-null; the actual member that was parsed - */ - public void endParsingMember(ByteArray bytes, int offset, - String name, String descriptor, Member member) { - ByteArray ba = bytes.slice(offset, bytes.size()); - out("// ========== end-ParseMember:" + name + ", desc: " - + descriptor); - // out("// "+dumpReadableString(ba)); - // out(" "+dumpBytes(ba)); - } - - /** - * Indicate that some parsing happened. - * - * @param bytes non-null; the source that was parsed - * @param offset offset into bytes for what was - * parsed - * @param len number of bytes parsed - * @param human non-null; human form for what was parsed - */ - public void parsed(ByteArray bytes, int offset, int len, - String human) { - human = human.replace('\n', ' '); - out("// parsed:" + ", offset " + offset + ", len " + len - + ", h: " + human); - if (len > 0) { - ByteArray ba = bytes.slice(offset, offset + len); - check(ba); - out("// " + dumpReadableString(ba)); - out(" " + dumpBytes(ba)); - } - } - - private void out(String msg) { - ClassFileParser.this.out(msg, cur_indent); - - } - - private void check(ByteArray ba) { - int len = ba.size(); - int offset = checkpos; - for (int i = 0; i < len; i++) { - int b = ba.getByte(i); - byte b2 = allbytes[i + offset]; - if (b != b2) - throw new RuntimeException("byte dump mismatch at pos " - + (i + offset)); - } - checkpos += len; - } - - - - private String dumpBytes(ByteArray ba) { - String s = ""; - for (int i = 0; i < ba.size(); i++) { - int byt = ba.getUnsignedByte(i); - String hexVal = Integer.toHexString(byt); - if (hexVal.length() == 1) { - hexVal = "0" + hexVal; - } - s += hexVal + " "; - } - return s; - } - - private String dumpReadableString(ByteArray ba) { - String s = ""; - for (int i = 0; i < ba.size(); i++) { - int bb = ba.getUnsignedByte(i); - if (bb > 31 && bb < 127) { - s += (char) bb; - } else { - s += "."; - } - s += " "; - } - return s; - } - - - }); - cf.setAttributeFactory(StdAttributeFactory.THE_ONE); - // what is needed to force parsing to the end? - cf.getMagic(); - // cf.getFields(); - // cf.getAttributes(); - // cf.getMethods(); - bw.close(); - } - - - private String getIndent(int indent) { - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < indent * 4; i++) { - sb.append(' '); - } - return sb.toString(); - } - - private void out(String msg, int cur_indent) { - try { - bw.write(getIndent(cur_indent) + msg); - bw.newLine(); - } catch (IOException ioe) { - throw new RuntimeException("error while writing to the writer", ioe); - } - } - - private static String fixPath(String path) { - /* - * If the path separator is \ (like on windows), we convert the path to - * a standard '/' separated path. - */ - if (File.separatorChar == '\\') { - path = path.replace('\\', '/'); - } - - int index = path.lastIndexOf("/./"); - - if (index != -1) { - return path.substring(index + 3); - } - - if (path.startsWith("./")) { - return path.substring(2); - } - - return path; - } - - - -} diff --git a/tools/dx-tests/src/dxconvext/util/FileUtils.java b/tools/dx-tests/src/dxconvext/util/FileUtils.java deleted file mode 100644 index 7b7003d00638385965292d1b601c444faa00f74b..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/dxconvext/util/FileUtils.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package dxconvext.util; - -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; - -/** - * File I/O utilities. - */ -public final class FileUtils { - /** - * This class is uninstantiable. - */ - private FileUtils() { - // This space intentionally left blank. - } - - /** - * Reads the named file, translating {@link IOException} to a - * {@link RuntimeException} of some sort. - * - * @param fileName non-null; name of the file to read - * @return non-null; contents of the file - */ - public static byte[] readFile(String fileName) { - File file = new File(fileName); - return readFile(file); - } - - /** - * Reads the given file, translating {@link IOException} to a - * {@link RuntimeException} of some sort. - * - * @param file non-null; the file to read - * @return non-null; contents of the file - */ - public static byte[] readFile(File file) { - if (!file.exists()) { - throw new RuntimeException(file + ": file not found"); - } - - if (!file.isFile()) { - throw new RuntimeException(file + ": not a file"); - } - - if (!file.canRead()) { - throw new RuntimeException(file + ": file not readable"); - } - - long longLength = file.length(); - int length = (int) longLength; - if (length != longLength) { - throw new RuntimeException(file + ": file too long"); - } - - byte[] result = new byte[length]; - - try { - FileInputStream in = new FileInputStream(file); - int at = 0; - while (length > 0) { - int amt = in.read(result, at, length); - if (amt == -1) { - throw new RuntimeException(file + ": unexpected EOF"); - } - at += amt; - length -= amt; - } - in.close(); - } catch (IOException ex) { - throw new RuntimeException(file + ": trouble reading", ex); - } - - return result; - } -} diff --git a/tools/dx-tests/src/util/CollectAllTests.java b/tools/dx-tests/src/util/CollectAllTests.java deleted file mode 100644 index 028ec27ec815baadd0f4dcae60c90c1b4c922a43..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/util/CollectAllTests.java +++ /dev/null @@ -1,530 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package util; - -import dxc.junit.AllTests; - -import junit.framework.TestCase; -import junit.framework.TestResult; -import junit.textui.TestRunner; - -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.FileReader; -import java.io.IOException; -import java.io.OutputStreamWriter; -import java.text.MessageFormat; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashSet; -import java.util.List; -import java.util.Scanner; -import java.util.Set; -import java.util.TreeMap; -import java.util.Map.Entry; -import java.util.regex.MatchResult; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Main class to generate data from the test suite to later run from a shell - * script. the project's home folder.
- * /src must contain the java sources
- * /data/scriptdata will be generated
- * /src//Main_testN1.java will be generated
- * (one Main class for each test method in the Test_... class - */ -public class CollectAllTests { - - private static String PROJECT_FOLDER = ""; - private static String PROJECT_FOLDER_OUT = "missing out folder!"; - private static String JAVASRC_FOLDER = PROJECT_FOLDER + "/src"; - private static HashSet OPCODES = null; - - /* - * a map. key: fully qualified class name, value: a list of test methods for - * the given class - */ - private TreeMap> map = new TreeMap>(); - - private int testClassCnt = 0; - private int testMethodsCnt = 0; - - private class MethodData { - String methodBody, constraint, title; - } - - /** - * @param args - * args 0 must be the project root folder (where src, lib etc. - * resides) - * args 1 must be the project out root folder (where the Main_*.java files - * are put, and also data/scriptdata) - */ - public static void main(String[] args) { - if (args.length >= 2) { - PROJECT_FOLDER = args[0]; - PROJECT_FOLDER_OUT = args[1]; - JAVASRC_FOLDER = PROJECT_FOLDER + "/src"; - } else { - System.out.println("usage: args 0 must be the project root folder (where src, lib etc. resides)" + - "and args 1 must be the project out root folder (where the Main_*.java file" + - " are put, and also data/scriptdata)"); - return; - } - - - for (int i = 2; i < args.length; i++) { - if (OPCODES == null) { - OPCODES = new HashSet(); - } - OPCODES.add(args[i]); - } - - System.out.println("using java src:"+JAVASRC_FOLDER); - CollectAllTests cat = new CollectAllTests(); - cat.compose(); - } - - public void compose() { - System.out.println("Collecting all junit tests..."); - new TestRunner() { - @Override - protected TestResult createTestResult() { - return new TestResult() { - @Override - protected void run(TestCase test) { - addToTests(test); - } - - }; - } - }.doRun(AllTests.suite()); - - // for each combination of TestClass and method, generate a Main_testN1 - // etc. - // class in the respective package. - // for the report make sure all N... tests are called first, then B, - // then - // E, then VFE test methods. - // so we need x Main_xxxx methods in a package, and x entries in the - // global scriptdata file (read by a bash script for the tests) - // e.g. dxc.junit.opcodes.aaload.Test_aaload - testN1() -> - // File Main_testN1.java in package dxc.junit.opcodes.aaload - // and entry dxc.junit.opcodes.aaload.Main_testN1 in class execution - // table. - // - handleTests(); - } - - private void addToTests(TestCase test) { - - String packageName = test.getClass().getPackage().getName(); - packageName = packageName.substring(packageName.lastIndexOf('.')+1); - if (OPCODES != null && !OPCODES.contains(packageName)) { - return; - } - - - String method = test.getName(); // e.g. testVFE2 - String fqcn = test.getClass().getName(); // e.g. - // dxc.junit.opcodes.iload_3.Test_iload_3 - // order: take the order of the test-suites for the classes, - // TODO and for methods: take Nx, then Bx, then Ex, then VFEx - //System.out.println("collecting test:" + test.getName() + ", class " - // + test.getClass().getName()); - testMethodsCnt++; - List li = map.get(fqcn); - if (li == null) { - testClassCnt++; - li = new ArrayList(); - map.put(fqcn, li); - } - li.add(method); - } - - private void handleTests() { - System.out.println("collected "+testMethodsCnt+" test methods in "+testClassCnt+" junit test classes"); - String datafileContent = ""; - - for (Entry> entry : map.entrySet()) { - - String fqcn = entry.getKey(); - int lastDotPos = fqcn.lastIndexOf('.'); - String pName = fqcn.substring(0, lastDotPos); - String classOnlyName = fqcn.substring(lastDotPos + 1); - String instPrefix = "new " + classOnlyName + "()"; - - String[] nameParts = pName.split("\\."); - if (nameParts.length != 4) { - throw new RuntimeException( - "package name does not comply to naming scheme: " + pName); - } - - - List methods = entry.getValue(); - Collections.sort(methods, new Comparator() { - public int compare(String s1, String s2) { - // TODO sort according: test ... N, B, E, VFE - return s1.compareTo(s2); - } - }); - for (String method : methods) { - // e.g. testN1 - if (!method.startsWith("test")) { - throw new RuntimeException("no test method: " + method); - } - - // generate the Main_xx java class - - // a Main_testXXX.java contains: - // package ; - // public class Main_testxxx { - // public static void main(String[] args) { - // new dxc.junit.opcodes.aaload.Test_aaload().testN1(); - // } - // } - - MethodData md = parseTestMethod(pName, classOnlyName, method); - String methodContent = md.methodBody; - - Set dependentTestClassNames = parseTestClassName(pName, - classOnlyName, methodContent); - - if (dependentTestClassNames.isEmpty()) - { - continue; - } - - - String content = "//autogenerated by " - + this.getClass().getName() - + ", do not change\n" - + "package " - + pName - + ";\n" - + "import " - + pName - + ".jm.*;\n" - + "import dxc.junit.*;\n" - + "public class Main_" - + method - + " extends DxAbstractMain {\n" - + "public static void main(String[] args) throws Exception {\n" - + "new Main_" + method + "()." + method + "();\n" - + "}\n" + methodContent + "\n}\n"; - - writeToFile(getFileFromPackage(pName, method), content); - - // prepare the entry in the data file for the bash script. - // e.g. - // main class to execute; opcode/constraint; test purpose - // dxc.junit.opcodes.aaload.Main_testN1;aaload;normal case test - // (#1) - - char ca = method.charAt("test".length()); // either N,B,E, oradd_double - // V (VFE) - String comment; - switch (ca) { - case 'N': - comment = "Normal #" + method.substring(5); - break; - case 'B': - comment = "Boundary #" + method.substring(5); - break; - case 'E': - comment = "Exception #" + method.substring(5); - break; - case 'V': - comment = "Verifier #" + method.substring(7); - break; - default: - throw new RuntimeException("unknown test abbreviation:" - + method + " for " + fqcn); - } - - String opcConstr = pName.substring(pName.lastIndexOf('.') + 1); - // beautify test title - if (opcConstr.startsWith("t4")) { - opcConstr = "verifier"; // + opcConstr.substring(1); - } else if (opcConstr.startsWith("pargs")) { - opcConstr = "sanity"; - } else if (opcConstr.startsWith("opc_")) { - // unescape reserved words - opcConstr = opcConstr.substring(4); - } - - String line = pName + ".Main_" + method + ";"; - for (String className : dependentTestClassNames) { - try { - Class.forName(className); - } catch (ClassNotFoundException e) { - throw new RuntimeException( - "dependent class not found : " + className); - } catch (Throwable e) { - // ignore - } - - line += className + " "; - } - - String details = (md.title != null ? md.title : ""); - if (md.constraint != null) { - details = "Constraint " + md.constraint + ", " + details; - } - if (details.length() != 0) { - details = details.substring(0, 1).toUpperCase() - + details.substring(1); - } - - line += ";" + opcConstr + ";"+ comment + ";" + details; - - datafileContent += line + "\n"; - - } - - - } - new File(PROJECT_FOLDER_OUT + "/data").mkdirs(); - writeToFile(new File(PROJECT_FOLDER_OUT + "/data/scriptdata"), - datafileContent); - } - - - - /** - * - * @param pName - * @param classOnlyName - * @param methodSource - * @return a set - */ - private Set parseTestClassName(String pName, String classOnlyName, - String methodSource) { - Set entries = new HashSet(); - String opcodeName = classOnlyName.substring(5); - - Scanner scanner = new Scanner(methodSource); - - String[] patterns = new String[] { - "new\\s(T_" + opcodeName + "\\w*)", - "(T_" + opcodeName + "\\w*)", "new\\s(T\\w*)"}; - - String token = null; - for (String pattern : patterns) { - token = scanner.findWithinHorizon(pattern, methodSource.length()); - if (token != null) { - break; - } - } - - if (token == null) { - System.err.println("warning: failed to find dependent test class name: "+pName+", "+classOnlyName); - return entries; - } - - MatchResult result = scanner.match(); - - entries.add((pName + ".jm." + result.group(1)).trim()); - - // search additional @uses directives - Pattern p = Pattern.compile("@uses\\s+(.*)\\s+", Pattern.MULTILINE); - Matcher m = p.matcher(methodSource); - while (m.find()) { - String res = m.group(1); - entries.add(res.trim()); - } - - //lines with the form @uses dx.junit.opcodes.add_double.jm.T_add_double_2 - // one dependency per one @uses - //TODO - - return entries; - } - - private MethodData parseTestMethod(String pname, String classOnlyName, - String method) { - - String path = pname.replaceAll("\\.", "/"); - String absPath = JAVASRC_FOLDER + "/" + path + "/" + classOnlyName - + ".java"; - File f = new File(absPath); - - Scanner scanner; - try { - scanner = new Scanner(f); - } catch (FileNotFoundException e) { - throw new RuntimeException("error while reading from file: " - + e.getClass().getName() + ", msg:" + e.getMessage()); - } - - String methodPattern = "public\\s+void\\s+" + method + "[^\\{]+\\{"; - - String token = scanner.findWithinHorizon(methodPattern, (int) f - .length()); - if (token == null) { - throw new RuntimeException( - "cannot find method source of 'public void" + method - + "' in file '" + absPath + "'"); - } - - MatchResult result = scanner.match(); - result.start(); - result.end(); - - StringBuilder builder = new StringBuilder(); - builder.append(token); - - try { - FileReader reader = new FileReader(f); - reader.skip(result.end()); - - char currentChar; - int blocks = 1; - while ((currentChar = (char) reader.read()) != -1 && blocks > 0) { - switch (currentChar) { - case '}': { - blocks--; - builder.append(currentChar); - break; - } - case '{': { - blocks++; - builder.append(currentChar); - break; - } - default: { - builder.append(currentChar); - break; - } - } - } - if (reader != null) { - reader.close(); - } - } catch (Exception e) { - throw new RuntimeException("failed to parse", e); - } - - // find the @title/@constraint in javadoc comment for this method - Scanner scanner2; - try { - // using platform's default charset - scanner2 = new Scanner(f); - } catch (FileNotFoundException e) { - throw new RuntimeException("error while reading from file: " - + e.getClass().getName() + ", msg:" + e.getMessage()); - } - - // using platform's default charset - String all = new String(readFile(f)); - // System.out.println("grepping javadoc found for method "+method + - // " in "+pname+","+classOnlyName); - String commentPattern = "/\\*\\*([^{]*)\\*/\\s*" + methodPattern; - Pattern p = Pattern.compile(commentPattern, Pattern.DOTALL); - Matcher m = p.matcher(all); - String title = null, constraint = null; - if (m.find()) { - String res = m.group(1); - // System.out.println("res: "+res); - // now grep @title and @constraint - Matcher titleM = Pattern.compile("@title (.*)", Pattern.DOTALL) - .matcher(res); - if (titleM.find()) { - title = titleM.group(1).replaceAll("\\n \\*", ""); - title = title.replaceAll("\\n", " "); - title = title.trim(); - // System.out.println("title: " + title); - } else { - System.err.println("warning: no @title found for method " - + method + " in " + pname + "," + classOnlyName); - } - // constraint can be one line only - Matcher constraintM = Pattern.compile("@constraint (.*)").matcher( - res); - if (constraintM.find()) { - constraint = constraintM.group(1); - constraint = constraint.trim(); - // System.out.println("constraint: " + constraint); - } else if (method.contains("VFE")) { - System.err - .println("warning: no @constraint for for a VFE method:" - + method + " in " + pname + "," + classOnlyName); - } - } else { - System.err.println("warning: no javadoc found for method " + method - + " in " + pname + "," + classOnlyName); - } - MethodData md = new MethodData(); - md.methodBody = builder.toString(); - md.constraint = constraint; - md.title = title; - if (scanner != null) { - scanner.close(); - } - if (scanner2 != null) { - scanner2.close(); - } - return md; - } - - private void writeToFile(File file, String content) { - //System.out.println("writing file " + file.getAbsolutePath()); - try { - BufferedWriter bw = new BufferedWriter(new OutputStreamWriter( - new FileOutputStream(file), "utf-8")); - bw.write(content); - bw.close(); - } catch (Exception e) { - throw new RuntimeException("error while writing to file: " - + e.getClass().getName() + ", msg:" + e.getMessage()); - } - } - - private File getFileFromPackage(String pname, String methodName) { - // e.g. dxc.junit.argsreturns.pargsreturn - String path = pname.replaceAll("\\.", "/"); - String absPath = PROJECT_FOLDER_OUT + "/" + path; - new File(absPath).mkdirs(); - return new File(absPath + "/Main_" + methodName + ".java"); - } - - private byte[] readFile(File file) { - int len = (int) file.length(); - byte[] res = new byte[len]; - try { - FileInputStream in = new FileInputStream(file); - int pos = 0; - while (len > 0) { - int br = in.read(res, pos, len); - if (br == -1) { - throw new RuntimeException("unexpected EOF for file: "+file); - } - pos += br; - len -= br; - } - in.close(); - } catch (IOException ex) { - throw new RuntimeException("error reading file:"+file, ex); - } - return res; - } -} diff --git a/tools/dx-tests/src/util/CompileAllJasmin.java b/tools/dx-tests/src/util/CompileAllJasmin.java deleted file mode 100644 index 834662b4305cf841f12bc1e4ea52cf7d2090d306..0000000000000000000000000000000000000000 --- a/tools/dx-tests/src/util/CompileAllJasmin.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package util; - -import java.io.FileInputStream; -import java.util.Iterator; -import java.util.Properties; - -import jasmin.Main; - -public class CompileAllJasmin { - - /** - * @param args args[0] the (absolute or relative to the working dir) - * path to the (properties) file containing line by line - * all jasmin files which need to be compiled. - * args[1] is the target directory where to put the compiled .class files to - */ - public static void main(String[] args) throws Exception { - System.out.println("reading from "+args[0]+" and writing to "+args[1]); - Properties p = new Properties(); - p.load(new FileInputStream(args[0])); - - //System.out.println("p:::"+p.toString()); - int i=0; - for (Iterator it_keys = p.keySet().iterator(); it_keys.hasNext();) { - String file = (String) it_keys.next(); - Main m = new jasmin.Main(); - //java -jar $project_lib/jasmin.jar -d $javac_out $ajasminfile - if (i ==0) { - m.main(new String[] {"-d" ,args[1], file }); - } else { - // leave away -d option since saved into static field - m.main(new String[] {file }); - } - i++; - } - } - -} diff --git a/tools/dx-tests/utilclasses/util/CompileAllJasmin.class b/tools/dx-tests/utilclasses/util/CompileAllJasmin.class deleted file mode 100644 index 2b866b287dbae182450a91865a48baf8bd001d73..0000000000000000000000000000000000000000 Binary files a/tools/dx-tests/utilclasses/util/CompileAllJasmin.class and /dev/null differ