From f8af5cf600354830d4ccf59732403f0f073eccb9 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 22 Dec 2013 00:04:03 +0000 Subject: Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): https://llvm.org/svn/llvm-project/llvm/branches/release_34@197841 --- test/CodeGen/MSP430/transient-stack-alignment.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/CodeGen/MSP430/transient-stack-alignment.ll (limited to 'test/CodeGen/MSP430/transient-stack-alignment.ll') diff --git a/test/CodeGen/MSP430/transient-stack-alignment.ll b/test/CodeGen/MSP430/transient-stack-alignment.ll new file mode 100644 index 0000000000000..cca83509cf4c4 --- /dev/null +++ b/test/CodeGen/MSP430/transient-stack-alignment.ll @@ -0,0 +1,17 @@ +; 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" } -- cgit v1.3