• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14# Issue 3438
15
16.function i32 main() <static> {
17        movi v0, 0x12
18        mov v2, v0
19        movi v0, 0x0
20        mov v3, v0
21    jump_label_3:
22        mov v0, v2
23        movi v1, 0x1
24        sub v0, v1
25        sta v0
26        mov v4, v0
27        mov v0, v2
28        movi v1, 0xd
29        lda v0
30        jle v1, jump_label_0
31        inci v3, 0x1
32        mov v0, v4
33        mov v2, v0
34        jmp jump_label_1
35        jump_label_0: mov v0, v3
36        movi v1, 0x5
37        lda v0
38        jeq v1, jump_label_2
39        ldai 1
40        return
41        jmp jump_label_1
42    jump_label_2:
43        ldai 0
44        return
45    jump_label_1:
46        jmp jump_label_3
47}
48