diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2009-07-23 23:09:51 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2009-07-23 23:09:51 +0000 |
| commit | dc99f0711393df08e29dadf9caedc428d15ae9df (patch) | |
| tree | 91d07f97763ebb2020a89b038c3dc87d7c15ccf0 /llvm/lib | |
| parent | 64509b2765b733ba5152b3f41361b5e56a907525 (diff) | |
| download | bcm5719-llvm-dc99f0711393df08e29dadf9caedc428d15ae9df.tar.gz bcm5719-llvm-dc99f0711393df08e29dadf9caedc428d15ae9df.zip | |
Thumb2 does not allow the use of "pc" register as part of the load / store address.
llvm-svn: 76909
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrThumb2.td | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb2.td b/llvm/lib/Target/ARM/ARMInstrThumb2.td index 5c0a47e8452..bd76fd1d7c0 100644 --- a/llvm/lib/Target/ARM/ARMInstrThumb2.td +++ b/llvm/lib/Target/ARM/ARMInstrThumb2.td @@ -648,21 +648,6 @@ def t2STRB_POST : T2Iidxldst<(outs GPR:$base_wb), (post_truncsti8 GPR:$src, GPR:$base, t2am_imm8_offset:$offset))]>; -// Address computation and loads and stores in PIC mode. -let isNotDuplicable = 1, AddedComplexity = 10 in { -let canFoldAsLoad = 1 in -def t2PICLDR : T2I_picld<"ldr", UnOpFrag<(load node:$Src)>>; - -def t2PICLDRH : T2I_picld<"ldrh", UnOpFrag<(zextloadi16 node:$Src)>>; -def t2PICLDRB : T2I_picld<"ldrb", UnOpFrag<(zextloadi8 node:$Src)>>; -def t2PICLDRSH : T2I_picld<"ldrsh", UnOpFrag<(sextloadi16 node:$Src)>>; -def t2PICLDRSB : T2I_picld<"ldrsb", UnOpFrag<(sextloadi8 node:$Src)>>; - -def t2PICSTR : T2I_picst<"str", BinOpFrag<(store node:$LHS, node:$RHS)>>; -def t2PICSTRH : T2I_picst<"strh", BinOpFrag<(truncstorei16 node:$LHS, node:$RHS)>>; -def t2PICSTRB : T2I_picst<"strb", BinOpFrag<(truncstorei8 node:$LHS, node:$RHS)>>; -} // isNotDuplicable = 1, AddedComplexity = 10 - // FIXME: ldrd / strd pre / post variants //===----------------------------------------------------------------------===// |

