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.record R { 15 u1 fu1 16 u8 fu8 17 i8 fi8 18 u16 fu16 19 i16 fi16 20 u32 fu32 21 i32 fi32 22 u64 fu64 23 i64 fi64 24 f32 ff32 25 f64 ff64 26} 27.function void R.ctor(R a0) <ctor> { 28 return.void 29} 30 31.function i32 main() { 32 initobj.short R.ctor 33 sta.obj v0 34 ldai.64 1 35 stobj v0, R.fi64 # 64 bit field size! 36 ldai 0 37 return 38} 39