Dylan McKay | 5d0233b | 2016-12-10 10:16:13 +0000 | [diff] [blame^] | 1 | ; 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 | ||||
7 | define 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 | } |