From 2e2558ec5f5f70ec7f7a8a7e31d0c6be9e1f567e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 26 Jan 2009 23:43:02 +0000 Subject: [PATCH] Fix definition of __builtin_ia32_vec_set_v2di and de-XFAIL builtins-x86.c. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63069 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/X86Builtins.def | 2 +- test/CodeGen/builtins-x86.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/clang/AST/X86Builtins.def b/include/clang/AST/X86Builtins.def index 9d5770adc3..73a4d1e0d0 100644 --- a/include/clang/AST/X86Builtins.def +++ b/include/clang/AST/X86Builtins.def @@ -420,7 +420,7 @@ BUILTIN(__builtin_ia32_vec_set_v8hi, "V8sV8ssi", "") BUILTIN(__builtin_ia32_vec_set_v4hi, "V4sV4ssi", "") BUILTIN(__builtin_ia32_vec_set_v16qi, "V16cV16cii", "") BUILTIN(__builtin_ia32_vec_set_v4si, "V4iV4iii", "") -BUILTIN(__builtin_ia32_vec_set_v2di, "V2LLiV2LLiLLi", "") +BUILTIN(__builtin_ia32_vec_set_v2di, "V2LLiV2LLiLLii", "") BUILTIN(__builtin_ia32_insertps128, "V4fV4fV4fi", "") BUILTIN(__builtin_ia32_movqv4si, "V4iV4i", "") diff --git a/test/CodeGen/builtins-x86.c b/test/CodeGen/builtins-x86.c index 0b039aa970..5e1aea4c62 100644 --- a/test/CodeGen/builtins-x86.c +++ b/test/CodeGen/builtins-x86.c @@ -1,6 +1,5 @@ // RUN: clang -DUSE_64 -triple x86_64-unknown-unknown -emit-llvm -o %t %s && -// RUN: clang -DUSE_ALL -triple x86_64-unknown-unknown -emit-llvm -o %t %s -// XFAIL +// RUN: clang -DUSE_ALL -triple x86_64-unknown-unknown -fsyntax-only -o %t %s #ifdef USE_ALL #define USE_3DNOW @@ -523,13 +522,13 @@ void f0() { tmp_V2LLi = __builtin_ia32_pmuldq128(tmp_V4i, tmp_V4i); tmp_V4i = __builtin_ia32_pmulld128(tmp_V4i, tmp_V4i); tmp_V4f = __builtin_ia32_roundps(tmp_V4f, imm_i_0_16); - 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_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); + tmp_V2LLi = __builtin_ia32_vec_set_v2di(tmp_V2LLi, tmp_LLi, tmp_i); #endif } -- 2.40.0