[x86] add test to show suboptimal codegen (PR25554)