With cobalt release 11, the AlignAsStackVariable test with NPLB would fail, but when we copy the test code from nplb test file(starboard/nplb/align_test.cc) , cross compile it and run it on the same arm platform, then it's aligned as expected, so it seemd to be the issue with NPLB(no the issue of the toolchain or platform), could someone help a look?
//NPLB Failed case:
[ RUN ] SbAlignTest.AlignAsStackVariable
../../starboard/nplb/align_test.cc:117: Failure
Expected: (32) <= (GetAlignment(&by_32)), actual: 32 vs 16
../../starboard/nplb/align_test.cc:118: Failure
Expected: (64) <= (GetAlignment(&by_64)), actual: 64 vs 16
../../starboard/nplb/align_test.cc:119: Failure
Expected: (128) <= (GetAlignment(&by_128)), actual: 128 vs 16
../../starboard/nplb/align_test.cc:120: Failure
Expected: (256) <= (GetAlignment(&by_256)), actual: 256 vs 16
[ FAILED ] SbAlignTest.AlignAsStackVariable (1 ms)
//Test Code align OK:
GetAlignment sizeof(size_t)=4
GetAlignment align=2
GetAlignment align=4
GetAlignment align=8
GetAlignment align=16
GetAlignment align=32
GetAlignment align=64
GetAlignment align=128
GetAlignment align=256