mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
5fedd08c09
Summary: This change implements assembler parser, code emitter, ELF object writer and disassembler for the MSP430 ISA. Also, more instruction forms are added to the target description. Reviewers: asl Reviewed By: asl Subscribers: pftbest, krisb, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D53661 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346374 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
407 B
LLVM
18 lines
407 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 #2, r1
|
|
%1 = alloca i8, align 1
|
|
; CHECK-NEXT: clr.b 1(r1)
|
|
store i8 0, i8* %1, align 1
|
|
; CHECK-NEXT: add #2, r1
|
|
; CHECK-NEXT: ret
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind "no-frame-pointer-elim"="false" }
|