diff options
author | Kai Nacke <kai@redstar.de> | 2022-08-11 22:43:00 -0400 |
---|---|---|
committer | Kai Nacke <kai@redstar.de> | 2022-11-13 11:07:44 -0500 |
commit | 23736b1ee0f52a24872693f64da6124fac6100eb (patch) | |
tree | 3611b5eddf0bb10f9fd8a942208a62ed6a189106 | |
parent | 7de2c65d4507e373eb1e507839431e17e73d7f30 (diff) | |
download | llvm-23736b1ee0f52a24872693f64da6124fac6100eb.zip llvm-23736b1ee0f52a24872693f64da6124fac6100eb.tar.gz llvm-23736b1ee0f52a24872693f64da6124fac6100eb.tar.bz2 |
[m88k] Snall changes in M88kInstrInfo.td
-rw-r--r-- | llvm/lib/Target/M88k/M88kInstrInfo.td | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/Target/M88k/M88kInstrInfo.td b/llvm/lib/Target/M88k/M88kInstrInfo.td index 1044d5a..6556164 100644 --- a/llvm/lib/Target/M88k/M88kInstrInfo.td +++ b/llvm/lib/Target/M88k/M88kInstrInfo.td @@ -482,9 +482,8 @@ multiclass LoadIndexImm<bits<4> Func, string OpcStr> { [(set (i64 GPR64:$rd), (load (ADDRri (i32 GPR:$rs1), imm32zx16:$si16)))]>; } -multiclass StoreIndexImm { +multiclass StoreIndexImm<string OpcStr> { defvar Func = 0b0010; - defvar OpcStr = "st"; def riw : F_LS<Func, /*ty=*/ 0b01, (outs), (ins GPR:$rd, GPR:$rs1, imm32zx16:$si16), OpcStr, @@ -827,17 +826,13 @@ let mayLoad = 1 in { defm LDA : LoadAddr<"lda">; let mayStore = 1 in { - defm ST : StoreIndexImm; + defm ST : StoreIndexImm<"st">; defm ST : StoreUnscaled<0b0010, "st">; defm ST : StoreScaled<0b0010, "st">; } defm XMEM : Xmem<>; -//def : Pat<(load (ADDRri GPR:$rs1, imm32zx16:$si16)), -// (LDriw GPR:$rs1, imm32zx16:$si16)>; - - // GlobalAddress, ExternalSymbol, Jumptable, ConstantPool def : Pat<(m88k_hi tglobaladdr:$dst), (ORriu (i32 R0), tglobaladdr:$dst)>; |