1; RUN: llc < %s -asm-verbose=false | FileCheck %s
2
3; Test that the "returned" attribute works with i128 types.
4; PR36128
5
6target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
7target triple = "wasm32-unknown-unknown"
8
9declare i128 @bar(i128 returned)
10
11define i128 @foo(i128) {
12  %r = tail call i128 @bar(i128 %0)
13  ret i128 %r
14}
15
16; CHECK-LABEL: foo:
17; CHECK-NEXT: .param  	i32, i64, i64
18; CHECK-NOT:  .result
19
20; CHECK: .functype	bar, void, i32, i64, i64
21