summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-12-22 17:10:31 +0000
committerSanjay Patel <spatel@rotateright.com>2018-12-22 17:10:31 +0000
commit4b537aaf6deb42260a1fc11980a73bdeda853fb4 (patch)
tree69a572775e8a51ad95f5ce0896f73349645cee63 /llvm/test/CodeGen/Hexagon
parent52c02d70e276aa1e138b9f43988de60838aacb8c (diff)
downloadbcm5719-llvm-4b537aaf6deb42260a1fc11980a73bdeda853fb4.tar.gz
bcm5719-llvm-4b537aaf6deb42260a1fc11980a73bdeda853fb4.zip
[DAGCombiner] allow narrowing of add followed by truncate
trunc (add X, C ) --> add (trunc X), C' If we're throwing away the top bits of an 'add' instruction, do it in the narrow destination type. This makes the truncate-able opcode list identical to the sibling transform done in IR (in instcombine). This change used to show regressions for x86, but those are gone after D55494. This gets us closer to deleting the x86 custom function (combineTruncatedArithmetic) that does almost the same thing. Differential Revision: https://reviews.llvm.org/D55866 llvm-svn: 350006
Diffstat (limited to 'llvm/test/CodeGen/Hexagon')
-rw-r--r--llvm/test/CodeGen/Hexagon/vect/vect-vaslw.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/Hexagon/vect/vect-vaslw.ll b/llvm/test/CodeGen/Hexagon/vect/vect-vaslw.ll
index c662b0bd3de..23c167608a1 100644
--- a/llvm/test/CodeGen/Hexagon/vect/vect-vaslw.ll
+++ b/llvm/test/CodeGen/Hexagon/vect/vect-vaslw.ll
@@ -1,5 +1,5 @@
; RUN: llc -march=hexagon < %s | FileCheck %s
-; CHECK: vaslw
+; CHECK: vaslh
target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-v64:64:64-v32:32:32-a0:0-n16:32"
target triple = "hexagon-unknown-linux-gnu"
OpenPOWER on IntegriCloud