blob: a536fa162c033fcebfd507d4323c038c6b28743b [file] [log] [blame]
Tanya Lattner348c6182008-03-25 04:26:08 +00001; RUN: llvm-as < %s | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
3; RUN: grep {vspltish v.*, 10}
4
Tanya Lattner348c6182008-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattner348c6182008-03-25 04:26:08 +000011