Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit 26896ec

Browse files
author
Dylan McKay
committed
[AVR] Fixed earlyclobber typo causing bug.
1 parent cda2131 commit 26896ec

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/Target/AVR/AVRInstrInfo.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ Defs = [R1, R0, SREG] in
480480

481481
// The earlyclobber flag is required because the pseudo expansion needs $rd
482482
// and $src to have different registers.
483-
let Constraints = "@earlyclobber $src" in
483+
let Constraints = "@earlyclobber $rd" in
484484
def MULWRdRr : Pseudo<(outs DREGS:$rd),
485485
(ins DREGS:$src, DREGS:$rr),
486486
"mulw\t$rd, $src, $rr",

test/CodeGen/AVR/mul.ll

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
; RUN: llc -mattr=mul,movw < %s -march=avr | FileCheck %s
2-
; XFAIL: *
32

43
define i8 @mult8(i8 %a, i8 %b) {
54
; CHECK-LABEL: mult8:

0 commit comments

Comments
 (0)