[M68k][MC] Make immediate operands relocatable
authorMin-Yih Hsu <minyihh@uci.edu>
Tue, 11 Oct 2022 05:07:48 +0000 (22:07 -0700)
committerMin-Yih Hsu <minyihh@uci.edu>
Wed, 25 Jan 2023 05:59:24 +0000 (21:59 -0800)
commitb3de316420374536def0cc3bfb7d317db9fc830c
treea65a15a529fd7dacae6c03471ab9d92175898908
parentc40b158ea003ddb741d816ad4a8a38fddc4004e9
[M68k][MC] Make immediate operands relocatable

Sometimes memory addresses are treated as immediate values. Thus
immediate operands have to be relocatable.

Differential Revision: https://reviews.llvm.org/D137902
llvm/lib/Target/M68k/M68kInstrFormats.td
llvm/test/MC/M68k/Relocations/data-abs.s