m12: document the conformance fixes and the abort triage

M12 is complete on the m12 milestone branch; promotion is pending the controller's review. This commit records the 17 row flips (10 inline-asm memory rows, 2 blockaddress, 3 level-0 frame rows, 1 dynamic alloca, eeprof-1), the suite accounting 1,912 = 1,635 pass / 277 skip / 0 fail / 0 crash, the target decisions (ST/o/V, jump Rd, the level-0 return-address capture, the alloca constant-fold fix), the triage headline and its committed probes, the permanently-out classes, and the M12/M13 boundary.

eeprof-1 is the one-flag/one-condition abort fix: dialect_flags() now forwards -finstrument-functions from dg-options and the row is removed. The probes move to scripts/tests/m12/probes/ with a README of invocations and observed statuses; the triage harness writes run-O0/run-O2 and the document's marker column is status-derived.

The final sweep found the M5 Generic sweep crashing on 2008-02-20-MatchingMem after M12 made the memory operand select but not print; the target now prints *An/*An(disp). The same sweep drops the stale addr-label manifest row because blockaddress now lowers, so Generic is 197 = 152 pass / 45 unsupported (one flip outside the curated 17).
This commit is contained in:
arti committed 2026-11-19 13:04:44 +00:00
1 parent 320e0117c1
commit eb9ca73950
62 files changed
+776 -88

No files matched your search

+151 -44
View File
@@ -3,21 +3,20 @@
A modern C toolchain for the DEC VT1200 / TI TMS34010, built as a small fork of
upstream LLVM.
**Status: M11 complete (Phase 3 — the conventional toolchain).** Branch `m11`
is the repository default on both repositories; `m10` is the previous
snapshot (`m10` was the default until
then, `m9` the previous snapshot). Repository
policy: each milestone branch is promoted to the default immediately after its
clean final review, and the previous default stays as a snapshot. M11 makes
`clang --target=tms34010 hello.c -o hello` link a loader-valid TI-COFF image
through `tms-link` from a clean shell after one `scripts/tms-sdk` — a CRT
(`sdk/crt0.ll`, built by `llc`), 10 headers, `libtms.a` and the committed
`flib.lib`/`rts.lib` are discovered through a resource-dir sysroot. See
"What M11 provides". The M11 code state (project `7fcae6e`, compiler
`1d5e14d60141`) is the last code commit before the documentation updates; the
M10 code state (project `9694497`, compiler `eb28be2faf8d`) is the previous
milestone and the M9 code state (project `24eca1c`, compiler `bec449573fe3`)
the snapshot before that.
**Status: M12 complete (tractable conformance gaps); promotion pending the
controller's review.** Branch `m12` is the milestone branch on both
repositories; `m11` remains the repository default until the controller
accepts M12, and `m11` then becomes the previous snapshot (`m10` before it).
Repository policy: each milestone branch is promoted to the default
immediately after its clean final review, and the previous default stays as a
snapshot. M12 flips **17** curated rows and triages the runtime-abort class;
the two-tier full suite is **1,912 = 1,635 pass / 277 skip / 0 fail / 0
crash**, and every M0–M11 gate plus the M11 end-to-end build stays green. See
"What M12 provides". The M12 code state (project `7f1fc06`, compiler
`00ddde6b55ca`) is the last code commit before the documentation updates; the
M11 code state (project `7fcae6e`, compiler `1d5e14d60141`) is the previous
milestone and the M10 code state (project `9694497`, compiler
`eb28be2faf8d`) the snapshot before that.
M9.1 closes the two highest-value remaining conformance classes: vector `.data`
initializers (exact element bytes in the raw GSPA and native TI-COFF paths) and
inline-asm `r`/`=r`/`&r` constraints (the A-register classes). M9.2 replaces
@@ -44,9 +43,9 @@ the **20**-test bounded `-O2` subset, shipped c-testsuite **48 pass / 172 skip
M0–M8 gate list is **56/56 PASS**; the real
VT1200 run remains **DEFERRED** (`VT1200_HOST` is unset;
`scripts/tests/m7/hardware.sh` prints `HARDWARE: DEFERRED` and passes on the
MAME-equivalent acceptance). M11 is the repository default; `m10` is the
previous snapshot (the promotion to `m11` landed
with the controller's review).
MAME-equivalent acceptance). `m11` remains the repository default; `m12` is
the milestone branch pending the controller's review, with `m10` the snapshot
before `m11`.
M7.3 widened the validated VT1200 Xlib surface, added real
stderr capture to the conformance runtime, and shipped the real-hardware
@@ -265,6 +264,117 @@ the binding design is
job, so `clang --target=tms34010 hello.c -o hello` works with no wrapper and
no project variables.
## What M12 provides
M12 is the tractable conformance-gap milestone. The binding design is
[`docs/superpowers/specs/2026-11-19-tms34010-m12-tractable-gaps-design.md`](docs/superpowers/specs/2026-11-19-tms34010-m12-tractable-gaps-design.md).
It flips **17** curated rows across four backend/driver classes and delivers
the runtime-abort triage that M13 plans from; it changes no TI ABI rule, no
language semantics and no default branch. `m12` is the milestone branch on
both repositories; promotion is pending the controller's review.
- **17 flips, row by row.** Every row below was curated in
`scripts/tests/m7/full-suite.skip` and is now removed and passing:
| class | rows | fix |
|---|---|---|
| inline-asm `m`/`g` memory operands | `pr103376`, `pr40022`, `pr40657`, `pr56866`, `pr65053-2`, `pr68328`, `pr81588`, `pr82954`, `pr85156`, `pr94130` | `SelectInlineAsmMemoryOperand` over the load/store addressing modes |
| computed goto (`blockaddress`) | `920501-3`, `990208-1` | `jump Rd` + `ISD::BRIND` + section-relative block address |
| level-0 return/frame address | `20030811-1`, `frame-address`, `pr17377` | prologue capture into an `A13` slot; `frameaddress(0)` = `A13` |
| dynamic alloca | `20070824-1` | scale the folded constant and the variable size in bits |
| instrumentation flag | `eeprof-1` | forward `-finstrument-functions` from `dg-options` (the one-flag/one-condition harness fix) |
Accounting: pass **1,618 + 17 = 1,635**, skip **294 − 17 = 277**
(c-torture 1,692 = **1,425 pass / 267 skip**, c-testsuite 210 / 10
unchanged), **0 fail / 0 crash**. The eleventh inline-asm row, `stkalign`,
is not a flip: its memory operand now selects, but it aborts on its own
`__alignof__(s) == 64` premise under the packed-struct ABI, so it was
re-reasoned as `runtime-abort-alignment` (M13's alignment class).
`990208-1` passes at `-O0` (the gated mode); its `-O2` run aborts in its own
`#ifdef __OPTIMIZE__` branch because generic LLVM refuses to inline a
function whose block address is taken (`InlineCost.cpp`), and host clang
behaves identically.
- **Inline-asm memory operands, and the `ST`/`o`/`V` decisions.**
`TMS34010DAGToDAGISel::SelectInlineAsmMemoryOperand` now matches the
reachable memory forms (the same addressing-mode selection as loads and
stores) for `m` and `g`, with a named error for an unmatchable operand.
`o` is accepted only in the non-post-increment, non-negative-displacement
form; `V` stays loud because `InlineAsm::ConstraintCode` has no `V` and
`SelectionDAGBuilder` asserts before the target hook — honouring it needs a
core LLVM enum change, outside M12's target-only charter. `"st"` is added
to clang's GCC register list, so `~{st}` names the status register as a
clobber; `ST` remains outside every register class and every inline-asm
*operand* class, so `ST` as a value operand is still rejected and no
save/restore is emitted for `~{st}`. A template that names the operand now
prints `*An`/`*An(disp)` (`PrintAsmMemoryOperand`); the corpus rows use empty
templates, so this is pinned by the extended
`m12-inline-asm-mem-forms.ll` check. The M5 Generic compile sweep moves from
151 pass / 46 unsupported to **152 / 45**: `addr-label` flips because
`blockaddress` now lowers, while the two inline-asm memory rows stay
unsupported through the parser rather than being classified as crashes.
- **`jump Rd` and computed goto.** The ISA's indirect jump (opcode `0x0160`,
from the vendor ONEREG table) is implemented end to end: instruction
definition, MC encoding, asm parser, printer and disassembler. `ISD::BRIND`
lowers to it (a fresh `ARegs` register for a dynamic target, `MOVI` plus
`jump` for a constant), and `ISD::BlockAddress` lowers through the normal
`MOVI`/`R-RELLONG` relocation path to a section-relative **bit** address —
no absolute load address. Both corpus rows pass at `-O0`; `m12-jump-reg.s`
pins `jump A0` = `[0x60, 0x01]` and `jump B3` = `[0x73, 0x01]`.
- **Level-0 return and frame address.** The return word lives on the system
stack, not at an `A13` slot. A first SP-relative use-site load was
reproduced sinking into the caller's saved-STK push window at `-O1/-O2`
(it read the saved `A13`); the final lowering captures the word **once in
the prologue**, immediately after the FP/callee-save pushes, from
`SP + (1 + NumSaved)*32` into a normal `A13`-relative stack object, and
every `llvm.returnaddress(0)` use loads that stable slot. The prologue
store and use-site loads carry matching fixed-stack MMOs so post-RA
scheduling cannot reorder them. `llvm.frameaddress(0)` is `A13`. Levels
above 0 remain a named fatal error stating the intrinsic and level, so
`20010122-1` (level 1) and `20030323-1` (level 100) stay curated.
- **Dynamic alloca.** The failure was not a missing byte→bit scale: M5 already
emitted it. `20070824-1`'s `__builtin_alloca` sits in a **non-entry** block
with a constant count, so the DAG constant-folds the `SHL 3` and the M8-era
shape assertion (which required the shift to survive) aborted. The lowering
now scales the constant and variable forms explicitly and asserts nothing
about the node shape; `m12-dynalloca.ll` pins the folded 64-bit advance and
a variable byte-count case at both `-O0` and `-O2`.
- **Abort triage (M13 input).** A harness
(`scripts/tests/m12/abort-triage.sh`, started with
`--work build/m12-abort-triage`) *discovers* the abort set from the curated
table, re-runs each row uncurated at `-O0` and `-O2` through the standard
runner, and records the runner result, status word, completion magic and
cause. Headline: **54 rows** (52 aborts + 2 wrong results), **108 runs in
133 s**, no timeouts and no runner crashes, grouped into **11 causes** —
aggregate varargs **13**, vectors **12**, 64-bit/packed bitfields **7**,
endianness macro + SSO **5**, packed/over-alignment **4**, pointer↔int
**4**, signed zero **3**, float↔int **2**, RTS/shim **2**,
function-instrumentation **1**, freestanding builtins **1**. The one
qualifying one-flag/one-condition fix (`-finstrument-functions` forwarding,
`eeprof-1`) is taken in M12; the `BigEndian = false` single change is
explicitly rejected because it regresses `20230630-2`/`-4` once they select
`scalar_storage_order("big-endian")`. The report, its per-file table and
its M13 ordering are
[`docs/superpowers/research/2026-11-19-tms34010-abort-triage.md`](docs/superpowers/research/2026-11-19-tms34010-abort-triage.md);
the representative probe sources and logs are committed under
`scripts/tests/m12/probes/`. M13's suggested order is **varargs → vectors →
wide bitfields → endianness+SSO → alignment**, then the float groups.
- **Permanently out of scope.** Nested functions (**30** rows; clang frontend
`function definition is not allowed here`), VLA-in-struct (**9**;
`fields must have a constant size … will never be supported`), dialect
strictness (**8**; `-Wint-conversion`/`-Wparen`/K&R errors under the pinned
language mode) and the loader/region timeouts (**37**; the 45 KiB program /
64 KiB RAM image budget or the 1000-frame loader window) are not compiler
gaps for this milestone and stay curated. Pointer↔int model (**4**),
RTS/shim runtime (**2**) and freestanding builtins (**1**) from the triage
are likewise out: they are target-model/runtime policy, not lowering
defects.
- **The M12/M13 boundary.** M13 owns the ABI shapes (sret,
aggregate/variadic/float arguments and returns) and the triaged abort
causes in the order above; M14 is performance plus the real VT1200 run
(still `HARDWARE: DEFERRED`); M15 is optional hosted I/O. Every M0–M11 gate
and the M11 end-to-end build stay green, and the four-phase divide
measurement is unchanged.
## What M11 provides
M11 is Phase 3: the conventional toolchain. After one `scripts/tms-sdk`,
@@ -1421,26 +1531,22 @@ the static-variadic guard all live in the target now, so the wrapper carries
none of them. Native `clang --target=tms34010 -c` is correct for pointer code
at `-O0` and `-O2` (M10).
## Run the M11 gates
## Run the M12 gates
These are the documented commands on branch `m11`; all must pass. The MAME and
These are the documented commands on branch `m12`; all must pass. The MAME and
conformance gates are slow, share the M4 SDK image, and must run **serially**
(no two gates at once). The M11 gate list is the
(no two gates at once). The M12 gate list is the
M7.1/M7.2/M7.3/M7.4/M8.1/M8.2/M5/M6 list plus the M9.1/M9.2 lit additions and
DWARF form/rnglists gate (step 3g),
the fresh end-to-end two-tier suite and the four-phase i64 performance gate
(step 3f), the M10 gates (step 3h), plus the M11 gates (step 3i: the sysroot
installer, the `llc`-built CRT, and the single-command end-to-end build). The
serial M0–M8 gate list is
**56/56 PASS** and the hardware gate prints `HARDWARE: DEFERRED`. The count
change from M10 is: TMS34010 lit stays **132** (128 CodeGen + 4 MC) and clang
**10 → 13** (10 CodeGen + 2 Driver + 1 Sema). The clang total of **10** recorded
at M10 was already stale by the M10 final review (it added `bitaddr-o1.c` and
`bitaddr-chain-o2.c` without re-counting); M11 adds the `TMS34010-link.c` driver
test, for **145** lit in
total. The fresh
full-suite total is unchanged at
**1,912 = 1,618 pass / 294 skip / 0 fail / 0 crash**.
(step 3f), the M10 gates (step 3h), the M11 gates (step 3i: the sysroot
installer, the `llc`-built CRT, and the single-command end-to-end build), and
the M12 triage harness (evidence only; it does not gate a count). The serial
M0–M8 gate list is **56/56 PASS** and the hardware gate prints
`HARDWARE: DEFERRED`. The count change from M11 is: TMS34010 lit **132 → 142**
(128 → 137 CodeGen + 4 → 5 MC) and clang **13 → 15** (10 → 12 CodeGen, 2
Driver, 1 Sema), for **157** lit in total. The fresh full-suite total is
**1,912 = 1,635 pass / 277 skip / 0 fail / 0 crash**.
```sh
# 0. One-time SDK install (the M11 acceptance precondition)
@@ -1453,16 +1559,16 @@ scripts/tests/m11/sdk.sh # sysroot layout + idempotent rebuilds
scripts/tests/m11/crt.sh # llc-built CRT linked and run
scripts/tests/m11/e2e.sh # single-command build, all sub-cases
# 2. LLVM codegen tests: 128 passed
# 2. LLVM codegen tests: 137 passed
# (34 m2-* + 8 m3-* + 18 m4-* + 15 m5-* + 29 m6-* + 11 m7-* + 2 m8-*
# + 9 m9-* + 2 m10-*)
# + 9 m9-* + 2 m10-* + 9 m12-*)
build/llvm-clean-build/bin/llvm-lit -v \
build/llvm-clean/llvm/test/CodeGen/TMS34010
# 3. MC tests: 4 passed (encodings, disassembler, round-trip, JR range)
# 3. MC tests: 5 passed (encodings, disassembler, round-trip, JR range, jump Rd)
build/llvm-clean-build/bin/llvm-lit -v build/llvm-clean/llvm/test/MC/TMS34010
# 3b. Clang tests: 13 passed (10 CodeGen + 2 Driver + 1 Sema)
# 3b. Clang tests: 15 passed (12 CodeGen + 2 Driver + 1 Sema)
build/llvm-clean-build/bin/llvm-lit -v \
build/llvm-clean/clang/test/Sema/tms34010-subbyte-stride.c \
build/llvm-clean/clang/test/CodeGen/TMS34010 \
@@ -1508,15 +1614,16 @@ M6_LINKER=tms-link scripts/tests/m6/i64.sh
# the four-phase i64 performance gate (MAME; serial)
scripts/m8/setup-os2.sh # once: direct 2ine + qemu-i386 fallback
LLVM_BIN=$PWD/build/llvm-clean-build/bin \
scripts/tests/m7/full-suite.sh --corpus all --work build/m11-final
# -> c-torture 1692 = 1408 pass / 284 skip / 0 fail / 0 crash
scripts/tests/m7/full-suite.sh --corpus all --work build/m12-final
# -> c-torture 1692 = 1425 pass / 267 skip / 0 fail / 0 crash
# c-testsuite 220 = 210 pass / 10 skip / 0 fail / 0 crash
# all 1912 = 1618 pass / 294 skip / 0 fail / 0 crash
# all 1912 = 1635 pass / 277 skip / 0 fail / 0 crash
# The bare tier is the driver default (M5_CONFORMANCE_BARE=1). The explicit
# 10-test full-loader exception list is scripts/tests/m7/full-suite.full-loader;
# the curated M5/M6 gates below are the full-loader tier by default
# (M5_CONFORMANCE_BARE=0). The fresh TSV/report are in build/m11-final
# (full-suite-results.tsv / full-suite-report.txt).
# (M5_CONFORMANCE_BARE=0). The fresh TSV/report are in build/m12-final
# (full-suite-results.tsv / full-suite-report.txt); the M12 abort triage is
# scripts/tests/m12/abort-triage.sh --work build/m12-abort-triage (evidence).
scripts/tests/m7/i64div.sh # fast/slow/wide/div32 DIVU paths in MAME
# -> M7 I64DIV PERF: PASS; fast_frames=88 slow_frames=3302 wide_frames=221
# div32_frames=120 ratio=37.5 wide_ratio=14.9 div32_ratio=1.8
@@ -1597,10 +1704,10 @@ The gate log prints each tier's counts; skipped tests carry a feature reason
and are never counted as passes. The conformance tiers run serially because
`M4_SDK` is shared; the MAME boot dominates the runtime.
## Run the M4 gates (branch `m4`; also green on `m5`–`m11`)
## Run the M4 gates (branch `m4`; also green on `m5`–`m12`)
These are the documented commands on branch `m4`; all must pass. On branches
`m5`–`m11`, use the M11 list above (it includes `llvm-mc`,
`m5`–`m12`, use the M12 list above (it includes `llvm-mc`,
`llvm-dwarfdump`, the M7.2 gates and the M5/M6 gates); the M4
commands below remain the historical regression set and use the `m4` test
counts. The MAME gates are slow and are run once.
@@ -25,12 +25,12 @@ Discovery is mechanical, not a hardcoded list:
word, the completion magic, and the last non-empty stdout marker.
The shipped bare checker does not expose the abort PC, and every discovered
test is silent (`stdout_len=0`). The status word is therefore the first
differing marker: `0x86` is `abort()` (the shim writes 134), and the two
wrong-result rows return their wrong value as the status. Where a group needed
a sharper cause, a small out-of-tree probe was run through the same runner;
those probes and their logs are retained under
`build/m12-abort-triage/probes/`.
test is silent (`stdout_len=0`). There is therefore no output marker to
compare; the table's marker column is **status-derived**: `0x86` is `abort()`
(the shim writes 134), and the two wrong-result rows return their wrong value
as the status. Where a group needed a sharper cause, a small probe was run
through the same runner; the probe sources, their run logs and the cause map
are committed under `scripts/tests/m12/probes/` (see its `README.md`).
Command and cost:
@@ -45,7 +45,9 @@ completions, and no crash/unclassified runner rows in the baseline.
## 2. Discovered set
**54 rows**, all `c-torture`. The plan estimated 49–51 and the spec's §7.6
says 58; those numbers are stale. `m11` had 53 rows matching this rule; M12
says 58; those numbers are stale. The 54-row table below is the Task 5
snapshot; Task 6 then removed the one flipped row (`eeprof-1`), so a re-run
of the harness now discovers 53. `m11` had 53 rows matching this rule; M12
re-reasoned `stkalign` from `inline-asm` to `runtime-abort-alignment`, adding
the 54th. The breakdown is 52 aborts plus 2 wrong results (`bitfld-6`,
`bitfld-7`).
@@ -78,8 +80,10 @@ shows both opt levels explicitly). Evidence pointers are relative to
`logs/-O2/c-torture/NAME.log` (the `.rc` files sit beside them, and the
per-opt `result.txt` is under `run-O0/` or `run-O2/`). Costs are group costs
from §4 (`S` small, `M` medium, `L` large, `out` permanently out of scope).
A `probes/NAME` citation in §4–§5 means `scripts/tests/m12/probes/NAME`, where
the sources and their historical logs are committed.
| corpus/name | curated class | -O0 | -O2 | status | magic | first marker | cause | cost | evidence |
| corpus/name | curated class | -O0 | -O2 | status | magic | status-derived marker | cause | cost | evidence |
|---|---|---|---|---|---|---|---|---|---|
| c-torture/20010904-1 | runtime-abort-alignment | fail:status | fail:status | 00000086 | CONF | abort (0x86) | align-packed-abi | L | O0/O2: 20010904-1 |
| c-torture/20010904-2 | runtime-abort-alignment | fail:status | fail:status | 00000086 | CONF | abort (0x86) | align-packed-abi | L | O0/O2: 20010904-2 |
@@ -138,7 +142,7 @@ from §4 (`S` small, `M` medium, `L` large, `out` permanently out of scope).
## 4. Causes, grouped
| cause | rows | cost | one-line? |
| cause | rows | cost | one-flag/one-condition? |
|---|---:|---|---|
| aggregate varargs | 13 | L | no |
| vector arithmetic | 12 | L | no |
@@ -221,10 +225,10 @@ The evidence for the macro half is a frontend-only override
target does not honor the reversed storage order. They only pass today
because the macro is wrong in the matching direction.
So this is not a clean one-line fix: the macro and `scalar_storage_order`
must be corrected together. That is why the apparent `BigEndian = false`
one-liner is rejected in §5. Cost M, with a regression guard on the two
`20230630-*` passers.
So this is not a clean one-flag/one-condition fix: the macro and
`scalar_storage_order` must be corrected together. That is why the apparent
`BigEndian = false` single change is rejected in §5. Cost M, with a regression
guard on the two `20230630-*` passers.
### 4.5 Packed / over-alignment ABI — 4 rows, L
@@ -303,7 +307,9 @@ a real unsigned→float rounding case. `20031003-1` passes at `-O2`. Cost M.
`__cyg_profile_func_enter/exit` calls are emitted, so the test's counters stay
zero and it aborts. Running the unmodified test with the flag passes at both
`-O0` and `-O2`. This is a driver omission, not a compiler bug; it is the one
one-line candidate in §5.
one-flag/one-condition candidate in §5. Task 6 took it: `dialect_flags()` now
forwards the flag per row, the row was removed from `full-suite.skip`, and the
gate suite passes it (see §9).
### 4.11 Freestanding builtins — 1 row, out
@@ -314,10 +320,11 @@ folds the same file to `llvm.abs.i64`. This is the target's freestanding
policy, not a TMS codegen gap; curate it as such (or revisit hosted mode
outside M13).
## 5. One-line ruling
## 5. One-flag/one-condition ruling
At most three one-line fixes may be proposed for M12. The triage supports
**one**; the strongest-looking compiler one-liner is explicitly rejected.
At most three one-flag/one-condition fixes may be proposed for M12. The triage
supports **one**; the strongest-looking single-change compiler candidate is
explicitly rejected.
### Accepted candidate (harness, not compiler): forward `-finstrument-functions`
@@ -328,27 +335,27 @@ source's `dg-options` asks for it. Why it qualifies:
passes unchanged when it is forwarded (verified at `-O0` and `-O2`).
- One flag/one condition, one row affected (`eeprof-1`), no other abort row
requests the flag, and no compiler or ABI change.
- It is a harness fix, so it must be its own follow-up commit (and then the
`eeprof-1` curated row can be removed with a recorded flip). This task does
not take it and does not edit the skip file.
- It is a harness fix, so it was taken as its own Task 6 commit: the
`eeprof-1` curated row is removed with the recorded flip. This Task 5
document did not edit the skip file.
### Rejected: `BigEndian = false` in `TMS34010TargetInfo`
This looked like the textbook one-liner: it would make `__BYTE_ORDER__`
agree with the little-endian DataLayout and flips `bitfld-6`, `bitfld-7`,
This looked like the textbook one-flag/one-condition candidate: it would make
`__BYTE_ORDER__` agree with the little-endian DataLayout and flips `bitfld-6`, `bitfld-7`,
`20230630-3`, and `pr65401` at both levels (and `20230630-1` through the full
loader). But the same change flips `20230630-2` and `20230630-4` from pass to
`0x86`, because they then select `scalar_storage_order("big-endian")`, which
the target does not honor. A one-line fix that regresses two passing rows is
not a clean single-cause fix. The endianness macro and `scalar_storage_order`
belong together in M13.
the target does not honor. A single-change fix that regresses two passing rows
is not a clean single-cause fix. The endianness macro and
`scalar_storage_order` belong together in M13.
### Rejected: shim `%#x`/`%#X` zero prefix
`pr79327` would flip if `emit_uint()` stopped printing `0x` for zero, but the
deviation is explicitly documented in `sdk/shim.c` as a pre-existing M5
byte-identical behavior. Changing it would move shim output and gate bytes;
not a safe M12 one-liner.
not a safe M12 one-flag fix.
No other group qualifies: varargs, vectors, wide bitfields, alignment,
signed zero, and conversions are multi-line lowering/ABI work; pointer↔int
@@ -371,7 +378,7 @@ rows; 25 of them (varargs + vectors) are the first two items.
| — | pointer↔int model | 4 | out | re-curate with the bit-pointer reason; no code |
| — | RTS / shim runtime | 2 | out | bare-tier `__ctypes_` / documented `%#x` deviation |
| — | freestanding builtins | 1 | out | `-ffreestanding -fno-builtin` is deliberate |
| M12 follow-up | instrumentation flag | 1 | S | the accepted one-line harness candidate above |
| M12 (done) | instrumentation flag | 1 | S | the accepted one-flag/one-condition harness fix; `eeprof-1` flipped in Task 6 |
Suggested M13 execution order: **varargs → vectors → wide bitfields →
endianness+SSO → alignment**. Take the two float groups after the structural
@@ -418,7 +425,7 @@ mislabel: seven vararg tests curated as bitfields.
- **`20230630-1` has a bare-tier host segfault** once its check passes. Any
endianness fix must either add it to `full-suite.full-loader` (it passes
there) or resolve the MAME instability first.
- **The endianness one-liner is a trap.** The regression on `20230630-2/-4`
- **The endianness one-flag change is a trap.** The regression on `20230630-2/-4`
is the reason it is not proposed; record it before M13 starts.
## 9. Raw evidence
@@ -428,6 +435,17 @@ mislabel: seven vararg tests curated as bitfields.
- Machine-readable tables: `build/m12-abort-triage/abort-triage.tsv`,
`build/m12-abort-triage/abort-triage.evidence.tsv`
- Per-test logs and results: `build/m12-abort-triage/logs/` and
`build/m12-abort-triage/run-O0|O2/`
- Representative probe sources/logs and the cause map:
`build/m12-abort-triage/probes/`
`build/m12-abort-triage/run-O0/` / `run-O2/`
- Representative probe sources: `scripts/tests/m12/probes/` (with its
`README.md`, `cause-map.tsv` and historical `logs/`); the same files were
originally written under `build/m12-abort-triage/probes/`
## 10. Task 6 outcome
`eeprof-1` is the only row this triage fixes in M12. Task 6 added
`-finstrument-functions` forwarding to `dialect_flags()` (per row, when
`dg-options` asks for it), verified the unmodified test at `-O0` and `-O2`
through the M5 runner, and removed the curated row. The other 53 rows stay
curated with the causes above and are M13's input. The suite accounting moves
by this one row (1,618 → 1,635 pass, 294 → 277 skip across all M12 flips; see
the README's M12 section for the per-row list).
@@ -854,7 +854,88 @@ sweep's one stale M7 gate check was fixed in `7fcae6e`: `m7/debug.sh` now
asserts the `llvm.tms34010.bitaddr` spelling (the M10 aliasing fix replaced the
`add i32` lowering) and still requires `!dbg` on the barrier instructions.
**The M11/M12 boundary** is M12 (conformance classes) per the roadmap (§11 of
the M11 design).
the M11 design); the M12 section below supersedes that boundary.
### M12 — tractable conformance gaps, and the abort triage
M12 takes the conformance classes with known backend/driver mechanics and
turns the largest unknown bucket (runtime aborts) into a costed M13 list. The
binding design is
`2026-11-19-tms34010-m12-tractable-gaps-design.md`; the triage report is
`../research/2026-11-19-tms34010-abort-triage.md`. Branch `m12` is the
milestone branch on both repositories; promotion is pending the controller's
review (`m11` remains the default until then).
- **The 17 flips, row by row.** The inline-asm memory rows `pr103376`,
`pr40022`, `pr40657`, `pr56866`, `pr65053-2`, `pr68328`, `pr81588`,
`pr82954`, `pr85156`, `pr94130` (10); the computed-goto rows `920501-3`,
`990208-1` (2); the level-0 frame rows `20030811-1`, `frame-address`,
`pr17377` (3); the dynamic-alloca row `20070824-1` (1); and `eeprof-1` (1),
the one-flag/one-condition harness fix that forwards
`-finstrument-functions` from the test's own `dg-options`. The eleventh
inline-asm row, `stkalign`, now selects its memory operand but aborts on
`__alignof__(s) == 64` under the packed-struct ABI; it was re-reasoned as
`runtime-abort-alignment`, not flipped. Suite accounting is
**1,912 = 1,635 pass / 277 skip / 0 fail / 0 crash** (1,618 + 17,
294 − 17; c-torture 1,425/267, c-testsuite 210/10).
- **Inline-asm memory operands; the `ST`/`o`/`V` decisions.**
`SelectInlineAsmMemoryOperand` matches the reachable load/store addressing
forms for `m` and `g`; an unmatchable operand is a named error. `o` accepts
only the non-post-increment, non-negative-displacement form. `V` stays loud:
`InlineAsm::ConstraintCode` has no `V` and `SelectionDAGBuilder` asserts
before the target hook, so it needs a core enum change outside this charter.
`"st"` joins `getGCCRegNames()` so `~{st}` is a nameable clobber, while `ST`
remains outside every register class and every operand constraint (no
allocation, no save/restore, value operands still rejected).
- **`jump Rd` and computed goto.** The ISA's indirect jump (opcode `0x0160`,
vendor ONEREG table) is implemented end to end (instruction definition, MC
encoding `jump A0` = `[0x60, 0x01]`, parser, printer, disassembler);
`ISD::BRIND` lowers to it, and `ISD::BlockAddress` lowers to a
section-relative **bit** address through the normal `MOVI`/R-RELLONG path —
no absolute load address.
- **Level-0 frame intrinsics, with the capture mechanism.** The return word is
on the system stack at `SP + (1 + NumSaved)*32`. A use-site SP-relative load
was reproduced sinking into the saved-STK push window at `-O1`/`-O2` (it
read the saved `A13`); the shipped lowering captures the word once in the
prologue — after the FP/callee-save pushes — into a normal `A13`-relative
stack object with matching fixed-stack MMOs, and every
`llvm.returnaddress(0)` use loads that stable slot. `llvm.frameaddress(0)`
is `A13`. Levels above 0 stay a named error naming the intrinsic and level.
- **Dynamic alloca.** The byte→bit scale already existed; the failure was the
M8 shape assertion firing when the DAG constant-folds the `SHL 3` for a
non-entry-block constant-count alloca (`20070824-1`). Both the constant and
variable shapes now scale explicitly and no node shape is asserted.
- **Abort triage (M13 input).** `scripts/tests/m12/abort-triage.sh` discovers
the abort rows from the curated table and re-runs each at `-O0` and `-O2`:
**54 rows** (52 aborts + 2 wrong results), **108 runs in 133 s**, **11
causes** — aggregate varargs 13, vectors 12, 64-bit/packed bitfields 7,
endian macro + SSO 5, packed/over-alignment 4, pointer↔int 4, signed zero 3,
float↔int 2, RTS/shim 2, instrumentation 1, freestanding builtins 1. The
report (`docs/superpowers/research/2026-11-19-tms34010-abort-triage.md`)
carries the per-file evidence and §6's M13 ordering: **varargs → vectors →
wide bitfields → endianness+SSO → alignment**, then the float groups.
`eeprof-1` is the only row fixed here. The endianness `BigEndian = false`
single change is rejected: it regresses `20230630-2`/`-4` once they select
`scalar_storage_order("big-endian")`.
- **Permanently out of scope.** Nested functions (30 rows; clang frontend
refusal), VLA-in-struct (9; `will never be supported`), dialect strictness
(8; `-Wint-conversion`/`-Wparen`/K&R under the pinned language mode) and
timeouts/region limits (37; loader budget or the 45 KiB/64 KiB image
regions). The triage's pointer↔int (4), RTS/shim (2) and freestanding
builtins (1) are target-model/runtime policy and stay curated as well.
- **The M12/M13 boundary.** M13 is the ABI shapes (sret,
aggregate/variadic/float arguments and returns) plus the triaged abort
causes in the order above; M14 is performance and the real VT1200 run
(still `HARDWARE: DEFERRED`); M15 is optional hosted I/O. Every M0–M11 gate
and the M11 end-to-end build stay green, and the four-phase divide gate is
unchanged (88/3,302/221/120).
M12 acceptance: the full suite is **0 fail / 0 crash** with the accounting
above; TMS34010 lit **142/142** (137 CodeGen + 5 MC), clang **15** (12 CodeGen +
2 Driver + 1 Sema), the Generic sweep **197 = 152 pass / 45 unsupported**
(`addr-label` flips with `blockaddress`), `tools/tms-link` and
`tools/tms-bitaddr` PASS; the M11 gates, M10 equivalence (46/0) and the
M0–M11 serial list PASS; `HARDWARE: DEFERRED`.
## 9. Risks and mitigations
@@ -36,6 +36,20 @@ index f893d858d526..5ada0996811e 100644
def no_xcselect : Flag<["--"], "no-xcselect">,
HelpText<"Disable xcselect SDK injection on macOS">;
diff --git a/clang/lib/Basic/Targets/TMS34010.cpp b/clang/lib/Basic/Targets/TMS34010.cpp
index ad27642ae9aa..37cf9243e848 100644
--- a/clang/lib/Basic/Targets/TMS34010.cpp
+++ b/clang/lib/Basic/Targets/TMS34010.cpp
@@ -76,6 +76,9 @@ ArrayRef<const char *> TMS34010TargetInfo::getGCCRegNames() const {
"a8", "a9", "a10", "a11", "a12", "a13", "a14", "a15",
"b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7",
"b8", "b9", "b10", "b11", "b12", "b13", "b14", "b15",
+ // The status register is nameable as a clobber only: ST is outside
+ // every register class, so it can never be chosen as an operand.
+ "st",
};
return Names;
}
diff --git a/clang/lib/Driver/CMakeLists.txt b/clang/lib/Driver/CMakeLists.txt
index 506536cdc04f..71ce08e3e5b6 100644
--- a/clang/lib/Driver/CMakeLists.txt
@@ -561,6 +575,48 @@ index 000000000000..4f244591b61a
+// CHECK-DAG: .long 00000000h
+// CHECK-NOT: .long 40E00000h
+// CHECK-NOT: .long 80000000h
diff --git a/clang/test/CodeGen/TMS34010/m12-inline-asm-mem.c b/clang/test/CodeGen/TMS34010/m12-inline-asm-mem.c
new file mode 100644
index 000000000000..9a1512116c74
--- /dev/null
+++ b/clang/test/CodeGen/TMS34010/m12-inline-asm-mem.c
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -triple tms34010-unknown-none -O0 -S -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple tms34010-unknown-none -O2 -S -o - %s | FileCheck %s
+//
+// M12: an `m` operand is a memory operand the backend can now address. The
+// asm template is empty, so the bar is that the selector finds a valid
+// TMS34010 address for the operand instead of the M9 named error; the
+// addressing form itself is covered by m12-inline-asm-mem-forms.ll.
+int load_via_asm(int *p) {
+ int x;
+ __asm__ volatile("" : "=r"(x) : "m"(*p) : "memory");
+ return x;
+}
+int store_via_asm(int *p, int v) {
+ __asm__ volatile("" : : "m"(*p), "r"(v) : "memory");
+ return v;
+}
+// CHECK-LABEL: _load_via_asm:
+// CHECK-NOT: error:
+// CHECK-LABEL: _store_via_asm:
diff --git a/clang/test/CodeGen/TMS34010/m12-inline-asm-st.c b/clang/test/CodeGen/TMS34010/m12-inline-asm-st.c
new file mode 100644
index 000000000000..ca1f041f709d
--- /dev/null
+++ b/clang/test/CodeGen/TMS34010/m12-inline-asm-st.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -triple tms34010-unknown-none -O0 -S -o - %s | FileCheck %s
+//
+// M12: `st` names the status register as a clobber. Before M12 clang rejected
+// the name ("unknown register name 'st' in asm") because getGCCRegNames()
+// listed only the A/B files. ST stays out of every register class and out of
+// the operand constraints, so this only makes the clobber nameable.
+int clobber_st(int x) {
+ __asm__ volatile("" : "+r"(x) : : "st");
+ return x;
+}
+// CHECK-LABEL: _clobber_st:
diff --git a/clang/test/Driver/TMS34010-link.c b/clang/test/Driver/TMS34010-link.c
new file mode 100644
index 000000000000..3b067d9eb3b6
+10 -7
View File
@@ -10,10 +10,10 @@
# The curated skip table is only read; this harness cannot flip a row.
#
# For every row it records the runner result, the status word, the completion
# magic, the first marker that differs from a successful run (a non-zero
# status, a missing magic, or the last output line before the abort), and the
# first difference between -O0 and -O2. Per-opt logs and result.txt files are
# retained so the research document can cite them.
# magic, a status-derived marker (a non-zero status or a missing magic -- the
# silent tests expose no output marker), and the first difference between -O0
# and -O2. Per-opt logs and result.txt files are retained so the research
# document can cite them; the per-opt work dirs are run-O0/ and run-O2/.
#
# --work DIR work/results directory (default build/m12-abort-triage)
# --timeout SEC per-test MAME timeout (default 120)
@@ -166,6 +166,9 @@ dialect_flags() {
if printf '%s\n' "$directives" | grep -q -- '-fwrapv'; then
flags="${flags:+$flags }-fwrapv"
fi
if printf '%s\n' "$directives" | grep -q -- '-finstrument-functions'; then
flags="${flags:+$flags }-finstrument-functions"
fi
printf '%s' "$flags"
}
@@ -303,7 +306,7 @@ run_one() {
logdir=$WORK/logs/$opt/$corpus
mkdir -p "$logdir"
log=$logdir/$name.log
runwork=$WORK/run-$opt/$safe_id
runwork=$WORK/run-${opt#-}/$safe_id
extra_cflags=$(dialect_flags "$corpus" "$name" "$src")
test_loader_end=$(loader_end_for "$id")
@@ -327,7 +330,7 @@ run_one() {
if [ "$corpus" = c-torture ]; then
LOADER_AT=$LOADER_AT LOADER_END=$test_loader_end \
MAME_TIMEOUT=$TIME_LIMIT \
M5_CONFORMANCE_WORK=$WORK/run-$opt \
M5_CONFORMANCE_WORK=$WORK/run-${opt#-} \
M5_CONFORMANCE_CLANG_OPT=$opt M5_CONFORMANCE_LLC_OPT=$opt \
M5_CONFORMANCE_MODE=native \
M5_CONFORMANCE_BARE=$bare \
@@ -340,7 +343,7 @@ run_one() {
else
LOADER_AT=$LOADER_AT LOADER_END=$test_loader_end \
MAME_TIMEOUT=$TIME_LIMIT \
M5_CONFORMANCE_WORK=$WORK/run-$opt \
M5_CONFORMANCE_WORK=$WORK/run-${opt#-} \
M5_CONFORMANCE_CLANG_OPT=$opt M5_CONFORMANCE_LLC_OPT=$opt \
M5_CONFORMANCE_MODE=native \
M5_CONFORMANCE_BARE=$bare \
+61
View File
@@ -0,0 +1,61 @@
# M12 abort-triage probes
Source for the representative probes cited by
`docs/superpowers/research/2026-11-19-tms34010-abort-triage.md` (§4 causes,
§5 one-flag ruling). They are kept in the repository so the triage's
load-bearing claims can be re-inspected and re-run; the historical run logs
are under `logs/`.
Each probe is compiled and run through the same M5 conformance runner and the
same bare-tier settings the triage harness uses. From the repository root:
```sh
probe=simd1probe
M5_CONFORMANCE_WORK=build/m12-probe-run \
M5_CONFORMANCE_MODE=native M5_CONFORMANCE_BARE=1 \
M5_CONFORMANCE_CLANG_OPT=-O0 M5_CONFORMANCE_LLC_OPT=-O0 \
M4_OS2=1 LOADER_AT=200 LOADER_END=1000 MAME_TIMEOUT=120 \
scripts/tests/m5/conformance/run.sh --id "probe/$probe" --classify \
--mode native --expect-status 0 --ignore-output --timeout 120 \
"scripts/tests/m12/probes/$probe.c"
```
The probe's `main` return value becomes the runner status under
`--expect-status 0`, so a `CONFORMANCE: FAIL ... status=0000000A` line means
the probe returned 10. `logs/` keeps the original run output, including the
`MAME exited 139` cases.
The endianness probes (`pr65401probe.c`, and the `20230630-*`/`bitfld-*` files
run under the override) add the frontend-only macro override:
```sh
M5_CONFORMANCE_EXTRA_CFLAGS='-U__BIG_ENDIAN__ -D__BYTE_ORDER__=1234'
```
## What each probe shows
| Probe | Claim it supports | Observed |
|---|---|---|
| `va931004probe.c` | aggregate `va_arg` returns the wrong struct; the trailing `long` is never reached (§4.1) | status `0x1` |
| `simd1probe.c` | vector **add** is already wrong; first failing check is `k = i + j` (§4.2) | status `0xA` |
| `astkalign.c` | `__alignof__(aligned(64))` is clamped under the packed default (§4.5) | status `0x1` |
| `azerolen.c` | zero-length-array struct alignment differs from its `int` (§4.5) | status `0x2` |
| `a20010904.c` | `return (char-diff & 31)` folds to 0 (§4.5) | pass (`0`) |
| `a20010904b.c` | the same expression as `if (expr & 31) return 1` folds to true (§4.5) | status `0x1` |
| `a20010904c.c` | the probe's own linked stride is small; the corpus mismatch is the real 1028-byte stride (§4.5) | pass (`0`) |
| `ptrdiff.c` | `(int)&a[1] - (int)&a[0]` is in bit units, not bytes (§4.6) | status `0x8` |
| `fpr35456.c` | `x >= 0 ? x : -x` loses the sign of `-0.0` (§4.7) | status `0x1` |
| `fpr44683.c` | `copysign(1.0, -0.0) < 0.0` is false (§4.7) | status `0x3` |
| `f20080502.c` | `long double` signbit path differs (§4.7) | status `0x1` |
| `f20031003.c` | both out-of-range float→int conversions differ from `INT_MAX` (§4.8) | status `0x3` |
| `ffloatunsisf.c` | unsigned→float rounding differs from the literal conversion (§4.8) | status `0x1` |
| `isprint.c` | bare-tier `_isprint` reads a zero `__ctypes_` (§4.9) | no log retained; `isprint('a') == 1` is false |
| `sprintfhex.c` | `sprintf("%#hhx", 0)` returns 3, i.e. `"0x0"` (§4.9) | status `0x3` |
| `sprintf6.c` | the same `%#hhx`-of-zero deviation inside the full test's checks (§4.9) | status `0x2` |
| `pr65401probe.c` | the test's own loops pass with the little-endian macro override; the failure is the `__BYTE_ORDER__` branch (§4.4) | pass with override |
| `firstbyte.c`, `firstbyte3.c` | bitfield first-byte extraction probes (§4.4) | `firstbyte.c` host-segfaults (`MAME exited 139`); the bare-tier instability noted in §8 |
| `20230630-1` (`log-e-*`) | the macro override passes through the full loader; the bare tier host-segfaults (§4.4, §8) | pass (full loader); `MAME exited 139` (bare `-O0`) |
`isprint.c` and `sprintfret.c`/`sprintfret2.c` are retained sources whose
historical logs were not kept; their claims are stated in the research
document and are reproducible with the command above.
+4
View File
@@ -0,0 +1,4 @@
typedef struct x { int a; int b; } __attribute__((aligned(32))) X;
typedef struct y { X x[32]; int c; } Y;
Y y[2];
int main(void){ return ((char*)&y[1] - (char*)&y[0]) & 31; }
+4
View File
@@ -0,0 +1,4 @@
typedef struct x { int a; int b; } __attribute__((aligned(32))) X;
typedef struct y { X x[32]; int c; } Y;
Y y[2];
int main(void){ if (((char*)&y[1] - (char*)&y[0]) & 31) return 1; return 0; }
+4
View File
@@ -0,0 +1,4 @@
typedef struct x { int a; int b; } __attribute__((aligned(32))) X;
typedef struct y { X x[32]; int c; } Y;
Y y[2];
int main(void){ long d = (char*)&y[1] - (char*)&y[0]; return (int)(d >> 8); }
+1
View File
@@ -0,0 +1 @@
int main(void){ static struct { char c __attribute__((aligned(64))); } s; return __alignof__(s); }
+3
View File
@@ -0,0 +1,3 @@
typedef int word __attribute__((mode(word)));
struct foo { word x; word y[0]; };
int main(){ return (sizeof(word)!=sizeof(struct foo)) + 2*(__alignof__(word)!=__alignof__(struct foo)); }
+54
View File
@@ -0,0 +1,54 @@
c-torture/20010904-1 align-packed-abi L
c-torture/20010904-2 align-packed-abi L
c-torture/20021127-1 freestanding-builtin out
c-torture/20031003-1 float-conv M
c-torture/20050604-1 vector-ops L
c-torture/20050607-1 vector-ops L
c-torture/20060420-1 vector-ops L
c-torture/20080502-1 signed-zero M
c-torture/20230630-1 endian-macro+sso M
c-torture/20230630-3 endian-macro+sso M
c-torture/920428-1 ptr-int-model out
c-torture/920625-1 aggregate-varargs L
c-torture/931004-10 aggregate-varargs L
c-torture/931004-12 aggregate-varargs L
c-torture/931004-14 aggregate-varargs L
c-torture/931004-2 aggregate-varargs L
c-torture/931004-4 aggregate-varargs L
c-torture/931004-6 aggregate-varargs L
c-torture/931004-8 aggregate-varargs L
c-torture/991112-1 rts-shim S
c-torture/bitfld-3 bitfield-64 M
c-torture/bitfld-5 bitfield-64 M
c-torture/bitfld-6 endian-macro+sso M
c-torture/bitfld-7 endian-macro+sso M
c-torture/eeprof-1 instr-flag S
c-torture/floatunsisf-1 float-conv M
c-torture/pr103255 ptr-int-model out
c-torture/pr123625 vector-ops L
c-torture/pr32244-1 bitfield-64 M
c-torture/pr34971 bitfield-64 M
c-torture/pr35456 signed-zero M
c-torture/pr38051 ptr-int-model out
c-torture/pr38151 aggregate-varargs L
c-torture/pr44575 aggregate-varargs L
c-torture/pr44683 signed-zero M
c-torture/pr57344-3 bitfield-64 M
c-torture/pr57344-4 bitfield-64 M
c-torture/pr58209 ptr-int-model out
c-torture/pr65401 endian-macro+sso M
c-torture/pr65427 vector-ops L
c-torture/pr79327 rts-shim S
c-torture/pr79737-2 bitfield-64 M
c-torture/pr85169 vector-ops L
c-torture/pr94412 vector-ops L
c-torture/scal-to-vec1 vector-ops L
c-torture/scal-to-vec2 vector-ops L
c-torture/scal-to-vec3 vector-ops L
c-torture/simd-1 vector-ops L
c-torture/simd-2 vector-ops L
c-torture/stdarg-3 aggregate-varargs L
c-torture/stkalign align-packed-abi L
c-torture/strct-stdarg-1 aggregate-varargs L
c-torture/strct-varg-1 aggregate-varargs L
c-torture/zerolen-2 align-packed-abi L
1 c-torture/20010904-1 align-packed-abi L
2 c-torture/20010904-2 align-packed-abi L
3 c-torture/20021127-1 freestanding-builtin out
4 c-torture/20031003-1 float-conv M
5 c-torture/20050604-1 vector-ops L
6 c-torture/20050607-1 vector-ops L
7 c-torture/20060420-1 vector-ops L
8 c-torture/20080502-1 signed-zero M
9 c-torture/20230630-1 endian-macro+sso M
10 c-torture/20230630-3 endian-macro+sso M
11 c-torture/920428-1 ptr-int-model out
12 c-torture/920625-1 aggregate-varargs L
13 c-torture/931004-10 aggregate-varargs L
14 c-torture/931004-12 aggregate-varargs L
15 c-torture/931004-14 aggregate-varargs L
16 c-torture/931004-2 aggregate-varargs L
17 c-torture/931004-4 aggregate-varargs L
18 c-torture/931004-6 aggregate-varargs L
19 c-torture/931004-8 aggregate-varargs L
20 c-torture/991112-1 rts-shim S
21 c-torture/bitfld-3 bitfield-64 M
22 c-torture/bitfld-5 bitfield-64 M
23 c-torture/bitfld-6 endian-macro+sso M
24 c-torture/bitfld-7 endian-macro+sso M
25 c-torture/eeprof-1 instr-flag S
26 c-torture/floatunsisf-1 float-conv M
27 c-torture/pr103255 ptr-int-model out
28 c-torture/pr123625 vector-ops L
29 c-torture/pr32244-1 bitfield-64 M
30 c-torture/pr34971 bitfield-64 M
31 c-torture/pr35456 signed-zero M
32 c-torture/pr38051 ptr-int-model out
33 c-torture/pr38151 aggregate-varargs L
34 c-torture/pr44575 aggregate-varargs L
35 c-torture/pr44683 signed-zero M
36 c-torture/pr57344-3 bitfield-64 M
37 c-torture/pr57344-4 bitfield-64 M
38 c-torture/pr58209 ptr-int-model out
39 c-torture/pr65401 endian-macro+sso M
40 c-torture/pr65427 vector-ops L
41 c-torture/pr79327 rts-shim S
42 c-torture/pr79737-2 bitfield-64 M
43 c-torture/pr85169 vector-ops L
44 c-torture/pr94412 vector-ops L
45 c-torture/scal-to-vec1 vector-ops L
46 c-torture/scal-to-vec2 vector-ops L
47 c-torture/scal-to-vec3 vector-ops L
48 c-torture/simd-1 vector-ops L
49 c-torture/simd-2 vector-ops L
50 c-torture/stdarg-3 aggregate-varargs L
51 c-torture/stkalign align-packed-abi L
52 c-torture/strct-stdarg-1 aggregate-varargs L
53 c-torture/strct-varg-1 aggregate-varargs L
54 c-torture/zerolen-2 align-packed-abi L
+3
View File
@@ -0,0 +1,3 @@
int f1(){ return (int)2147483648.0f; }
int f2(){ return (int)(float)(2147483647); }
int main(){ return (f1()!=2147483647) + 2*(f2()!=2147483647); }
+2
View File
@@ -0,0 +1,2 @@
long double __attribute__((noinline)) foo (long double x) { return __builtin_signbit(x) ? 3.1415926535897932384626433832795029L : 0.0; }
int main(void){ return foo(-1.0L) != 3.1415926535897932384626433832795029L; }
+3
View File
@@ -0,0 +1,3 @@
volatile unsigned u = 0x80000081;
volatile float f1, f2;
int main(void){ f1=(float)u; f2=(float)0x80000081; return f1!=f2; }
+2
View File
@@ -0,0 +1,2 @@
struct S { short int i : 12; char c1 : 1; char c2 : 1; char c3 : 1; char c4 : 1; };
int main(void) { struct S s0 = { 341, 1, 1, 1, 1 }; volatile char *p = (char *)&s0; return (unsigned char)*p; }
+2
View File
@@ -0,0 +1,2 @@
struct S { __INT32_TYPE__ i : 24; char c1:1,c2:1,c3:1,c4:1,c5:1,c6:1,c7:1,c8:1; };
int main(void) { struct S s0 = { 1193046,1,1,1,1,1,1,1,1 }; char *p=(char*)&s0; return (unsigned char)*p; }
+2
View File
@@ -0,0 +1,2 @@
double __attribute__((noinline)) not_fabs (double x) { return x >= 0.0 ? x : -x; }
int main(){ double x=-0.0; double y=not_fabs(x); return __builtin_signbit(y)?0:1; }
+2
View File
@@ -0,0 +1,2 @@
int __attribute__((noinline,noclone)) copysign_bug (double x){ if (x != 0.0 && (x*0.5 == x)) return 1; if (__builtin_copysign(1.0,x) < 0.0) return 2; return 3; }
int main(void){ double x=-0.0; return copysign_bug(x); }
+2
View File
@@ -0,0 +1,2 @@
int isprint(int);
int main(void) { return isprint('a') == 1 ? 0 : (isprint('a') ? 1 : 2); }
@@ -0,0 +1,12 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20230630-1-O0, -O0, mode=native)
linked /tmp/opencode/abort-probes/work-endian/20230630-1-O0/m4/m4.coff (native)
== run the COFF in MAME (native bare)
Warning: -video none doesn't make much sense without -seconds_to_run
ALSA lib seq_hw.c:540:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied
vt1200: screen_update#1 frame=0 clip_y=0..0 screen=1280x901
vt1200: screen_update#2 frame=0 clip_y=1..900 screen=1280x901
vt1200: guard#1 frame=0 dump_frame=-1 dump_ram=-1
BARE: entry=018A0000 sp=01A80000 sections=3
Segmentation fault
conformance: FAIL: MAME exited 139
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20230630-1-O2, -O2, mode=native)
linked /tmp/opencode/abort-probes/work-endian/20230630-1-O2/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=20230630-1-O2 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20230630-3-O0, -O0, mode=native)
linked /tmp/opencode/abort-probes/work-endian/20230630-3-O0/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=20230630-3-O0 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20230630-3-O2, -O2, mode=native)
linked /tmp/opencode/abort-probes/work-endian/20230630-3-O2/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=20230630-3-O2 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (bitfld-6-O0, -O0, mode=native)
linked /tmp/opencode/abort-probes/work-endian/bitfld-6-O0/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=bitfld-6-O0 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (bitfld-6-O2, -O2, mode=native)
linked /tmp/opencode/abort-probes/work-endian/bitfld-6-O2/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=bitfld-6-O2 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (bitfld-7-O0, -O0, mode=native)
linked /tmp/opencode/abort-probes/work-endian/bitfld-7-O0/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=bitfld-7-O0 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (bitfld-7-O2, -O2, mode=native)
linked /tmp/opencode/abort-probes/work-endian/bitfld-7-O2/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=bitfld-7-O2 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (a20010904, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/a20010904/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=a20010904 status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (astkalign, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/astkalign/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=astkalign status=00000001 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000001
work dir: /tmp/opencode/abort-probes/work2/astkalign
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (azerolen, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/azerolen/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=azerolen status=00000002 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000002
work dir: /tmp/opencode/abort-probes/work2/azerolen
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (f20031003, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/f20031003/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=f20031003 status=00000003 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000003
work dir: /tmp/opencode/abort-probes/work2/f20031003
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (f20080502, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/f20080502/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=f20080502 status=00000001 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000001
work dir: /tmp/opencode/abort-probes/work2/f20080502
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (ffloatunsisf, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/ffloatunsisf/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=ffloatunsisf status=00000001 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000001
work dir: /tmp/opencode/abort-probes/work2/ffloatunsisf
@@ -0,0 +1,12 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (firstbyte, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/firstbyte/m4/m4.coff (native)
== run the COFF in MAME (native bare)
Warning: -video none doesn't make much sense without -seconds_to_run
ALSA lib seq_hw.c:540:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied
vt1200: screen_update#1 frame=0 clip_y=0..0 screen=1280x901
vt1200: screen_update#2 frame=0 clip_y=1..900 screen=1280x901
vt1200: guard#1 frame=0 dump_frame=-1 dump_ram=-1
BARE: entry=018A0000 sp=01A80000 sections=3
Segmentation fault
conformance: FAIL: MAME exited 139
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (fpr35456, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/fpr35456/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=fpr35456 status=00000001 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000001
work dir: /tmp/opencode/abort-probes/work2/fpr35456
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (fpr44683, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/fpr44683/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=fpr44683 status=00000003 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000003
work dir: /tmp/opencode/abort-probes/work2/fpr44683
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (sprintf6, -O0, mode=native)
linked /tmp/opencode/abort-probes/work2/sprintf6/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=sprintf6 status=00000002 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000002
work dir: /tmp/opencode/abort-probes/work2/sprintf6
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (a20010904b, -O0, mode=native)
linked /tmp/opencode/abort-probes/work3/a20010904b/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=a20010904b status=00000001 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000001
work dir: /tmp/opencode/abort-probes/work3/a20010904b
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (a20010904c, -O0, mode=native)
linked /tmp/opencode/abort-probes/work3/a20010904c/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=a20010904c status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (sprintfhex, -O0, mode=native)
linked /tmp/opencode/abort-probes/work3/sprintfhex/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=sprintfhex status=00000003 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000003
work dir: /tmp/opencode/abort-probes/work3/sprintfhex
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (pr65401probe, -O0, mode=native)
linked /tmp/opencode/abort-probes/work4/pr65401probe/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=pr65401probe status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (simd1probe, -O0, mode=native)
linked /tmp/opencode/abort-probes/work4/simd1probe/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=simd1probe status=0000000A expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 0000000A
work dir: /tmp/opencode/abort-probes/work4/simd1probe
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (va931004probe, -O0, mode=native)
linked /tmp/opencode/abort-probes/work4/va931004probe/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=va931004probe status=00000001 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000001
work dir: /tmp/opencode/abort-probes/work4/va931004probe
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (ptrdiff, -O0, mode=native)
linked /tmp/opencode/abort-probes/work5/ptrdiff/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=ptrdiff status=00000008 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000008
work dir: /tmp/opencode/abort-probes/work5/ptrdiff
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20031003-notrap, -O0, mode=native)
linked /tmp/opencode/abort-probes/work6/20031003-notrap/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=20031003-notrap status=00000086 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000086
work dir: /tmp/opencode/abort-probes/work6/20031003-notrap
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20230630-1-endian-full, -O0, mode=native)
linked /tmp/opencode/abort-probes/work6/20230630-1-endian-full/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=20230630-1-endian-full status=00000000 stdout_len=0 stderr_len=0 link=native
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (stkalign-noinline, -O0, mode=native)
linked /tmp/opencode/abort-probes/work6/stkalign-noinline/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=stkalign-noinline status=00000086 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000086
work dir: /tmp/opencode/abort-probes/work6/stkalign-noinline
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20230630-2-ovr, -O0, mode=native)
linked /tmp/opencode/abort-probes/work7/20230630-2-ovr/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=20230630-2-ovr status=00000086 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000086
work dir: /tmp/opencode/abort-probes/work7/20230630-2-ovr
@@ -0,0 +1,7 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (20230630-4-ovr, -O0, mode=native)
linked /tmp/opencode/abort-probes/work7/20230630-4-ovr/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: FAIL id=20230630-4-ovr status=00000086 expected_status=00000000 stdout_len=0 stderr_len=0
status mismatch: expected 00000000, got 00000086
work dir: /tmp/opencode/abort-probes/work7/20230630-4-ovr
@@ -0,0 +1,5 @@
== extract the 1990 flib.lib/rts.lib for the shim's %f
== compile and link (pr98853-1-ovr, -O0, mode=native)
linked /tmp/opencode/abort-probes/work7/pr98853-1-ovr/m4/m4.coff (native)
== run the COFF in MAME (native bare)
CONFORMANCE: PASS id=pr98853-1-ovr status=00000000 stdout_len=0 stderr_len=0 link=native
+19
View File
@@ -0,0 +1,19 @@
struct S { unsigned short s[64]; };
__attribute__((noinline, noclone)) void foo (struct S *x) {
unsigned int i; unsigned char *s = (unsigned char *) x->s;
for (i = 0; i < 64; i++) x->s[i] = s[i * 2] | (s[i * 2 + 1] << 8);
}
__attribute__((noinline, noclone)) void bar (struct S *x) {
unsigned int i; unsigned char *s = (unsigned char *) x->s;
for (i = 0; i < 64; i++) x->s[i] = (s[i * 2] << 8) | s[i * 2 + 1];
}
int main () {
unsigned int i; struct S s;
for (i = 0; i < 64; i++) s.s[i] = i + ((64 - i) << 8);
foo (&s);
for (i = 0; i < 64; i++) if (s.s[i] != i + ((64 - i) << 8)) return 1;
for (i = 0; i < 64; i++) s.s[i] = i + ((64 - i) << 8);
bar (&s);
for (i = 0; i < 64; i++) if (s.s[i] != (64 - i) + (i << 8)) return 2;
return 0;
}
+1
View File
@@ -0,0 +1 @@
int main(){ char a[2]; return (int)&a[1] - (int)&a[0]; }
+19
View File
@@ -0,0 +1,19 @@
void exit (int);
typedef int __attribute__((mode(SI))) __attribute__((vector_size (16))) vecint;
typedef int __attribute__((mode(SI))) siint;
vecint i = { 150, 100, 150, 200 };
vecint j = { 10, 13, 20, 30 };
vecint k;
union { vecint v; siint i[4]; } res;
#define CHK(a,b,c,d) do { if (res.i[0]!=(a)||res.i[1]!=(b)||res.i[2]!=(c)||res.i[3]!=(d)) return __LINE__; } while (0)
int main () {
k = i + j; res.v = k; CHK(160,113,170,230);
k = i * j; res.v = k; CHK(1500,1300,3000,6000);
k = i / j; res.v = k; CHK(15,7,7,6);
k = i & j; res.v = k; CHK(2,4,20,8);
k = i | j; res.v = k; CHK(158,109,150,222);
k = i ^ j; res.v = k; CHK(156,105,130,214);
k = -i; res.v = k; CHK(-150,-100,-150,-200);
k = ~i; res.v = k; CHK(-151,-101,-151,-201);
return 0;
}
+10
View File
@@ -0,0 +1,10 @@
int main(void){
char buf[64]; volatile int a; int r;
a=0; r=__builtin_sprintf(buf,"%#hho",a); if(r!=1) return 1;
r=__builtin_sprintf(buf,"%#hhx",a); if(r!=1) return 2;
a=1; r=__builtin_sprintf(buf,"%#hho",a); if(r!=2) return 3;
r=__builtin_sprintf(buf,"%#hhx",a); if(r!=3) return 4;
a=127; r=__builtin_sprintf(buf,"%#hho",a); if(r!=4) return 5;
r=__builtin_sprintf(buf,"%#hhx",a); if(r!=4) return 6;
return 0;
}
+1
View File
@@ -0,0 +1 @@
int main(void){ char buf[64]; volatile int a=0; return __builtin_sprintf(buf,"%#hhx",a); }
+1
View File
@@ -0,0 +1 @@
int main(void){ char buf[64]; volatile int a=0; int r=__builtin_sprintf(buf,"%#hho",a); return r; }
+1
View File
@@ -0,0 +1 @@
int main(void){ char buf[64]; volatile int a=127; int r=__builtin_sprintf(buf,"%#hho",a); return r; }
+9
View File
@@ -0,0 +1,9 @@
#include <stdarg.h>
struct tiny { int c; };
int f (int n, ...) {
struct tiny x; int i; va_list ap; va_start (ap,n);
for (i = 0; i < n; i++) { x = va_arg (ap,struct tiny); if (x.c != i + 10) return 1 + i; }
{ long x = va_arg (ap, long); if (x != 123) return 10; }
va_end (ap); return 0;
}
int main (void) { struct tiny x[3]; x[0].c=10; x[1].c=11; x[2].c=12; return f (3, x[0], x[1], x[2], (long) 123); }
+3 -4
View File
@@ -20,9 +20,9 @@
# text is not TMS34010 assembly" (still unsupported, never counted as a pass).
2007-04-08-MultipleFrameIndices inline asm register constraint cannot be allocated
2007-04-27-InlineAsm-X-Dest inline asm text is not TMS34010 assembly
2007-04-27-LargeMemObject inline asm memory constraint is not supported
2007-12-17-InvokeAsm inline asm memory constraint is not supported
2008-02-20-MatchingMem inline asm memory constraint is not supported
2007-04-27-LargeMemObject inline asm syntax is not supported by the TMS34010 parser
2007-12-17-InvokeAsm inline asm text is not TMS34010 assembly
2008-02-20-MatchingMem inline asm syntax is not supported by the TMS34010 parser
2008-08-07-PtrToInt-SmallerInt target rejection: unsupported .data initializer
2010-ZeroSizedArg target rejection: TMS34010 supports only integer (<=64 bit) and pointer arguments
APIntParam target rejection: TMS34010 supports only integer (<=64 bit) and pointer arguments
@@ -30,7 +30,6 @@ APIntSextParam target rejection: TMS34010 supports only integer (<=64 bit) and p
APIntZextParam target rejection: TMS34010 supports only integer (<=64 bit) and pointer arguments
GlobalISel/irtranslator-byte-type target rejection: M2 supports only void/integer(<=64)/pointer returns
add-with-overflow-128 target rejection: TMS34010 supports only integer (<=64 bit) and pointer arguments
addr-label blockaddress values are not supported
annotate target rejection: unsupported .data initializer
bfloat target rejection: M2 supports only void/integer(<=64)/pointer returns
bfloat-op missing libcall lowering (floats/vectors are deferred to M6)
+6
View File
@@ -501,6 +501,12 @@ dialect_flags() {
if printf '%s\n' "$directives" | grep -q -- '-fwrapv'; then
flags="${flags:+$flags }-fwrapv"
fi
# eeprof-1 asks for GCC's function-entry/exit instrumentation hooks via
# dg-options; without them its counters stay zero and it aborts. Forward
# the one flag, per row, exactly as the other dg-options are forwarded.
if printf '%s\n' "$directives" | grep -q -- '-finstrument-functions'; then
flags="${flags:+$flags }-finstrument-functions"
fi
printf '%s' "$flags"
}
+6 -1
View File
@@ -42,6 +42,12 @@
# dynamic alloca size; the lowering's shape assertion aborted on the folded
# constant. The size is now scaled explicitly in both shapes, and the bit
# advance is pinned by m12-dynalloca.ll.
# M12 also removed eeprof-1, the one qualifying one-flag/one-condition abort
# fix: the test's own dg-options asks for -finstrument-functions, but
# dialect_flags() forwarded only -std/-fgnu89-inline/-fwrapv, so no
# __cyg_profile_func_enter/exit calls were emitted and its counters stayed
# zero. dialect_flags() now forwards that flag per row; the unmodified test
# passes at -O0 (the gated mode) and -O2 (verified through the M5 runner).
#
# Categories: compiler-crash, codegen, inline-asm, nested-function, vla,
# data-init, data-vector, data-odd-pointer, abi-*, builtin, libm, memory,
@@ -145,7 +151,6 @@ c-torture/complex-2 abi-sret: aggregate return via an sret pointer is unsupporte
c-torture/complex-5 abi-sret: aggregate return via an sret pointer is unsupported
c-torture/complex-6 abi-sret: aggregate return via an sret pointer is unsupported
c-torture/conversion codegen-float: only 32-bit integer sources are supported for float/double conversions
c-torture/eeprof-1 runtime-abort: test abort (status 0x86)
c-torture/floatunsisf-1 runtime-abort-i64: test abort (status 0x86)
c-torture/memclr memory: linked image exceeds the 45 KiB program / 64 KiB RAM region
c-torture/memcpy-1 output: test writes more than the 16 KiB shim cap