2018-03-07 03:15:58 +08:00
|
|
|
; RUN: llc -march=hexagon < %s | FileCheck %s
|
2015-05-13 04:13:10 +08:00
|
|
|
|
|
|
|
%struct.test_struct = type { i32, i8, i64 }
|
|
|
|
|
2018-03-07 03:15:58 +08:00
|
|
|
; CHECK: r1 = #45
|
2015-05-13 04:13:10 +08:00
|
|
|
define void @foo(%struct.test_struct* noalias nocapture sret %agg.result, i32 %a) #0 {
|
|
|
|
entry:
|
2018-03-07 03:15:58 +08:00
|
|
|
call void @bar(%struct.test_struct* sret %agg.result, i32 45) #0
|
2015-05-13 04:13:10 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2018-03-07 03:15:58 +08:00
|
|
|
declare void @bar(%struct.test_struct* sret, i32) #0
|
|
|
|
|
|
|
|
attributes #0 = { nounwind }
|