[LLVMdev] Patch - Allow calls that return i8 or i16. On SPU.

Kalle Raiskila kalle.raiskila at nokia.com
Mon Apr 19 02:31:32 PDT 2010


either function call in this code makes llc (targeting SPU) assert:

declare i8 @return_i8()
declare i16 @return_i16()
define void @testfunc() {
   %rv1 = call i8 @return_i8()
   %rv2 = call i16 @return_i16()
   ret void

Attached is a patch to fix it, and remove some related redundant code.
Does this rather trivial fix warrant a test case?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: spu_call_i8_i16.patch
Type: text/x-patch
Size: 996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100419/6605c8db/attachment.bin>

More information about the llvm-dev mailing list