summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/vector-casts.ll
blob: e661e847d44651adae27bd907257a713e65aa9d3 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s | llc
; PR2671

define void @g(<2 x i16>* %p, <2 x i8>* %q) {
  %t = load <2 x i16>* %p
  %r = trunc <2 x i16> %t to <2 x i8>
  store <2 x i8> %r, <2 x i8>* %q
  ret void
}