blob: d3823f9869bffc28830532da879ff272fd935809 [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"
7target triple = "wasm32-unknown-unknown-wasm"
8
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}