1; RUN: llc < %s -O0 2; PR36564 3; PR37546 4 5; Test that fast-isel properly copes with i24 arguments and return types. 6 7target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" 8target triple = "wasm32-unknown-unknown" 9 10; CHECK-LABEL: add: 11; CHECK-NEXT: .param i32, i32{{$}} 12; CHECK-NEXT: .result i32{{$}} 13; CHECK-NEXT: get_local $push2=, 0{{$}} 14; CHECK-NEXT: get_local $push1=, 1{{$}} 15; CHECK-NEXT: i32.add $push0=, $pop2, $pop1{{$}} 16; CHECK-NEXT: end_function 17define i24 @add(i24 %x, i24 %y) { 18 %z = add i24 %x, %y 19 ret i24 %z 20} 21 22; CHECK-LABEL: return_zero: 23; CHECK-NEXT: .result i32{{$}} 24; CHECK-NEXT: i32.const $push0=, 0{{$}} 25; CHECK-NEXT: end_function 26define i24 @return_zero() { 27 ret i24 0 28} 29