1 ; RUN: llc < %s | FileCheck %s
2 target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
3 target triple = "msp430-generic-generic"
5 ; Test that correct register names are accepted *inside* inline asm listings.
6 ; Tested with PUSH instruction since it does not support memory operands.
8 define void @accepted_rN() nounwind {
9 ; CHECK-LABEL: accepted_rN
10 call void asm sideeffect "push r0", ""() nounwind
12 call void asm sideeffect "push r1", ""() nounwind
14 call void asm sideeffect "push r2", ""() nounwind
16 call void asm sideeffect "push r3", ""() nounwind
18 call void asm sideeffect "push r4", ""() nounwind
20 call void asm sideeffect "push r5", ""() nounwind
22 call void asm sideeffect "push r6", ""() nounwind
24 call void asm sideeffect "push r7", ""() nounwind
26 call void asm sideeffect "push r8", ""() nounwind
28 call void asm sideeffect "push r9", ""() nounwind
30 call void asm sideeffect "push r10", ""() nounwind
32 call void asm sideeffect "push r11", ""() nounwind
34 call void asm sideeffect "push r12", ""() nounwind
36 call void asm sideeffect "push r13", ""() nounwind
38 call void asm sideeffect "push r14", ""() nounwind
40 call void asm sideeffect "push r15", ""() nounwind
45 define void @accepted_reg_aliases() nounwind {
46 ; CHECK-LABEL: accepted_reg_aliases
47 ; Ensure register aliases are renamed as expected
48 call void asm sideeffect "push pc", ""() nounwind
50 call void asm sideeffect "push sp", ""() nounwind
52 call void asm sideeffect "push sr", ""() nounwind
54 call void asm sideeffect "push cg", ""() nounwind
56 call void asm sideeffect "push fp", ""() nounwind