Fix Windows build: replace __func__ with LLVM_FUNCTION_NAME
[oota-llvm.git] / test / CodeGen / Hexagon / calling-conv-2.ll
1 ; RUN: llc -march=hexagon -mcpu=hexagonv5 <%s | \
2 ; RUN:   FileCheck %s --check-prefix=CHECK-ONE
3
4 %struct.test_struct = type { i32, i8, i64 }
5
6 ; CHECK-ONE:    r1 = #45
7 define void @foo(%struct.test_struct* noalias nocapture sret %agg.result, i32 %a) #0 {
8 entry:
9   call void @bar(%struct.test_struct* sret %agg.result, i32 45) #2
10   ret void
11 }
12
13 declare void @bar(%struct.test_struct* sret, i32) #1