From 794405e6aa012e33d8e619e058d03b8600312208 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 12 Dec 2007 07:55:34 +0000 Subject: Use shuffles to implement insert_vector_elt for i32, i64, f32, and f64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44929 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/vec_insert-3.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/CodeGen/X86/vec_insert-3.ll (limited to 'test/CodeGen/X86/vec_insert-3.ll') diff --git a/test/CodeGen/X86/vec_insert-3.ll b/test/CodeGen/X86/vec_insert-3.ll new file mode 100644 index 0000000..1d374b4 --- /dev/null +++ b/test/CodeGen/X86/vec_insert-3.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | llc -march=x86-64 -mattr=+sse2 | grep punpcklqdq | count 1 + +define <2 x i64> @t1(i64 %s, <2 x i64> %tmp) { + %tmp1 = insertelement <2 x i64> %tmp, i64 %s, i32 1 + ret <2 x i64> %tmp1 +} -- cgit v1.1