summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/v6vec_zero.ll
blob: e9e69975cb9ccd63f89a62ea4033e3cdc4164401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; RUN: llc -march=hexagon < %s
; REQUIRES: asserts

; Test that we do not ICE with a cannot select message when
; generating a v16i32 constant pool node.

; Function Attrs: nounwind
define void @f0() #0 {
b0:
  br i1 undef, label %b1, label %b2

b1:                                               ; preds = %b1, %b0
  %v0 = phi i32 [ 0, %b1 ], [ 0, %b0 ]
  store <16 x i32> zeroinitializer, <16 x i32>* null, align 64
  br i1 false, label %b1, label %b2

b2:                                               ; preds = %b1, %b0
  ret void
}

attributes #0 = { nounwind "target-cpu"="hexagonv60" }
OpenPOWER on IntegriCloud