This saves an instruction in each case.
Details
Details
- tests in /usr/tests/lib/libc/setjmp pass
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 27923 Build 26092: arc lint + arc unit
Event Timeline
Comment Actions
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.)