# 64bit -> 32bit mapping for cross-checking. At least for amd64/386, the 64bit CPU can execute 32bit code but not the other way around, so we don't support cross-testing upwards.
# 64bit -> 32bit mapping for cross-checking. At least for amd64/386, the 64bit CPU can execute 32bit code but not the other way around, so we don't support cross-testing upwards.
cross-test= skip-test-32bit
cross-test= skip-test-32bit
definegoarch_pair
definegoarch_pair
ifeq($$(GOARCH),$1)
ifeq ($$(OS_detected),Linux)
GOARCH_CROSS=$2
ifeq ($$(GOARCH),$1)
cross-test = test-32bit
GOARCH_CROSS=$2
endif
cross-test = test-32bit
endif
endif
endef
endef
# By default, "cross" test with ourselves to cover unknown pairings.
# By default, "cross" test with ourselves to cover unknown pairings.