1 ; RUN: llc < %s -march=avr | FileCheck %s
6 %1 = load i8, i8* inttoptr (i16 40 to i8*)
10 define i16 @read16() {
14 %1 = load i16, i16* inttoptr (i16 40 to i16*)
18 define i32 @read32() {
24 %1 = load i32, i32* inttoptr (i16 40 to i32*)
28 define i64 @read64() {
38 %1 = load i64, i64* inttoptr (i16 40 to i64*)
42 define void @write8() {
45 store i8 22, i8* inttoptr (i16 40 to i8*)
49 define void @write16() {
50 ; CHECK-LABEL: write16
53 store i16 1234, i16* inttoptr (i16 40 to i16*)
57 define void @write32() {
58 ; CHECK-LABEL: write32
63 store i32 12345678, i32* inttoptr (i16 40 to i32*)
67 define void @write64() {
68 ; CHECK-LABEL: write64
77 store i64 1234567891234567, i64* inttoptr (i16 40 to i64*)
84 %1 = load i8, i8* inttoptr (i16 40 to i8*)
86 store i8 %or, i8* inttoptr (i16 40 to i8*)
93 %1 = load volatile i8, i8* inttoptr (i16 40 to i8*)
95 store volatile i8 %and, i8* inttoptr (i16 40 to i8*)