]> granicus.if.org Git - clang/commitdiff
Fix __builtin_ia32_roundss and __builtin_ia32_roundsd definitions.
authorEric Christopher <echristo@apple.com>
Thu, 4 Mar 2010 01:34:19 +0000 (01:34 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 4 Mar 2010 01:34:19 +0000 (01:34 +0000)
Re-enable test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97707 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/BuiltinsX86.def
test/CodeGen/builtins-x86.c

index 0062846a7a529f1e67684d58b0d8aca363c32e76..5d80528817c4e35dbf5329fe3aef9564aae6577b 100644 (file)
@@ -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", "")
 
 
index 2eadd7f884d8952bebfdd8cb403e2c7cc5bd9d8c..b5878144981fd4e4f56414e7dcbcce2bff6f540a 100644 (file)
@@ -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