Files
clang-p2996/llvm/test/CodeGen/AVR/pseudo/OUTWARr.mir
Ben Shi 2a528760bf [AVR] Fix an issue of writing 16-bit ports
For 16-bit ports, the normal devices reqiure writing high byte first
and then low byte. But the XMEGA devices require the reverse order.

Fixes https://github.com/llvm/llvm-project/issues/58395

Reviewed By: aykevl, jacquesguan

Differential Revision: https://reviews.llvm.org/D141752
2023-04-17 15:35:33 +08:00

36 lines
984 B
YAML

# RUN: llc -O0 -run-pass=avr-expand-pseudo -mtriple=avr -mcpu=attiny11 %s -o - \
# RUN: | FileCheck %s
# RUN: llc -O0 -run-pass=avr-expand-pseudo -mtriple=avr -mcpu=atmega328 %s -o - \
# RUN: | FileCheck %s
# RUN: llc -O0 -run-pass=avr-expand-pseudo -mtriple=avr -mcpu=attiny817 %s -o - \
# RUN: | FileCheck --check-prefix=XMEGA %s
# RUN: llc -O0 -run-pass=avr-expand-pseudo -mtriple=avr -mcpu=atxmega64a1 %s -o - \
# RUN: | FileCheck --check-prefix=XMEGA %s
# RUN: llc -O0 -run-pass=avr-expand-pseudo -mtriple=avr -mcpu=atxmega256a3u %s -o - \
# RUN: | FileCheck --check-prefix=XMEGA %s
--- |
target triple = "avr--"
define void @test() {
entry:
ret void
}
...
---
name: test
body: |
bb.0.entry:
liveins: $r15r14
; CHECK-LABEL: test
; CHECK: OUTARr 32, $r15
; CHECK-NEXT: OUTARr 31, $r14
; XMEGA-LABEL: test
; XMEGA: OUTARr 31, $r14
; XMEGA-NEXT: OUTARr 32, $r15
OUTWARr 31, $r15r14
...