blob: 48618e7d0219167c3d9f3e255bd8d4e017a19f06 [file] [log] [blame]
Dan Gohman4576dc02018-04-17 20:46:42 +00001; RUN: llc < %s -O0
2; PR36564
3
4; Test that fast-isel properly copes with i24 arguments and return types.
5
6target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
Sam Clegga5908002018-05-10 17:49:11 +00007target triple = "wasm32-unknown-unknown"
Dan Gohman4576dc02018-04-17 20:46:42 +00008
9define i24 @add(i24 %x, i24 %y) {
10 %z = add i24 %x, %y
11 ret i24 %z
12}
13
14define i24 @return_zero() {
15 ret i24 0
16}