• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -O0 -run-pass=avr-relax-mem %s -o - | FileCheck %s
2
3--- |
4  target triple = "avr--"
5  define void @test() {
6  entry:
7    ret void
8  }
9...
10
11---
12name:            test
13body: |
14  bb.0.entry:
15
16    ; CHECK-LABEL: test
17
18    ; We shouldn't expand things which already have 6-bit imms.
19    ; CHECK: STDWPtrQRr $r29r28, 63, $r1r0
20    STDWPtrQRr $r29r28, 63, $r1r0
21
22    ; We shouldn't expand things which already have 6-bit imms.
23    ; CHECK-NEXT: STDWPtrQRr $r29r28, 0, $r1r0
24    STDWPtrQRr $r29r28, 0, $r1r0
25
26    ; CHECK-NEXT: PUSHWRr $r29r28, implicit-def $sp, implicit $sp
27    ; CHECK-NEXT: $r29r28 = SBCIWRdK $r29r28, -64, implicit-def $sreg, implicit $sreg
28    ; CHECK-NEXT: STWPtrRr $r29r28, $r1r0
29    ; CHECK-NEXT: POPWRd $r29r28, implicit-def $sp, implicit $sp
30    STDWPtrQRr $r29r28, 64, $r1r0
31...
32