Nicolas Geoffray | a8eef82 | 2015-01-16 11:14:27 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | class Main { |
| 18 | public static void main(String[] args) { |
| 19 | new Main().bar(); |
| 20 | } |
| 21 | |
| 22 | public void bar() { |
| 23 | // Use up all available D registers on ARM. |
| 24 | baz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o); |
| 25 | } |
| 26 | |
| 27 | public static void baz(float a, float b, float c, float d, float e, float f, float g, |
| 28 | float h, float i, float j, float k, float l, float m, float n, float o) { |
| 29 | System.out.println(a - b - c - d - e - f - g - h - i - j - k - l - m - n - o); |
| 30 | } |
| 31 | |
| 32 | float a = 1.0f; |
| 33 | float b = 2.0f; |
| 34 | float c = 3.0f; |
| 35 | float d = 4.0f; |
| 36 | float e = 5.0f; |
| 37 | float f = 6.0f; |
| 38 | float g = 7.0f; |
| 39 | float h = 8.0f; |
| 40 | float i = 9.0f; |
| 41 | float j = 10.0f; |
| 42 | float k = 11.0f; |
| 43 | float l = 12.0f; |
| 44 | float m = 13.0f; |
| 45 | float n = 14.0f; |
| 46 | float o = 15.0f; |
| 47 | } |