Fix latent instruction reorder bug in cdmemcmp
Add test
Fix non-1 array size