summaryrefslogblamecommitdiffstats
path: root/tests/default-integers
blob: 12faa5ab449f8993700d3a9e466309d697f2f501 (plain) (tree)




















                                                                                                         
# -*- sh -*-
# See LICENSE file for copyright and license details.

for arch in $(getnamelist ARCH); do
	archn=$(getnum ARCH $arch)
	if ! issupported $os $arch; then
		continue
	fi

	if test $arch = M68K; then
		maxalign=16
	elif test $arch = I386; then
		maxalign=32
	else
		maxalign=64
	fi

	for width in 8 16 32 64; do
		test "$(get-integer-alignment.tu $osn $archn $width $os $arch)" = $(min $maxalign $width)
	done
done