AArch64 harness: `__orr_extended3`/`__orr_extended4` clobber lists miss x8/x7

Aperta
#413 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c, rust

Direzione di ricerca

Read harness/tsffs-gcc-aarch64.h at the two locations linked in the issue and compare the AArch64 clobber lists with the registers written by each macro; the issue notes that the ARM32 versions list all written registers. Check how tsffs.h is generated, update the affected declarations, and verify the generated header reflects them. The issue says the bug was not reproduced under SIMICS, so completion should be based on the clobber declarations and generated output.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Where

Problem
__orr_extended3 writes x10, x9, x8 and __orr_extended4 writes x10, x9, x8, x7, but both declare only "x10", "x9" as clobbered (arm32 lists all).

Impact
The compiler may place an input in x8/x7 that is overwritten before use (e.g. max size replaced by size_ptr), or keep a live value there across the macro.

Suggested fix
Add "x8" (and "x7") to the clobbers and regenerate tsffs.h. Also consider changing __orr_extended1's "g" constraint to "r".

Status
Confirmed by reading the code at 79972db. Found by reading the code; not reproduced under SIMICS.

Lingua principale
Rust
Stelle
335
Fork
26
Merge medio
1g 50m
PR unite (30g)
12

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di intel/tsffs

Tutte le issue di intel/tsffs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.