]> granicus.if.org Git - clang/commitdiff
Added vec_set intrinsics
authorMon P Wang <wangmp@apple.com>
Sat, 18 Oct 2008 02:43:25 +0000 (02:43 +0000)
committerMon P Wang <wangmp@apple.com>
Sat, 18 Oct 2008 02:43:25 +0000 (02:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57749 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/builtins-x86.c

index 01ab93db67d99679f4f2a4920bef0a335428280d..0b039aa9705e18278f610b8b9a7278c4c74c92f4 100644 (file)
@@ -526,6 +526,10 @@ void f0() {
   tmp_V4f = __builtin_ia32_roundss(tmp_V4f, tmp_V4f, imm_i_0_16);
   tmp_V2d = __builtin_ia32_roundsd(tmp_V2d, tmp_V2d, imm_i_0_16);
   tmp_V2d = __builtin_ia32_roundpd(tmp_V2d, imm_i_0_16);
+  tmp_V16c = __builtin_ia32_vec_set_v16qi(tmp_V16c, tmp_i, tmp_i);
+  tmp_V4i  = __builtin_ia32_vec_set_v4si(tmp_V4i, tmp_i, tmp_i);
+  tmp_V4f = __builtin_ia32_insertps128(tmp_V4f, tmp_V4f, tmp_i);
+  tmp_V2LLi = __builtin_ia32_vec_set_v2di(tmp_V2LLi, tmp_LLi);
 #endif
 }