@@ -79,12 +79,12 @@ public void runTest1() {
7979 IRNode .UNSTABLE_IF_TRAP , "1" ,
8080 IRNode .STORE_L_OF_CLASS , "int\\ [int:4\\ ]" , "1" ,
8181 IRNode .SAFEPOINT_SCALAROBJECT_OF , "fields@\\ [0..3\\ ]" , "0" },
82- applyIf = {"EliminateAllocations" , "false" })
82+ applyIfAnd = {"EliminateAllocations" , "false" , "UseUnalignedAccesses" , "true " })
8383 @ IR (counts = {IRNode .ALLOC_ARRAY , "0" ,
8484 IRNode .UNSTABLE_IF_TRAP , "1" ,
8585 IRNode .STORE_L_OF_CLASS , "int\\ [int:4\\ ]" , "0" ,
8686 IRNode .SAFEPOINT_SCALAROBJECT_OF , "fields@\\ [0..3\\ ]" , "2" },
87- applyIf = {"EliminateAllocations" , "true" })
87+ applyIfAnd = {"EliminateAllocations" , "true" , "UseUnalignedAccesses " , "true" })
8888 static int test1 (boolean flag ) {
8989 int [] arr = new int [4 ];
9090 arr [0 ] = 0x0001_0000 ; // these slip into Initialize
@@ -124,12 +124,12 @@ public void runTest2() {
124124 IRNode .UNSTABLE_IF_TRAP , "1" ,
125125 IRNode .STORE_I_OF_CLASS , "short\\ [int:4\\ ]" , "1" ,
126126 IRNode .SAFEPOINT_SCALAROBJECT_OF , "fields@\\ [0..3\\ ]" , "0" },
127- applyIf = {"EliminateAllocations" , "false" })
127+ applyIfAnd = {"EliminateAllocations" , "false" , "UseUnalignedAccesses" , "true " })
128128 @ IR (counts = {IRNode .ALLOC_ARRAY , "0" ,
129129 IRNode .UNSTABLE_IF_TRAP , "1" ,
130130 IRNode .STORE_I_OF_CLASS , "short\\ [int:4\\ ]" , "0" ,
131131 IRNode .SAFEPOINT_SCALAROBJECT_OF , "fields@\\ [0..3\\ ]" , "2" },
132- applyIf = {"EliminateAllocations" , "true" })
132+ applyIfAnd = {"EliminateAllocations" , "true" , "UseUnalignedAccesses " , "true" })
133133 static int test2 (boolean flag ) {
134134 short [] arr = new short [4 ];
135135 arr [0 ] = 1 ;
0 commit comments