Skip to content
  • Ulrich Weigand's avatar
    PowerPC: Remove LDrs pattern. · 4a083886
    Ulrich Weigand authored
    The LDrs pattern is a duplicate of LD, except that it accepts memory
    addresses where the displacement is a symbolLo64.  An operand type
    "memrs" is defined for just that purpose.
    
    However, this wouldn't be necessary if the default "memrix" operand
    type were to simply accept 64-bit symbolic addresses directly.
    The only problem with that is that it uses "symbolLo", which is
    hardcoded to 32-bit.
    
    To fix this, this commit changes "memri" and "memrix" to use new
    operand types for the memory displacement, which allow iPTR
    instead of i32.  This will also make address parsing easier to
    implment in the asm parser.
    
    No change in generated code.
    
    llvm-svn: 178005
    4a083886
Loading