1a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray/* 2a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * Copyright (C) 2016 The Android Open Source Project 3a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * 4a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * Licensed under the Apache License, Version 2.0 (the "License"); 5a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * you may not use this file except in compliance with the License. 6a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * You may obtain a copy of the License at 7a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * 8a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * http://www.apache.org/licenses/LICENSE-2.0 9a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * 10a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * Unless required by applicable law or agreed to in writing, software 11a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * distributed under the License is distributed on an "AS IS" BASIS, 12a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * See the License for the specific language governing permissions and 14a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray * limitations under the License. 15a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray */ 16a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray 17a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffraypublic class Main { 18a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray 19a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray /// CHECK-START-ARM64: int Main.main(String[]) register_allocator (after) 20a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray /// CHECK-NOT: IntermediateAddress 21a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray public static void main(String[] args) { 22a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray array[index] += Math.cos(42); 23a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray } 24a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray 25a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray static int index = 0; 26a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray static double[] array = new double[2]; 27a3eca2d7300f35c66cf4b696d788a8b7ba74eb99Nicolas Geoffray} 28