summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/inlineasm4.ll
blob: a117cd2618f914743fb292664ba68375e3795b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s

define double @f(double %x) {
entry:
  %0 = tail call double asm "mov     ${0:R}, #4\0A", "=&r"()
  ret double %0
; CHECK-LABEL: f:
; CHECK:	mov     r1, #4
}

define double @g(double %x) {
entry:
  %0 = tail call double asm "mov     ${0:Q}, #4\0A", "=&r"()
  ret double %0
; CHECK-LABEL: g:
; CHECK:	mov     r0, #4
}