diff options
| author | Ana Pazos <apazos@codeaurora.org> | 2016-01-13 00:03:35 +0000 |
|---|---|---|
| committer | Ana Pazos <apazos@codeaurora.org> | 2016-01-13 00:03:35 +0000 |
| commit | 359cab3bb3b048b99800bac9bd95ab1d0c432bc2 (patch) | |
| tree | 59d567bf67526840ab07217a05a39a34193637ef /llvm/lib/Target/ARM | |
| parent | f8e303079443af0e3c1026c847bfbccb477ed668 (diff) | |
| download | bcm5719-llvm-359cab3bb3b048b99800bac9bd95ab1d0c432bc2.tar.gz bcm5719-llvm-359cab3bb3b048b99800bac9bd95ab1d0c432bc2.zip | |
Guard fabs to bfc convert with V6T2 flag
Summary:
BFC instructions are available in ARMv6T2 and above.
Reviewers: t.p.northover
Subscribers: aemerson
Differential Revision: http://reviews.llvm.org/D16076
llvm-svn: 257546
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrVFP.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrVFP.td b/llvm/lib/Target/ARM/ARMInstrVFP.td index 050cd1a445a..63e7940bb14 100644 --- a/llvm/lib/Target/ARM/ARMInstrVFP.td +++ b/llvm/lib/Target/ARM/ARMInstrVFP.td @@ -930,10 +930,10 @@ def VMOVDRR : AVConv5I<0b11000100, 0b1011, // and could enable the conversion to float to be removed completely. def : Pat<(fabs (arm_fmdrr GPR:$Rl, GPR:$Rh)), (VMOVDRR GPR:$Rl, (BFC GPR:$Rh, (i32 0x7FFFFFFF)))>, - Requires<[IsARM]>; + Requires<[IsARM, HasV6T2]>; def : Pat<(fabs (arm_fmdrr GPR:$Rl, GPR:$Rh)), (VMOVDRR GPR:$Rl, (t2BFC GPR:$Rh, (i32 0x7FFFFFFF)))>, - Requires<[IsThumb2]>; + Requires<[IsThumb2, HasV6T2]>; def : Pat<(fneg (arm_fmdrr GPR:$Rl, GPR:$Rh)), (VMOVDRR GPR:$Rl, (EORri GPR:$Rh, (i32 0x80000000)))>, Requires<[IsARM]>; |

