d: Fix gdc -O2 -mavx generates misaligned vmovdqa instruction [PR114171]

	PR d/114171

gcc/d/ChangeLog:

	* d-codegen.cc (lower_struct_comparison): Keep alignment of original
	type in reinterpret cast for comparison.

gcc/testsuite/ChangeLog:

	* gdc.dg/torture/pr114171.d: New test.

(cherry picked from commit 623f52775e677bb3d6e9e7ef97196741dd904b1e)
2 files changed