diff options
Diffstat (limited to 'dx/tests/103-verify-branch-ops')
21 files changed, 0 insertions, 589 deletions
diff --git a/dx/tests/103-verify-branch-ops/expected.txt b/dx/tests/103-verify-branch-ops/expected.txt deleted file mode 100644 index 2c96704b4..000000000 --- a/dx/tests/103-verify-branch-ops/expected.txt +++ /dev/null @@ -1,36 +0,0 @@ -Generated: ./op_if_acmpeq.class -if_acmpeq: expected failure occurred -Generated: ./op_if_acmpne.class -if_acmpne: expected failure occurred -Generated: ./op_if_icmpeq.class -if_icmpeq: expected failure occurred -Generated: ./op_if_icmpge.class -if_icmpge: expected failure occurred -Generated: ./op_if_icmpgt.class -if_icmpgt: expected failure occurred -Generated: ./op_if_icmple.class -if_icmple: expected failure occurred -Generated: ./op_if_icmplt.class -if_icmplt: expected failure occurred -Generated: ./op_if_icmpne.class -if_icmpne: expected failure occurred -Generated: ./op_ifeq.class -ifeq: expected failure occurred -Generated: ./op_ifge.class -ifge: expected failure occurred -Generated: ./op_ifgt.class -ifgt: expected failure occurred -Generated: ./op_ifle.class -ifle: expected failure occurred -Generated: ./op_iflt.class -iflt: expected failure occurred -Generated: ./op_ifne.class -ifne: expected failure occurred -Generated: ./op_ifnonnull.class -ifnonnull: expected failure occurred -Generated: ./op_ifnull.class -ifnull: expected failure occurred -Generated: ./op_lookupswitch.class -lookupswitch: expected failure occurred -Generated: ./op_tableswitch.class -tableswitch: expected failure occurred diff --git a/dx/tests/103-verify-branch-ops/info.txt b/dx/tests/103-verify-branch-ops/info.txt deleted file mode 100644 index 8705e83d1..000000000 --- a/dx/tests/103-verify-branch-ops/info.txt +++ /dev/null @@ -1,2 +0,0 @@ -This tests branch opcodes to verify that their arguments are actually of -the appropriate types. diff --git a/dx/tests/103-verify-branch-ops/op_if_acmpeq.j b/dx/tests/103-verify-branch-ops/op_if_acmpeq.j deleted file mode 100644 index 43392008e..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_acmpeq.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. - -.class op_if_acmpeq -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_acmpeq blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_if_acmpne.j b/dx/tests/103-verify-branch-ops/op_if_acmpne.j deleted file mode 100644 index 57a317b33..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_acmpne.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. - -.class op_if_acmpne -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_acmpne blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_if_icmpeq.j b/dx/tests/103-verify-branch-ops/op_if_icmpeq.j deleted file mode 100644 index 1f141bc51..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_icmpeq.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. - -.class op_if_icmpeq -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_icmpeq blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_if_icmpge.j b/dx/tests/103-verify-branch-ops/op_if_icmpge.j deleted file mode 100644 index 6ae2e3ffe..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_icmpge.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. - -.class op_if_icmpge -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_icmpge blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_if_icmpgt.j b/dx/tests/103-verify-branch-ops/op_if_icmpgt.j deleted file mode 100644 index 4e672824c..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_icmpgt.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. - -.class op_if_icmpgt -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_icmpgt blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_if_icmple.j b/dx/tests/103-verify-branch-ops/op_if_icmple.j deleted file mode 100644 index 351180057..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_icmple.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. - -.class op_if_icmple -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_icmple blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_if_icmplt.j b/dx/tests/103-verify-branch-ops/op_if_icmplt.j deleted file mode 100644 index 89527f50e..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_icmplt.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. - -.class op_if_icmplt -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_icmplt blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_if_icmpne.j b/dx/tests/103-verify-branch-ops/op_if_icmpne.j deleted file mode 100644 index a94faee81..000000000 --- a/dx/tests/103-verify-branch-ops/op_if_icmpne.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. - -.class op_if_icmpne -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - fload_1 - if_icmpne blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_ifeq.j b/dx/tests/103-verify-branch-ops/op_ifeq.j deleted file mode 100644 index 620e1c9cf..000000000 --- a/dx/tests/103-verify-branch-ops/op_ifeq.j +++ /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. - -.class op_ifeq -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - ifeq blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_ifge.j b/dx/tests/103-verify-branch-ops/op_ifge.j deleted file mode 100644 index c46b176cd..000000000 --- a/dx/tests/103-verify-branch-ops/op_ifge.j +++ /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. - -.class op_ifge -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - ifge blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_ifgt.j b/dx/tests/103-verify-branch-ops/op_ifgt.j deleted file mode 100644 index 816503887..000000000 --- a/dx/tests/103-verify-branch-ops/op_ifgt.j +++ /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. - -.class op_ifgt -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - ifgt blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_ifle.j b/dx/tests/103-verify-branch-ops/op_ifle.j deleted file mode 100644 index 758943fe0..000000000 --- a/dx/tests/103-verify-branch-ops/op_ifle.j +++ /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. - -.class op_ifle -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - ifle blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_iflt.j b/dx/tests/103-verify-branch-ops/op_iflt.j deleted file mode 100644 index 50913555c..000000000 --- a/dx/tests/103-verify-branch-ops/op_iflt.j +++ /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. - -.class op_iflt -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - iflt blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_ifne.j b/dx/tests/103-verify-branch-ops/op_ifne.j deleted file mode 100644 index bb2dadc21..000000000 --- a/dx/tests/103-verify-branch-ops/op_ifne.j +++ /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. - -.class op_ifne -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - ifne blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_ifnonnull.j b/dx/tests/103-verify-branch-ops/op_ifnonnull.j deleted file mode 100644 index f2422f091..000000000 --- a/dx/tests/103-verify-branch-ops/op_ifnonnull.j +++ /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. - -.class op_ifnonnull -.super java/lang/Object - -.method public static test(IF)V - .limit locals 2 - .limit stack 3 - - iload_0 - ifnonnull blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_ifnull.j b/dx/tests/103-verify-branch-ops/op_ifnull.j deleted file mode 100644 index c253b0930..000000000 --- a/dx/tests/103-verify-branch-ops/op_ifnull.j +++ /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. - -.class op_ifnull -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - ifnull blort - nop -blort: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_lookupswitch.j b/dx/tests/103-verify-branch-ops/op_lookupswitch.j deleted file mode 100644 index 21fe8f793..000000000 --- a/dx/tests/103-verify-branch-ops/op_lookupswitch.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. - -.class op_lookupswitch -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - lookupswitch - 0x05: t1 - 0x10: t2 - default: t3 -t1: - nop -t2: - nop -t3: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/op_tableswitch.j b/dx/tests/103-verify-branch-ops/op_tableswitch.j deleted file mode 100644 index 657feff98..000000000 --- a/dx/tests/103-verify-branch-ops/op_tableswitch.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. - -.class op_tableswitch -.super java/lang/Object - -.method public static test(FF)V - .limit locals 2 - .limit stack 3 - - fload_0 - tableswitch 0x10 - t1 - t2 - default: t3 -t1: - nop -t2: - nop -t3: - return -.end method diff --git a/dx/tests/103-verify-branch-ops/run b/dx/tests/103-verify-branch-ops/run deleted file mode 100644 index c9ca89fda..000000000 --- a/dx/tests/103-verify-branch-ops/run +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# -# 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. - -function oneop() -{ - jasmin -d . op_"$1".j - dx --debug --dex op_"$1".class >/dev/null 2>&1 - if [ "$?" = "0" ]; then - dx --debug --dex --dump-method="op_$1.test*" op_"$1".class - else - echo "$1: expected failure occurred" - fi -} - -oneop if_acmpeq -oneop if_acmpne -oneop if_icmpeq -oneop if_icmpge -oneop if_icmpgt -oneop if_icmple -oneop if_icmplt -oneop if_icmpne -oneop ifeq -oneop ifge -oneop ifgt -oneop ifle -oneop iflt -oneop ifne -oneop ifnonnull -oneop ifnull -oneop lookupswitch -oneop tableswitch |