search for: avrtargetlowering

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

Did you mean: armtargetlowering
2019 Mar 02
3
Legalising seems to lose critical information needed for lowering return values properly?
...r passing and returning of arguments, a 32 bit value is passed in r22, r23, r24, r25 (the registers are 8 bit). And two 16 bit values would be passed, argument 1 in r24, r25 and argument 2 in r22, r23. When I'm looking in the function lowering code in SelectionDAGISel::LowerArguments and AVRTargetLowering::LowerFormalArguments, we already have a problem because the 32 bit return value has been turned into two 16 bit values by the legaliser and the information has been lost that it was one 32 bit value. So the lowering code cannot correctly lower the return value and gets the two 16 bit words mixed u...