mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-15 03:19:58 +00:00
Fix intrinsics for XOP frczss/sd instructions. These instructions only take one source register and zero the upper bits of the destination rather than preserving them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1920,26 +1920,19 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
|
||||
llvm_v8f32_ty, llvm_i8_ty],
|
||||
[IntrNoMem]>;
|
||||
|
||||
def int_x86_xop_vfrcz_pd :
|
||||
GCCBuiltin<"__builtin_ia32_vfrczpd">,
|
||||
def int_x86_xop_vfrcz_pd : GCCBuiltin<"__builtin_ia32_vfrczpd">,
|
||||
Intrinsic<[llvm_v2f64_ty], [llvm_v2f64_ty], [IntrNoMem]>;
|
||||
def int_x86_xop_vfrcz_ps :
|
||||
GCCBuiltin<"__builtin_ia32_vfrczps">,
|
||||
def int_x86_xop_vfrcz_ps : GCCBuiltin<"__builtin_ia32_vfrczps">,
|
||||
Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty], [IntrNoMem]>;
|
||||
def int_x86_xop_vfrcz_sd :
|
||||
GCCBuiltin<"__builtin_ia32_vfrczsd">,
|
||||
Intrinsic<[llvm_v2f64_ty], [llvm_v2f64_ty, llvm_v2f64_ty],
|
||||
[IntrNoMem]>;
|
||||
def int_x86_xop_vfrcz_ss :
|
||||
GCCBuiltin<"__builtin_ia32_vfrczss">,
|
||||
Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty, llvm_v4f32_ty],
|
||||
[IntrNoMem]>;
|
||||
def int_x86_xop_vfrcz_pd_256 :
|
||||
GCCBuiltin<"__builtin_ia32_vfrczpd256">,
|
||||
def int_x86_xop_vfrcz_sd : GCCBuiltin<"__builtin_ia32_vfrczsd">,
|
||||
Intrinsic<[llvm_v2f64_ty], [llvm_v2f64_ty], [IntrNoMem]>;
|
||||
def int_x86_xop_vfrcz_ss : GCCBuiltin<"__builtin_ia32_vfrczss">,
|
||||
Intrinsic<[llvm_v4f32_ty], [llvm_v4f32_ty], [IntrNoMem]>;
|
||||
def int_x86_xop_vfrcz_pd_256 : GCCBuiltin<"__builtin_ia32_vfrczpd256">,
|
||||
Intrinsic<[llvm_v4f64_ty], [llvm_v4f64_ty], [IntrNoMem]>;
|
||||
def int_x86_xop_vfrcz_ps_256 :
|
||||
GCCBuiltin<"__builtin_ia32_vfrczps256">,
|
||||
def int_x86_xop_vfrcz_ps_256 : GCCBuiltin<"__builtin_ia32_vfrczps256">,
|
||||
Intrinsic<[llvm_v8f32_ty], [llvm_v8f32_ty], [IntrNoMem]>;
|
||||
|
||||
def int_x86_xop_vpcmov :
|
||||
GCCBuiltin<"__builtin_ia32_vpcmov">,
|
||||
Intrinsic<[llvm_v2i64_ty],
|
||||
|
Reference in New Issue
Block a user