diff --git a/doc/en/MapleIRDesign.md b/doc/en/MapleIRDesign.md index 09a9d5b19561ca44fc0bffc2828d9f36be1b5c28..ac0ca70085cb5c81e02c52c78786515f52f150f4 100644 --- a/doc/en/MapleIRDesign.md +++ b/doc/en/MapleIRDesign.md @@ -2543,8 +2543,9 @@ at 1 for the first field of the sub-struct. Example: @f2 <%SS>, @f3:4 i32} = [ 1 = 99, # field f1 is initialized to 99 - 2 = [1= 10.0, 2=22.2], # fields f2.g1 and f2.g2 initialized to 10 and - # 22.2 respectively + 2 = [1= 10.0f, 2=22.2f], + # fields f2.g1 and f2.g2 initialized to + # 10.0f and 22.2f respectively 3 = 15 ] # field f3 (4 bits in size) has field number 3 in # struct %s and is initialized to 15 ``` diff --git a/test/testsuite/irbuild_test/I0069-mapleall-irbuild-edge-struct2/Main.mpl b/test/testsuite/irbuild_test/I0069-mapleall-irbuild-edge-struct2/Main.mpl index 6996dfacb541147bc0e40680b8d1ac0f26384817..0c2404ec4c8e2667691f6b2deef5f289f0da2521 100644 --- a/test/testsuite/irbuild_test/I0069-mapleall-irbuild-edge-struct2/Main.mpl +++ b/test/testsuite/irbuild_test/I0069-mapleall-irbuild-edge-struct2/Main.mpl @@ -7,7 +7,7 @@ var $sconst1 = [ 1=1007, 2= [1=11.11f, 2=22.22f], 5=-273, 6=75, 4=6023.1f ] + @f66 f32}> = [ 1=1007, 2= [1=11.11f, 2=22.22f], 5=-273f, 6=75f, 4=6023 ] func $fact () i32 { return (dread i32 $sconst1 1) } diff --git a/test/testsuite/irbuild_test/I0075-mapleall-irbuild-edge-substructinit/Main.mpl b/test/testsuite/irbuild_test/I0075-mapleall-irbuild-edge-substructinit/Main.mpl index 710e9b1d5713fa553519a09d822e5d319392e5e2..9638fbf39340b71964c889d8cce691f5a61921be 100644 --- a/test/testsuite/irbuild_test/I0075-mapleall-irbuild-edge-substructinit/Main.mpl +++ b/test/testsuite/irbuild_test/I0075-mapleall-irbuild-edge-substructinit/Main.mpl @@ -7,7 +7,7 @@ var $sconst1 = [ 6=1007, 2= [1=11.11f, 2=22.22f], 3=-273.2f, 4=75.3f, 1=1425926, 5=6023 ] + @f66 f32}> = [ 6=1007f, 2= [1=11.11f, 2=22.22f], 3=-273, 4=75, 1=1425926, 5=6023f ] func $printf (var %p1 <* i8>)void func $main ( ) i32 { call &printf (addrof a32 $sconst1)