getting the pic base has no side effects.

llvm-svn: 45618
This commit is contained in:
Chris Lattner 2008-01-05 03:54:32 +00:00
parent d11ca169e7
commit 9fa8ae6c6b
1 changed files with 2 additions and 0 deletions

View File

@ -282,8 +282,10 @@ def IMPLICIT_DEF_GR32 : I<0, Pseudo, (outs GR32:$dst), (ins),
def NOOP : I<0x90, RawFrm, (outs), (ins), "nop", []>;
// PIC base
let neverHasSideEffects = 1 in {
def MOVPC32r : Ii32<0xE8, Pseudo, (outs GR32:$reg), (ins piclabel:$label),
"call\t$label\n\tpop{l}\t$reg", []>;
}
//===----------------------------------------------------------------------===//
// Control Flow Instructions...