Displaying 2 results from an estimated 2 matches for "emitehsjljlongjmp".
2016 Apr 15
3
[Sparc] Load address with SETHI
Hi,
I'm trying to implement __builtin_setjmp / __builtin_longjmp for Sparc processors. I think I'm very close, but I can't work out how to issue BuildMI-type instructions to load the address of the recovery location (set in setjmp) into a register using the SETHI / OR combination. I can't see any equivalent code anywhere else in Sparc.
I imagine this is similar if I try to make a
2016 Apr 27
2
[Sparc] builtin setjmp / longjmp - need help to get past last problem
...case SP::SELECT_CC_DFP_FCC:
case SP::SELECT_CC_QFP_FCC:
return expandSelectCC(MI, BB, SP::FBCOND);
+ case SP::EH_SJLJ_SETJMP32ri:
+ case SP::EH_SJLJ_SETJMP32rr:
+ return emitEHSjLjSetJmp(MI, BB);
+ case SP::EH_SJLJ_LONGJMP32rr:
+ case SP::EH_SJLJ_LONGJMP32ri:
+ return emitEHSjLjLongJmp(MI, BB);
+
}
}
***************
*** 3114,3119 ****
--- 3142,3352 ----
return BB;
}
+ MachineBasicBlock* SparcTargetLowering::
+ emitEHSjLjLongJmp(MachineInstr *MI,
+ MachineBasicBlock *MBB) const
+ {
+ DebugLoc DL = MI->getDebugLoc();
+ const TargetInstrInfo *T...