wcc/ww: chained-index str/slice element loads the full header
cgindex read one word for a str/slice ELEMENT of a chained index (xs[i][j], f().s[i]) — the element-kind gate keyed on node shape and missed non-simple bases, dropping the 24B/16B header load (review finding #22). Key on the element-type stamp; 989_chainidx_run pins cs==ww (red 3/8 pre-fix).
This commit is contained in:
11
Makefile
11
Makefile
@@ -249,6 +249,7 @@ TESTS = $(BIN)/test_smoke $(BIN)/test_lex $(BIN)/test_parse $(BIN)/test_check \
|
||||
$(BIN)/test_tagged_subset_reject \
|
||||
$(BIN)/test_callarg_typecheck \
|
||||
$(BIN)/test_idxarg_run \
|
||||
$(BIN)/test_chainidx_run \
|
||||
$(BIN)/test_arr_ptr_global \
|
||||
$(BIN)/test_def_arr_infer_len \
|
||||
$(BIN)/test_def_arr_len \
|
||||
@@ -644,6 +645,16 @@ $(BIN)/test_idxarg_run: test/wcc/989_idxarg_run.c \
|
||||
$(LIB)/libwwrt.a | $(BIN)
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
# 989_chainidx_run (F7-c3, #22): a chained index `m[i][k]` whose element is
|
||||
# a str/slice must load the full 24B/16B header. Builds+runs each fixture on
|
||||
# BOTH the cstage `ww` and wwstage `ww_ww` drivers (rule-10).
|
||||
$(BIN)/test_chainidx_run: test/wcc/989_chainidx_run.c \
|
||||
$(BIN)/ww $(BIN)/ww_ww \
|
||||
$(BIN)/w6c $(BIN)/w6a $(BIN)/w6l \
|
||||
$(BIN)/w6c_ww $(BIN)/w6a_ww $(BIN)/w6l_ww \
|
||||
$(LIB)/libwwrt.a | $(BIN)
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
$(BIN)/test_let_global: test/wcc/630_let_global.c $(BIN)/ww $(BIN)/w6c \
|
||||
$(BIN)/w6a $(BIN)/w6l $(LIB)/libwwrt.a | $(BIN)
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
Reference in New Issue
Block a user