1*795d594fSAndroid Build Coastguard Worker# 2*795d594fSAndroid Build Coastguard Worker# Copyright (C) 2015 The Android Open Source Project 3*795d594fSAndroid Build Coastguard Worker# 4*795d594fSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 5*795d594fSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 6*795d594fSAndroid Build Coastguard Worker# You may obtain a copy of the License at 7*795d594fSAndroid Build Coastguard Worker# 8*795d594fSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 9*795d594fSAndroid Build Coastguard Worker# 10*795d594fSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 11*795d594fSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 12*795d594fSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*795d594fSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 14*795d594fSAndroid Build Coastguard Worker# limitations under the License. 15*795d594fSAndroid Build Coastguard Worker 16*795d594fSAndroid Build Coastguard Worker.class public LTest; 17*795d594fSAndroid Build Coastguard Worker 18*795d594fSAndroid Build Coastguard Worker.super Ljava/lang/Object; 19*795d594fSAndroid Build Coastguard Worker 20*795d594fSAndroid Build Coastguard Worker.method public static run()V 21*795d594fSAndroid Build Coastguard Worker .registers 3 22*795d594fSAndroid Build Coastguard Worker new-instance v2, Ljava/lang/String; 23*795d594fSAndroid Build Coastguard Worker invoke-direct {v2}, Ljava/lang/String;-><init>()V 24*795d594fSAndroid Build Coastguard Worker const/4 v0, 0 25*795d594fSAndroid Build Coastguard Worker move v1, v0 26*795d594fSAndroid Build Coastguard Worker :start 27*795d594fSAndroid Build Coastguard Worker invoke-static {}, LMain;->blowup()V 28*795d594fSAndroid Build Coastguard Worker if-ne v1, v0, :end 29*795d594fSAndroid Build Coastguard Worker const/4 v2, 1 30*795d594fSAndroid Build Coastguard Worker invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String; 31*795d594fSAndroid Build Coastguard Worker move v2, v0 32*795d594fSAndroid Build Coastguard Worker # The call makes v2 float type. 33*795d594fSAndroid Build Coastguard Worker invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z 34*795d594fSAndroid Build Coastguard Worker const/4 v1, 1 35*795d594fSAndroid Build Coastguard Worker goto :start 36*795d594fSAndroid Build Coastguard Worker :end 37*795d594fSAndroid Build Coastguard Worker return-void 38*795d594fSAndroid Build Coastguard Worker.end method 39*795d594fSAndroid Build Coastguard Worker 40*795d594fSAndroid Build Coastguard Worker.method public static run2()V 41*795d594fSAndroid Build Coastguard Worker .registers 4 42*795d594fSAndroid Build Coastguard Worker new-instance v2, Ljava/lang/String; 43*795d594fSAndroid Build Coastguard Worker invoke-direct {v2}, Ljava/lang/String;-><init>()V 44*795d594fSAndroid Build Coastguard Worker const/4 v0, 0 45*795d594fSAndroid Build Coastguard Worker move v1, v0 46*795d594fSAndroid Build Coastguard Worker :start 47*795d594fSAndroid Build Coastguard Worker invoke-static {}, LMain;->blowup()V 48*795d594fSAndroid Build Coastguard Worker if-ne v1, v0, :end 49*795d594fSAndroid Build Coastguard Worker const/4 v2, 1 50*795d594fSAndroid Build Coastguard Worker invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String; 51*795d594fSAndroid Build Coastguard Worker move-result-object v3 52*795d594fSAndroid Build Coastguard Worker if-nez v3, :skip 53*795d594fSAndroid Build Coastguard Worker const/4 v0, 0 54*795d594fSAndroid Build Coastguard Worker :skip 55*795d594fSAndroid Build Coastguard Worker # The Phi merging 0 with 0 hides the constant from the Quick compiler. 56*795d594fSAndroid Build Coastguard Worker move v2, v0 57*795d594fSAndroid Build Coastguard Worker # The call makes v2 float type. 58*795d594fSAndroid Build Coastguard Worker invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z 59*795d594fSAndroid Build Coastguard Worker const/4 v1, 1 60*795d594fSAndroid Build Coastguard Worker goto :start 61*795d594fSAndroid Build Coastguard Worker :end 62*795d594fSAndroid Build Coastguard Worker return-void 63*795d594fSAndroid Build Coastguard Worker.end method 64