1 ; RUN: llc -O0 < %s -march=avr | FileCheck %s
3 ; CHECK-LABEL: read_sp:
6 define i16 @read_sp() {
8 %sp = call i16 @llvm.read_register.i16(metadata !0)
12 ; CHECK-LABEL: read_r0:
14 define i8 @read_r0() {
16 %r0 = call i8 @llvm.read_register.i8(metadata !1)
20 ; CHECK-LABEL: read_r1:
22 define i8 @read_r1() {
24 %r1 = call i8 @llvm.read_register.i8(metadata !2)
28 ; CHECK-LABEL: read_r1r0:
31 define i16 @read_r1r0() {
33 %r1r0 = call i16 @llvm.read_register.i16(metadata !1)
37 declare i16 @llvm.read_register.i16(metadata)
38 declare i8 @llvm.read_register.i8(metadata)