# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. .function i32 main() { movi v0, 0x55 movi v1, 0x0 movi v2, 0xFF movi v3, 0xA0 shr v0, v1 sta v0 movi v1, 0x1 shr v0, v1 sta v0 movi v1, 0x2 shr v0, v1 sta v0 movi v1, 0x3 shl v0, v1 sta v0 movi v1, 0x1 shl v0, v1 sta v0 mov v4, v0 movi v0, 0x55 lda v0 shri 0x0 shri 0x1 shri 0x2 shli 0x3 shli 0x1 sta v0 mov v5, v0 and v4, v2 sta v4 andi 0x3F sta v4 or v5, v3 shri 0x1 ori 0xA sta v5 or v5, v4 addi -112 return }