summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-11-30 00:34:08 +0000
committerBill Wendling <isanbard@gmail.com>2010-11-30 00:34:08 +0000
commit62718de2b95e875505ec2b46b0ee0c0665d45ddf (patch)
treef398329674db73276121c14570d5141afe991cc4 /llvm/lib/Target/ARM
parent9a146372b526f659991ede75f10f07c30209234b (diff)
downloadbcm5719-llvm-62718de2b95e875505ec2b46b0ee0c0665d45ddf.tar.gz
bcm5719-llvm-62718de2b95e875505ec2b46b0ee0c0665d45ddf.zip
Add correct encoding for "bl __aeabi_read_tp". However, the asm matcher isn't
able to match this yet. llvm-svn: 120369
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb.td8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td
index 0fac0daa0ef..3fd4d8000fe 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb.td
@@ -1265,11 +1265,13 @@ def tLEApcrelJT : T1I<(outs tGPR:$Rd),
//
// __aeabi_read_tp preserves the registers r1-r3.
-let isCall = 1,
- Defs = [R0, LR], Uses = [SP] in {
+let isCall = 1, Defs = [R0, LR], Uses = [SP] in {
def tTPsoft : TIx2<0b11110, 0b11, 1, (outs), (ins), IIC_Br,
"bl\t__aeabi_read_tp",
- [(set R0, ARMthread_pointer)]>;
+ [(set R0, ARMthread_pointer)]> {
+ // Encoding is 0xf7fffffe.
+ let Inst = 0xf7fffffe;
+ }
}
// SJLJ Exception handling intrinsics
OpenPOWER on IntegriCloud