quakeforge/libs/gamecode/test
Bill Currie f18837f195 [gamecode] Fix a pile of UB in the test cases
I always suspected the overflow conversions were UB, but with gcc doing
different things on arm, I thought it was about time to abandon those
particular tests. What I was not expecting was for the return value of
strcmp to be "UB" (in that there's no guarantee of the exact value, just
< = > 0). Fortunately, nothing actually relies on the value of the op
other than the tests, so modify the test to make the behavior well
defined.
2023-03-25 21:21:13 +09:00
..
head.c [gamecode] Clean up string_t and pointer_t 2022-01-18 12:11:14 +09:00
main.c [gamecode] Fix a pile of UB in the test cases 2023-03-25 21:21:13 +09:00
Makemodule.am [gamecode] Add an extend instruction 2022-08-18 18:18:19 +09:00
test-bitops.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-branch.c [gamecode] Add tests for the branch instructions 2022-01-17 09:57:54 +09:00
test-callret.c [gamecode] Fix some goofs in the callchain test 2022-01-17 18:51:50 +09:00
test-conv0.c [gamecode] Fix a pile of UB in the test cases 2023-03-25 21:21:13 +09:00
test-conv1.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-conv2.c [gamecode] Fix a pile of UB in the test cases 2023-03-25 21:21:13 +09:00
test-conv3.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-conv4.c [gamecode] Fix a pile of UB in the test cases 2023-03-25 21:21:13 +09:00
test-conv5.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-conv6.c [gamecode] Fix a pile of UB in the test cases 2023-03-25 21:21:13 +09:00
test-conv7.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-double.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-extend.c [gamecode] Add an extend instruction 2022-08-18 18:18:19 +09:00
test-float.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-hops.c [gamecode] Add tests for the hops instructions 2022-01-16 18:46:29 +09:00
test-int.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-jump.c [gamecode] Redesign jump's B addressing 2022-01-30 22:34:40 +09:00
test-lea.c [gamecode] Change address mode B to entity.field 2022-01-20 14:55:29 +09:00
test-load.c [gamecode] Change address mode B to entity.field 2022-01-20 14:55:29 +09:00
test-load64.c [gamecode] Add 64-bit load/store instructions 2022-02-02 14:47:36 +09:00
test-long.c [gamecode] Rearrange several instructions 2022-01-16 14:22:04 +09:00
test-mem.c [gamecodee] Add tests for move and memset 2022-01-15 13:20:33 +09:00
test-scale.c [gamecode] Add tests for the scale instructions 2022-01-14 19:46:35 +09:00
test-stack.c [gamecode] Change address mode B to entity.field 2022-01-20 14:55:29 +09:00
test-state.c [gamecode] Add tests for the state instructions 2022-01-16 22:17:17 +09:00
test-store.c [gamecode] Change address mode B to entity.field 2022-01-20 14:55:29 +09:00
test-store64.c [gamecode] Add 64-bit load/store instructions 2022-02-02 14:47:36 +09:00
test-string.c [gamecode] Fix a pile of UB in the test cases 2023-03-25 21:21:13 +09:00
test-swizzle.c [gamecode] Add tests for the swizzle instructions 2022-01-15 22:44:58 +09:00
test-unsigned.c [gamecode] Add unsigned divide and remainder instructions 2022-02-06 12:20:17 +09:00
test-vector.c [gamecode] Make num_globals() calculate actual globals 2022-01-14 19:45:51 +09:00
test-with.c [gamecode] Add tests for the with instruction(s) 2022-01-15 18:44:11 +09:00