1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=avr | FileCheck %s
4 define i8 @loadx(i8* %0) {
7 ; CHECK-NEXT: mov r26, r24
8 ; CHECK-NEXT: mov r27, r25
10 ; CHECK-NEXT: ld r24, X
13 %2 = tail call i8 asm sideeffect "ld $0, ${1:a}", "=r,x"(i8* %0)
17 define i8 @loady(i8* %0) {
20 ; CHECK-NEXT: push r28
21 ; CHECK-NEXT: push r29
22 ; CHECK-NEXT: mov r28, r24
23 ; CHECK-NEXT: mov r29, r25
25 ; CHECK-NEXT: ld r24, Y
30 %2 = tail call i8 asm sideeffect "ld $0, ${1:a}", "=r,y"(i8* %0)
34 define i8 @loadz(i8* %0) {
37 ; CHECK-NEXT: mov r30, r24
38 ; CHECK-NEXT: mov r31, r25
40 ; CHECK-NEXT: ld r24, Z
43 %2 = tail call i8 asm sideeffect "ld $0, ${1:a}", "=r,z"(i8* %0)
47 define void @storex(i8* %0, i8 %1) {
48 ; CHECK-LABEL: storex:
50 ; CHECK-NEXT: mov r26, r24
51 ; CHECK-NEXT: mov r27, r25
53 ; CHECK-NEXT: st X, r22
56 tail call void asm sideeffect "st ${0:a}, $1", "x,r"(i8* %0, i8 %1)
60 define void @storey(i8* %0, i8 %1) {
61 ; CHECK-LABEL: storey:
63 ; CHECK-NEXT: push r28
64 ; CHECK-NEXT: push r29
65 ; CHECK-NEXT: mov r28, r24
66 ; CHECK-NEXT: mov r29, r25
68 ; CHECK-NEXT: st Y, r22
73 tail call void asm sideeffect "st ${0:a}, $1", "y,r"(i8* %0, i8 %1)
77 define void @storez(i8* %0, i8 %1) {
78 ; CHECK-LABEL: storez:
80 ; CHECK-NEXT: mov r30, r24
81 ; CHECK-NEXT: mov r31, r25
83 ; CHECK-NEXT: st Z, r22
86 tail call void asm sideeffect "st ${0:a}, $1", "z,r"(i8* %0, i8 %1)