HomePhabricator

[mips] Implement .cpadd directive

Authored by atanasyan on Mar 22 2020, 10:20 AM.

Description

[mips] Implement .cpadd directive

This directive inserts code to add $gp to the argument's register when
support for position independent code is enabled.

For example, this code:

.cpadd $4

expands to:

addu $4, $4, $gp

Details

Committed
atanasyanMar 22 2020, 1:34 PM
Parents
rG9bbddfbeaabd: [mips] Implement sne pseudo instruction
Branches
Unknown
Tags
Unknown