blob: 58ea50040a71109fbf830134364fb7ec3e07203e [file] [log] [blame]
Dylan McKay5d0233b2016-12-10 10:16:13 +00001; RUN: llc < %s -mattr=avr6 | 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}