summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb/inlineasm-thumb.ll
blob: 2547ce8d6bebc50497577823f9fe727eaf87e36e (plain)
1
2
3
4
5
6
7
8
; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s

define i32 @t1(i32 %x, i32 %y) nounwind {
entry:
  ; CHECK: mov r0, r12
  %0 = tail call i32 asm "mov $0, $1", "=l,h"(i32 %y) nounwind
  ret i32 %0
}