mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
b3909dbe4c
It currently fails for two reasons: - call's mode selection is incorrect (never updated from when there was only the one call instruction and the mode was encoded in operand c) - return should automatically restore the stack pointer to the value it had on entry to the function, thus allowing local values stored on the stack to be safely returned.
184 lines
6.8 KiB
Text
184 lines
6.8 KiB
Text
libs_gamecode_tests = \
|
|
libs/gamecode/test/test-branch \
|
|
libs/gamecode/test/test-bitops \
|
|
libs/gamecode/test/test-callret \
|
|
libs/gamecode/test/test-conv0 \
|
|
libs/gamecode/test/test-conv1 \
|
|
libs/gamecode/test/test-conv2 \
|
|
libs/gamecode/test/test-conv3 \
|
|
libs/gamecode/test/test-conv4 \
|
|
libs/gamecode/test/test-conv5 \
|
|
libs/gamecode/test/test-conv6 \
|
|
libs/gamecode/test/test-conv7 \
|
|
libs/gamecode/test/test-double \
|
|
libs/gamecode/test/test-float \
|
|
libs/gamecode/test/test-hops \
|
|
libs/gamecode/test/test-int \
|
|
libs/gamecode/test/test-jump \
|
|
libs/gamecode/test/test-lea \
|
|
libs/gamecode/test/test-load \
|
|
libs/gamecode/test/test-long \
|
|
libs/gamecode/test/test-mem \
|
|
libs/gamecode/test/test-scale \
|
|
libs/gamecode/test/test-stack \
|
|
libs/gamecode/test/test-state \
|
|
libs/gamecode/test/test-store \
|
|
libs/gamecode/test/test-string \
|
|
libs/gamecode/test/test-swizzle \
|
|
libs/gamecode/test/test-unsigned \
|
|
libs/gamecode/test/test-vector \
|
|
libs/gamecode/test/test-with
|
|
|
|
TESTS += $(libs_gamecode_tests)
|
|
|
|
check_PROGRAMS += $(libs_gamecode_tests)
|
|
|
|
EXTRA_DIST += head.c main.c
|
|
|
|
test_gamecode_libs= \
|
|
libs/gamecode/libQFgamecode.la \
|
|
libs/util/libQFutil.la
|
|
|
|
libs_gamecode_test_test_branch_SOURCES= \
|
|
libs/gamecode/test/test-branch.c
|
|
libs_gamecode_test_test_branch_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_branch_DEPENDENCIES=$(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_bitops_SOURCES= \
|
|
libs/gamecode/test/test-bitops.c
|
|
libs_gamecode_test_test_bitops_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_bitops_DEPENDENCIES=$(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_callret_SOURCES= \
|
|
libs/gamecode/test/test-callret.c
|
|
libs_gamecode_test_test_callret_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_callret_DEPENDENCIES=$(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv0_SOURCES= \
|
|
libs/gamecode/test/test-conv0.c
|
|
libs_gamecode_test_test_conv0_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv0_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv1_SOURCES= \
|
|
libs/gamecode/test/test-conv1.c
|
|
libs_gamecode_test_test_conv1_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv1_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv2_SOURCES= \
|
|
libs/gamecode/test/test-conv2.c
|
|
libs_gamecode_test_test_conv2_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv2_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv3_SOURCES= \
|
|
libs/gamecode/test/test-conv3.c
|
|
libs_gamecode_test_test_conv3_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv3_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv4_SOURCES= \
|
|
libs/gamecode/test/test-conv4.c
|
|
libs_gamecode_test_test_conv4_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv4_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv5_SOURCES= \
|
|
libs/gamecode/test/test-conv5.c
|
|
libs_gamecode_test_test_conv5_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv5_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv6_SOURCES= \
|
|
libs/gamecode/test/test-conv6.c
|
|
libs_gamecode_test_test_conv6_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv6_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_conv7_SOURCES= \
|
|
libs/gamecode/test/test-conv7.c
|
|
libs_gamecode_test_test_conv7_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_conv7_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_double_SOURCES= \
|
|
libs/gamecode/test/test-double.c
|
|
libs_gamecode_test_test_double_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_double_DEPENDENCIES=$(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_float_SOURCES= \
|
|
libs/gamecode/test/test-float.c
|
|
libs_gamecode_test_test_float_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_float_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_hops_SOURCES= \
|
|
libs/gamecode/test/test-hops.c
|
|
libs_gamecode_test_test_hops_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_hops_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_int_SOURCES= \
|
|
libs/gamecode/test/test-int.c
|
|
libs_gamecode_test_test_int_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_int_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_jump_SOURCES= \
|
|
libs/gamecode/test/test-jump.c
|
|
libs_gamecode_test_test_jump_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_jump_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_lea_SOURCES= \
|
|
libs/gamecode/test/test-lea.c
|
|
libs_gamecode_test_test_lea_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_lea_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_load_SOURCES= \
|
|
libs/gamecode/test/test-load.c
|
|
libs_gamecode_test_test_load_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_load_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_long_SOURCES= \
|
|
libs/gamecode/test/test-long.c
|
|
libs_gamecode_test_test_long_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_long_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_mem_SOURCES= \
|
|
libs/gamecode/test/test-mem.c
|
|
libs_gamecode_test_test_mem_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_mem_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_scale_SOURCES= \
|
|
libs/gamecode/test/test-scale.c
|
|
libs_gamecode_test_test_scale_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_scale_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_stack_SOURCES= \
|
|
libs/gamecode/test/test-stack.c
|
|
libs_gamecode_test_test_stack_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_stack_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_state_SOURCES= \
|
|
libs/gamecode/test/test-state.c
|
|
libs_gamecode_test_test_state_LDADD= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_store_SOURCES= \
|
|
libs/gamecode/test/test-store.c
|
|
libs_gamecode_test_test_store_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_store_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_string_SOURCES= \
|
|
libs/gamecode/test/test-string.c
|
|
libs_gamecode_test_test_string_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_string_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_swizzle_SOURCES= \
|
|
libs/gamecode/test/test-swizzle.c
|
|
libs_gamecode_test_test_swizzle_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_swizzle_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_unsigned_SOURCES= \
|
|
libs/gamecode/test/test-unsigned.c
|
|
libs_gamecode_test_test_unsigned_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_unsigned_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_vector_SOURCES= \
|
|
libs/gamecode/test/test-vector.c
|
|
libs_gamecode_test_test_vector_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_vector_DEPENDENCIES= $(test_gamecode_libs)
|
|
|
|
libs_gamecode_test_test_with_SOURCES= \
|
|
libs/gamecode/test/test-with.c
|
|
libs_gamecode_test_test_with_LDADD= $(test_gamecode_libs)
|
|
libs_gamecode_test_test_with_DEPENDENCIES= $(test_gamecode_libs)
|