1 ; RUN: llc < %s -O0 -wasm-keep-registers
5 ; Test that fast-isel properly copes with i24 arguments and return types.
7 target triple = "wasm32-unknown-unknown"
10 ; CHECK-NEXT: .functype add (i32, i32) -> (i32){{$}}
11 ; CHECK-NEXT: local.get $push2=, 0{{$}}
12 ; CHECK-NEXT: local.get $push1=, 1{{$}}
13 ; CHECK-NEXT: i32.add $push0=, $pop2, $pop1{{$}}
14 ; CHECK-NEXT: end_function
15 define i24 @add(i24 %x, i24 %y) {
20 ; CHECK-LABEL: return_zero:
21 ; CHECK-NEXT: .functype return_zero () -> (i32){{$}}
22 ; CHECK-NEXT: i32.const $push0=, 0{{$}}
23 ; CHECK-NEXT: end_function
24 define i24 @return_zero() {