summaryrefslogtreecommitdiff
path: root/test/CodeGen/AVR/store-undef.ll
blob: 1f395b331ca2668610bb2998dc0f69fb2af28c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -march=avr | FileCheck %s

; This test checks that we can successfully lower a store
; to an undefined pointer.

; CHECK-LABEL: foo
define void @foo() {

  ; CHECK:      ldi [[SRC:r[0-9]+]], 0
  ; CHECK-NEXT: st [[PTRREG:X|Y|Z]], [[SRC]]
  store i8 0, i8* undef, align 4
  ret void
}