summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAna Pazos <apazos@codeaurora.org>2014-01-23 19:18:57 +0000
committerAna Pazos <apazos@codeaurora.org>2014-01-23 19:18:57 +0000
commit5d31f6945b21fb462cdcbc08b7c0656281a23835 (patch)
treef9a81fe4dd41c4d87eee25285b7d50e97650d599 /llvm/lib
parent4c96056acd7b4fde857029971fb38997f9bf6260 (diff)
downloadbcm5719-llvm-5d31f6945b21fb462cdcbc08b7c0656281a23835.tar.gz
bcm5719-llvm-5d31f6945b21fb462cdcbc08b7c0656281a23835.zip
[AArch64] Added vselect patterns with float and double types
llvm-svn: 199925
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrNEON.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstrNEON.td b/llvm/lib/Target/AArch64/AArch64InstrNEON.td
index 3f9743989b5..c673b3adc9d 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrNEON.td
+++ b/llvm/lib/Target/AArch64/AArch64InstrNEON.td
@@ -473,6 +473,10 @@ multiclass Neon_bitwise3V_patterns<SDPatternOperator opnode,
(INST16B VPR128:$src, VPR128:$Rn, VPR128:$Rm)>;
def : Pat<(v2i64 (opnode (v2i64 VPR128:$src), VPR128:$Rn, VPR128:$Rm)),
(INST16B VPR128:$src, VPR128:$Rn, VPR128:$Rm)>;
+ def : Pat<(v2f64 (opnode (v2i64 VPR128:$src), VPR128:$Rn, VPR128:$Rm)),
+ (INST16B VPR128:$src, VPR128:$Rn, VPR128:$Rm)>;
+ def : Pat<(v4f32 (opnode (v4i32 VPR128:$src), VPR128:$Rn, VPR128:$Rm)),
+ (INST16B VPR128:$src, VPR128:$Rn, VPR128:$Rm)>;
// Allow to match BSL instruction pattern with non-constant operand
def : Pat<(v8i8 (or (and VPR64:$Rn, VPR64:$Rd),
OpenPOWER on IntegriCloud