Page MenuHomeFreeBSD

Use a single 'ld' to read the jmpbuf magic values instead of 'la; ld'.
ClosedPublic

Authored by jhb on Dec 3 2019, 10:18 PM.
Tags
None
Referenced Files
F107284173: D22656.diff
Sat, Jan 11, 11:27 PM
Unknown Object (File)
Dec 11 2024, 10:00 AM
Unknown Object (File)
Dec 6 2024, 7:15 AM
Unknown Object (File)
Nov 30 2024, 8:23 AM
Unknown Object (File)
Nov 25 2024, 3:06 AM
Unknown Object (File)
Nov 25 2024, 3:06 AM
Unknown Object (File)
Nov 25 2024, 12:18 AM
Unknown Object (File)
Nov 24 2024, 10:36 PM
Subscribers

Details

Summary

This saves an instruction in each case.

Test Plan
  • tests in /usr/tests/lib/libc/setjmp pass

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 27923
Build 26092: arc lint + arc unit

Event Timeline

This is particularly beneficial as, for PIC code, which this will almost always be, la expands to auipc/ld to index the GOT, so we save a level of unnecessary indirection too. (This could have been lla instead to save the indirection but still take 2 instructions just to do the address calculation.)

This revision is now accepted and ready to land.Dec 4 2019, 2:40 PM