diff options
author | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-09 07:49:14 +0000 |
---|---|---|
committer | Dylan McKay <dylanmckay34@gmail.com> | 2016-12-09 07:49:14 +0000 |
commit | 18ae0f68f80ec9a66ed609521f3363e47558fe71 (patch) | |
tree | 51f05d7756e3af932e198e279686ebeebc7e4586 /llvm/lib | |
parent | a5d49dfbb3e71b1856c9795fb7ca761dbf3d1b84 (diff) | |
download | bcm5719-llvm-18ae0f68f80ec9a66ed609521f3363e47558fe71.tar.gz bcm5719-llvm-18ae0f68f80ec9a66ed609521f3363e47558fe71.zip |
[AVR] Use a more appropriate integer type for wide IN/OUT instructions
We could previously select an integer which would hit an assertion error
in pseudo expansion.
The new type will also generate the appropriate fixups if needed, which
wasn't done beforehand.
llvm-svn: 289192
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AVR/AVRInstrInfo.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AVR/AVRInstrInfo.td b/llvm/lib/Target/AVR/AVRInstrInfo.td index 56673020c0e..bc66379ab70 100644 --- a/llvm/lib/Target/AVR/AVRInstrInfo.td +++ b/llvm/lib/Target/AVR/AVRInstrInfo.td @@ -1502,7 +1502,7 @@ isReMaterializable = 1 in [(set i8:$dst, (load ioaddr8:$src))]>; def INWRdA : Pseudo<(outs DREGS:$dst), - (ins i16imm:$src), + (ins imm_port6:$src), "inw\t$dst, $src", [(set i16:$dst, (load ioaddr16:$src))]>; } @@ -1514,7 +1514,7 @@ def OUTARr : FIOARr<(outs), [(store i8:$src, ioaddr8:$dst)]>; def OUTWARr : Pseudo<(outs), - (ins i16imm:$dst, DREGS:$src), + (ins imm_port6:$dst, DREGS:$src), "outw\t$dst, $src", [(store i16:$src, ioaddr16:$dst)]>; |