aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/InstSimplify/ConstProp/trunc_vec.ll
blob: e08c715b9933d5542b7a0de8e9aaee59cb870289 (plain)
1
2
3
4
5
6
7
8
9
; RUN: opt -passes=instsimplify < %s

; Make sure we don't crash on this one

define <8 x i8> @test_truc_vec() {
  %x = bitcast <2 x i64> <i64 1, i64 2> to <8 x i16>
  %y = trunc <8 x i16> %x to <8 x i8>
  ret <8 x i8> %y
}