1; RUN: llc < %s -march=avr | FileCheck %s
2
3; This test checks that we can successfully lower a store
4; to an undefined pointer.
5
6; CHECK-LABEL: foo
7define void @foo() {
8
9  ; CHECK:      ldi [[SRC:r[0-9]+]], 0
10  ; CHECK-NEXT: st [[PTRREG:X|Y|Z]], [[SRC]]
11  store i8 0, i8* undef, align 4
12  ret void
13}
14