aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/IntrinsicsX86.td
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-10-10 23:51:03 +0000
committerDale Johannesen <dalej@apple.com>2008-10-10 23:51:03 +0000
commite397acce9db154d8355eb78e701622383f551074 (patch)
treec60537a248a27cda5986b92569ee623ba2be01ec /include/llvm/IntrinsicsX86.td
parentfc19fbd2ca2759eafaea4d174a814f9236f2d0e8 (diff)
downloadexternal_llvm-e397acce9db154d8355eb78e701622383f551074.zip
external_llvm-e397acce9db154d8355eb78e701622383f551074.tar.gz
external_llvm-e397acce9db154d8355eb78e701622383f551074.tar.bz2
Fix SSE4.1 roundss, roundsd. While the instructions have
the same pattern as roundpd/roundps, the Intel compiler builtins do not: rounds* has an extra operand. Fixes gcc.target/i386/sse4_1-rounds[sd]-[1234].c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IntrinsicsX86.td')
-rw-r--r--include/llvm/IntrinsicsX86.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/IntrinsicsX86.td b/include/llvm/IntrinsicsX86.td
index 682eb51..20b5563 100644
--- a/include/llvm/IntrinsicsX86.td
+++ b/include/llvm/IntrinsicsX86.td
@@ -685,13 +685,13 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
// FP rounding ops
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
def int_x86_sse41_round_ss : GCCBuiltin<"__builtin_ia32_roundss">,
- Intrinsic<[llvm_v4f32_ty, llvm_v4f32_ty,
+ Intrinsic<[llvm_v4f32_ty, llvm_v4f32_ty, llvm_v4f32_ty,
llvm_i32_ty], [IntrNoMem]>;
def int_x86_sse41_round_ps : GCCBuiltin<"__builtin_ia32_roundps">,
Intrinsic<[llvm_v4f32_ty, llvm_v4f32_ty,
llvm_i32_ty], [IntrNoMem]>;
def int_x86_sse41_round_sd : GCCBuiltin<"__builtin_ia32_roundsd">,
- Intrinsic<[llvm_v2f64_ty, llvm_v2f64_ty,
+ Intrinsic<[llvm_v2f64_ty, llvm_v2f64_ty, llvm_v2f64_ty,
llvm_i32_ty], [IntrNoMem]>;
def int_x86_sse41_round_pd : GCCBuiltin<"__builtin_ia32_roundpd">,
Intrinsic<[llvm_v2f64_ty, llvm_v2f64_ty,