linux-packaging-mono/external/llvm/test/CodeGen/MSP430/transient-stack-alignment.ll
Xamarin Public Jenkins (auto-signing) 8625704ad8 Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
2018-10-25 08:34:57 +00:00

18 lines
415 B
LLVM

; RUN: llc < %s | FileCheck %s
target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16-a0:16:16"
target triple = "msp430---elf"
define void @test() #0 {
; CHECK-LABEL: test:
; CHECK: sub.w #2, r1
%1 = alloca i8, align 1
; CHECK-NEXT: mov.b #0, 1(r1)
store i8 0, i8* %1, align 1
; CHECK-NEXT: add.w #2, r1
; CHECK-NEXT: ret
ret void
}
attributes #0 = { nounwind "no-frame-pointer-elim"="false" }