search for: retcc_test

Displaying 1 result from an estimated 1 matches for "retcc_test".

2013 Apr 24
1
[LLVMdev] Backend : What am I missing here
...lign 4 %arrayidx = getelementptr inbounds i8* %1, i32 0 store i8 %call, i8* %arrayidx, align 1 ret void } declare signext i8 @cnv(i8*) Now originally (at the time I hadn't added 8/16 bit register support) I had made the calling convention return values promote i8 & i16 to i32 : def RetCC_test : CallingConv<[ // Promote i8 returns to i32. CCIfType<[i8], CCPromoteToType<i32>>, // Promote i16 returns to i32. CCIfType<[i16], CCPromoteToType<i32>>, // i32 are returned in register R0 CCIfType<[i32], CCAssignToReg<[R0L]>> ]>; I've now...