1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=avr %s -start-before=avr-isel -o - | FileCheck %s
4 define void @test(i16 %x, ptr addrspace(1) %o) {
7 ; CHECK-NEXT: mov r30, r22
8 ; CHECK-NEXT: mov r31, r23
9 ; CHECK-NEXT: std Z+11, r25
10 ; CHECK-NEXT: std Z+10, r24
12 %int = ptrtoint ptr addrspace(1) %o to i16
13 %or = or disjoint i16 %int, 10
14 %addr = inttoptr i16 %or to ptr addrspace(1)
15 store i16 %x, ptr addrspace(1) %addr