diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-04-13 10:28:01 +0100 |
---|---|---|
committer | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-04-13 10:47:26 +0100 |
commit | 14f27ee6c97c585018882ac8f1f5f2d64618ba66 (patch) | |
tree | d86d20c6c095b1b8aaf3bdce6bd52a04c1c5f490 /gcc/fortran/resolve.c | |
parent | a1ccbae63cdf25b8ff66da18ed0d081cb9411ccf (diff) | |
download | gcc-14f27ee6c97c585018882ac8f1f5f2d64618ba66.zip gcc-14f27ee6c97c585018882ac8f1f5f2d64618ba66.tar.gz gcc-14f27ee6c97c585018882ac8f1f5f2d64618ba66.tar.bz2 |
MSP430: Fix memory offsets used by %C and %D asm output operand modifiers
The %C and %D operand modifiers are supposed to access the 3rd and 4th
words of a 64-bit value, so for memory references they need to offset
the given address by 4 and 6 bytes respectively.
gcc/ChangeLog:
2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/msp430.c (msp430_print_operand): Offset a %C memory
reference by 4 bytes, and %D memory reference by 6 bytes.
gcc/testsuite/ChangeLog:
2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* gcc.target/msp430/operand-modifiers.c: New test.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions