[PATCH] D69849: [mips] Implement Octeon+ `saa` and `saad` instructions

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 10:38:21 PST 2019


Petar.Avramovic added a comment.

Missing test for SaaAddr and SaadAddr.



================
Comment at: llvm/lib/Target/Mips/MipsSubtarget.cpp:76
       NoABICalls(false), Abs2008(false), IsFP64bit(false), UseOddSPReg(true),
-      IsNaN2008bit(false), IsGP64bit(false), HasVFPU(false), HasCnMips(false),
+      IsNaN2008bit(false), IsGP64bit(false), HasVFPU(false),
+      HasCnMips(false), HasCnMipsP(false),
----------------
clang format


================
Comment at: llvm/test/MC/Mips/macro-saa.s:9
+# MIPS32:      addiu $1, $5, 8    # encoding: [0x24,0xa1,0x00,0x08]
+# MIPS32-NEXT: saa   $2, ($1)     # encoding: [0x70,0x22,0x00,0x18]
+
----------------
I didn't go through patch in detail, just a quick question here:
as complains that octeon+ requires mips64r2 (missing check in Subtarget constructor?)
but saa instruction itself does not require mips64r2?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69849/new/

https://reviews.llvm.org/D69849





More information about the llvm-commits mailing list