From 5e1dd5597e53a8bdd0a5d102805325da53ed133f Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Wed, 13 Feb 2008 06:48:40 +0000 Subject: [PATCH] Add testcase for recent legalizer change git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47049 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/vec_insert.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/PowerPC/vec_insert.ll diff --git a/test/CodeGen/PowerPC/vec_insert.ll b/test/CodeGen/PowerPC/vec_insert.ll new file mode 100644 index 00000000000..04bbe6574f6 --- /dev/null +++ b/test/CodeGen/PowerPC/vec_insert.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep sth + +define <8 x i16> @insert(<8 x i16> %foo, i16 %a) nounwind { +entry: + %vecext = insertelement <8 x i16> %foo, i16 %a, i32 7 ; [#uses=1] + ret <8 x i16> %vecext +} +