mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-26 18:26:51 -04:00
695940b0f1
Reapply r346374 with the fixes for modules build. Original 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. Patch by Michael Skvortsov! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346948 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
261 B
LLVM
14 lines
261 B
LLVM
; RUN: llc < %s | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-p:16:16-i32:16:32-a:16-n8:16"
|
|
target triple = "msp430---elf"
|
|
|
|
define void @test() {
|
|
entry:
|
|
; CHECK-LABEL: test:
|
|
; CHECK: push r10
|
|
call void asm sideeffect "", "~{r10}"()
|
|
; CHECK: pop r10
|
|
ret void
|
|
}
|