diff options
Diffstat (limited to 'test/CodeGen/MSP430/asm-clobbers.ll')
-rw-r--r-- | test/CodeGen/MSP430/asm-clobbers.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/MSP430/asm-clobbers.ll b/test/CodeGen/MSP430/asm-clobbers.ll new file mode 100644 index 0000000..216a3fe --- /dev/null +++ b/test/CodeGen/MSP430/asm-clobbers.ll @@ -0,0 +1,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 +} |