[PATCH] D15703: [AVR] Add instruction definitions

Roel Jordans via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 30 05:25:29 PST 2016


rjordans added inline comments.

================
Comment at: lib/Target/AVR/AVRInstrInfo.td:872
@@ +871,3 @@
+  let Uses = [SREG] in
+  def CPIRdK : FRdK<0b0011,
+                    (outs i8imm:$k),
----------------
This instruction should be defined differently:


```
def CPIRdK : FRdK<0b0011,
                  (outs),
                  (ins GPR8:$src, i8imm:$k),
                  "cpi\t$src, $k",
                  [(AVRcmp GPR8:$src, imm:$k), (implicit SREG)]>;
```


http://reviews.llvm.org/D15703





More information about the llvm-commits mailing list