blob: a536fa162c033fcebfd507d4323c038c6b28743b [file] [log] [blame]
Tanya Lattner6f729d62008-03-25 04:26:08 +00001; RUN: llvm-as < %s | \
Reid Spencerc58ef012007-04-15 21:17:45 +00002; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
3; RUN: grep {vspltish v.*, 10}
Chris Lattner220c1002006-04-05 17:38:50 +00004
Tanya Lattner6f729d62008-03-25 04:26:08 +00005define void @test(<8 x i16>* %P) {
6 %tmp = load <8 x i16>* %P ; <<8 x i16>> [#uses=1]
7 %tmp1 = add <8 x i16> %tmp, < i16 10, i16 10, i16 10, i16 10, i16 10, i16 10, i16 10, i16 10 > ; <<8 x i16>> [#uses=1]
8 store <8 x i16> %tmp1, <8 x i16>* %P
9 ret void
Chris Lattner220c1002006-04-05 17:38:50 +000010}
Tanya Lattner6f729d62008-03-25 04:26:08 +000011