1 ; RUN: llc < %s -asm-verbose=false -verify-machineinstrs -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers -mattr=+multivalue | FileCheck %s
3 ; Test that the multivalue attribute is accepted
4 ; TODO(tlively): implement multivalue
6 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
7 target triple = "wasm32-unknown-unknown"
9 %pair = type { i32, i32 }
10 %packed_pair = type <{ i32, i32 }>
13 ; CHECK-NEXT: sret (i32, i32, i32) -> ()
14 define %pair @sret(%pair %p) {
18 ; CHECK-LABEL: packed_sret:
19 ; CHECK-NEXT: packed_sret (i32, i32, i32) -> ()
20 define %packed_pair @packed_sret(%packed_pair %p) {
24 ; CHECK-LABEL: .section .custom_section.target_features
26 ; CHECK-NEXT: .int8 43
27 ; CHECK-NEXT: .int8 10
28 ; CHECK-NEXT: .ascii "multivalue"