llvm/test/CodeGen/AVR/store-undef.ll
Dylan McKay c2e1f83474 [AVR] Explicitly set the target in all CodeGen tests
This seems to have caused failures on the buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289324 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-10 11:23:16 +00:00

14 lines
300 B
LLVM

; 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
}