brintos

brintos / llvm-project-archived public Read only

0
0
Text · 498 B · 4d3b7e3 Raw
23 lines · plain
1; RUN: llc < %s | FileCheck %s2 3target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16-a0:16:16"4target triple = "msp430---elf"5 6declare i32 @direct(i32 %a)7 8define i32 @test_direct(i32 %a) nounwind {9; CHECK-LABEL: test_direct:10; CHECK: call #direct11  %1 = call i32 @direct(i32 %a)12  ret i32 %113}14 15define i16 @test_indirect(ptr %a, i16 %b) nounwind {16; CHECK-LABEL: test_indirect:17; CHECK: mov	r12, r1418; CHECK: mov	r13, r1219; CHECK: call	r1420  %1 = call i16 %a(i16 %b)21  ret i16 %122}23