case M_TNE_I:
s = "tne";
trap:
- used_at = 1;
- load_register (AT, &imm_expr, GPR_SIZE == 64);
- macro_build (NULL, s, "s,t", op[0], AT);
+ if (imm_expr.X_add_number != 0)
+ {
+ used_at = 1;
+ load_register (AT, &imm_expr, GPR_SIZE == 64);
+ macro_build (NULL, s, "s,t", op[0], AT);
+ }
+ else
+ macro_build (NULL, s, "s,t", op[0], ZERO);
break;
case M_TRUNCWS:
--- /dev/null
+#objdump: -dr
+#name: Condition Trap convert IMM0 to REG0 (MIPSr6)
+#as: -32
+
+.*: +file format .*
+
+Disassembly of section \.text:
+
+00000000 <f>:
+ 0: 00c00034 teq a2,zero
+ 4: 00c00030 tge a2,zero
+ 8: 00c00031 tgeu a2,zero
+ c: 00c00032 tlt a2,zero
+ 10: 00c00033 tltu a2,zero
+ 14: 00c00036 tne a2,zero
+ \.\.\.