summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-09-08 17:42:14 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-09-08 17:42:14 +0000
commita696b1b64179bdbad1176eaf549be8661d83fa1d (patch)
tree07ee028aecd4e3247bf4e1a9ce03956774e09823 /llvm/test
parentbe90f70d3abb5c56ca6d38438b8db4aa480328d9 (diff)
downloadbcm5719-llvm-a696b1b64179bdbad1176eaf549be8661d83fa1d.tar.gz
bcm5719-llvm-a696b1b64179bdbad1176eaf549be8661d83fa1d.zip
[Hexagon] Expand sext- and zextloads of vector types, not just extloads
Recent change exposed this issue, breaking the Hexagon buildbots. llvm-svn: 280973
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Hexagon/vector-ext-load.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/vector-ext-load.ll b/llvm/test/CodeGen/Hexagon/vector-ext-load.ll
new file mode 100644
index 00000000000..536dad165ef
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/vector-ext-load.ll
@@ -0,0 +1,10 @@
+; A copy of 2012-06-08-APIntCrash.ll with arch explicitly set to hexagon.
+
+; RUN: llc -march=hexagon < %s
+
+define void @test1(<8 x i32>* %ptr) {
+ %1 = load <8 x i32>, <8 x i32>* %ptr, align 32
+ %2 = and <8 x i32> %1, <i32 0, i32 0, i32 0, i32 -1, i32 0, i32 0, i32 0, i32 -1>
+ store <8 x i32> %2, <8 x i32>* %ptr, align 16
+ ret void
+}
OpenPOWER on IntegriCloud