summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/promote-trunc.ll
blob: d42108e5b508878aff40d98ef4fb27f160b28c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -mtriple=x86_64--

define<4 x i8> @func_8_64() {
  %F = load <4 x i64>, <4 x i64>* undef
  %G = trunc <4 x i64> %F to <4 x i8>
  %H = load <4 x i64>, <4 x i64>* undef
  %Y = trunc <4 x i64> %H to <4 x i8>
  %T = add <4 x i8> %Y, %G
  ret <4 x i8> %T
}

OpenPOWER on IntegriCloud