trunc_vec.ll 214 B

123456789
  1. ; RUN: opt -constprop < %s
  2. ; Make sure we don't crash on this one
  3. define <8 x i8> @test_truc_vec() {
  4. %x = bitcast <2 x i64> <i64 1, i64 2> to <8 x i16>
  5. %y = trunc <8 x i16> %x to <8 x i8>
  6. ret <8 x i8> %y
  7. }