summaryrefslogtreecommitdiff
path: root/test/CodeGen/MSP430/asm-clobbers.ll
blob: 216a3fe401898fdc858647fcb2d7226cdc620ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; 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.w r10
  call void asm sideeffect "", "~{r10}"()
; CHECK: pop.w r10
  ret void
}