mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
dd107226b3
Patch by Kristina Bessonova! Differential Revision: https://reviews.llvm.org/D54582 llvm-svn: 347040
23 lines
505 B
LLVM
23 lines
505 B
LLVM
; RUN: llc < %s | FileCheck %s
|
|
|
|
target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16-a0:16:16"
|
|
target triple = "msp430---elf"
|
|
|
|
declare i32 @direct(i32 %a)
|
|
|
|
define i32 @test_direct(i32 %a) nounwind {
|
|
; CHECK-LABEL: test_direct:
|
|
; CHECK: call #direct
|
|
%1 = call i32 @direct(i32 %a)
|
|
ret i32 %1
|
|
}
|
|
|
|
define i16 @test_indirect(i16 (i16)* %a, i16 %b) nounwind {
|
|
; CHECK-LABEL: test_indirect:
|
|
; CHECK: mov r12, r14
|
|
; CHECK: mov r13, r12
|
|
; CHECK: call r14
|
|
%1 = call i16 %a(i16 %b)
|
|
ret i16 %1
|
|
}
|