[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / Generic / 2002-04-14-UnexpectedUnsignedType.ll
1 ; RUN: llc < %s
2
3 ; This caused the backend to assert out with:
4 ; SparcInstrInfo.cpp:103: failed assertion `0 && "Unexpected unsigned type"'
5 ;
6
7 declare void @bar(i8*)
8
9 define void @foo() {
10         %cast225 = inttoptr i64 123456 to i8*           ; <i8*> [#uses=1]
11         call void @bar( i8* %cast225 )
12         ret void
13 }