i accidentally got myself rambled at by a coworker who used to work on MIPS and now i'm terrified
IIRC "add" is very useful for ubsan-like purposes. It traps on signed overflow.
-
-
yeah, though i don't know if ubsan actually uses it or if it just takes the regular path that it does everywhere else
-
I suspect it doesn't because they want to call insecure library code to report errors rather than immediately faulting out. :-(
-
Perhaps as importantly 'trap on X condition' instructions make out of order machines sad
-
I'd be happy with "undefined state at the current privilege level if a trap occurs", i.e. no choice but to terminate the process.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.