sim: bfin: fix sign extension in dsp insns with MM flag
[deliverable/binutils-gdb.git] / include / opcode / bfin.h
index 30bb90d26c5c85f5c7f9c4827342a91c77ea2446..26f019381b30f4f6c717bdb92148ff7c38a85442 100755 (executable)
@@ -53,6 +53,12 @@ static inline int is_macmod_hmove (int x)
          || (x == M_TFU) || (x == M_S2RND) || (x == M_ISS2) || (x == M_IH);
 }
 
+static inline int is_macmod_signed (int x)
+{
+  return (x == 0) || (x == M_IS) || (x == M_T) || (x == M_S2RND)
+         || (x == M_ISS2) || (x == M_IH) || (x == M_W32);
+}
+
 /*   dsp32mac
 +----+----+---+---|---+----+----+---|---+---+---+---|---+---+---+---+
 | 1  | 1  | 0 | 0 |.M.| 0  | 0  |.mmod..........|.MM|.P.|.w1|.op1...|
This page took 0.028805 seconds and 4 git commands to generate.