diff options
author | Eric Christopher <echristo@apple.com> | 2010-03-04 01:34:19 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-03-04 01:34:19 +0000 |
commit | 45fa7e60fbc7f2fd2e069d61c191f85b46bc43e8 (patch) | |
tree | c898338658d3d02817ddc2c0891f3f470f1d8c5b | |
parent | 36f8aabb2cf1df2a84e4ffcf714214e0a95bf749 (diff) | |
download | bcm5719-llvm-45fa7e60fbc7f2fd2e069d61c191f85b46bc43e8.tar.gz bcm5719-llvm-45fa7e60fbc7f2fd2e069d61c191f85b46bc43e8.zip |
Fix __builtin_ia32_roundss and __builtin_ia32_roundsd definitions.
Re-enable test.
llvm-svn: 97707
-rw-r--r-- | clang/include/clang/Basic/BuiltinsX86.def | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/builtins-x86.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/BuiltinsX86.def b/clang/include/clang/Basic/BuiltinsX86.def index 0062846a7a5..5d80528817c 100644 --- a/clang/include/clang/Basic/BuiltinsX86.def +++ b/clang/include/clang/Basic/BuiltinsX86.def @@ -281,8 +281,8 @@ BUILTIN(__builtin_ia32_pmovzxwq128, "V2LLiV8s", "") BUILTIN(__builtin_ia32_pmuldq128, "V2LLiV4iV4i", "") BUILTIN(__builtin_ia32_pmulld128, "V4iV4iV4i", "") BUILTIN(__builtin_ia32_roundps, "V4fV4fi", "") -BUILTIN(__builtin_ia32_roundss, "V4fV4fi", "") -BUILTIN(__builtin_ia32_roundsd, "V2dV2di", "") +BUILTIN(__builtin_ia32_roundss, "V4fV4fV4fi", "") +BUILTIN(__builtin_ia32_roundsd, "V2dV2dV2di", "") BUILTIN(__builtin_ia32_roundpd, "V2dV2di", "") diff --git a/clang/test/CodeGen/builtins-x86.c b/clang/test/CodeGen/builtins-x86.c index 2eadd7f884d..b5878144981 100644 --- a/clang/test/CodeGen/builtins-x86.c +++ b/clang/test/CodeGen/builtins-x86.c @@ -360,8 +360,8 @@ 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_V4f = __builtin_ia32_insertps128(tmp_V4f, tmp_V4f, tmp_i); #endif |