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.function i32 main() { 15 movi v0, 0x55 16 movi v1, 0x0 17 movi v2, 0xFF 18 movi v3, 0xA0 19 20 shr v0, v1 21 sta v0 22 movi v1, 0x1 23 shr v0, v1 24 sta v0 25 movi v1, 0x2 26 shr v0, v1 27 sta v0 28 movi v1, 0x3 29 shl v0, v1 30 sta v0 31 movi v1, 0x1 32 shl v0, v1 33 sta v0 34 mov v4, v0 35 movi v0, 0x55 36 37 lda v0 38 shri 0x0 39 shri 0x1 40 shri 0x2 41 shli 0x3 42 shli 0x1 43 sta v0 44 mov v5, v0 45 46 and v4, v2 47 sta v4 48 andi 0x3F 49 sta v4 50 or v5, v3 51 shri 0x1 52 ori 0xA 53 sta v5 54 or v5, v4 55 56 addi -112 57 return 58}