mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Add support for avx vector fextend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a1dfb63b78
commit
2f613c5fff
@ -1093,12 +1093,17 @@ def : Pat<(int_x86_avx_cvtt_ps2dq_256 VR256:$src),
|
||||
def : Pat<(int_x86_avx_cvtt_ps2dq_256 (memopv8f32 addr:$src)),
|
||||
(VCVTTPS2DQYrm addr:$src)>;
|
||||
|
||||
// Match fround for 128/256-bit conversions
|
||||
// Match fround and fextend for 128/256-bit conversions
|
||||
def : Pat<(v4f32 (fround (v4f64 VR256:$src))),
|
||||
(VCVTPD2PSYrr VR256:$src)>;
|
||||
def : Pat<(v4f32 (fround (loadv4f64 addr:$src))),
|
||||
(VCVTPD2PSYrm addr:$src)>;
|
||||
|
||||
def : Pat<(v4f64 (fextend (v4f32 VR128:$src))),
|
||||
(VCVTPS2PDYrr VR128:$src)>;
|
||||
def : Pat<(v4f64 (fextend (loadv4f32 addr:$src))),
|
||||
(VCVTPS2PDYrm addr:$src)>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// SSE 1 & 2 - Compare Instructions
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -20,6 +20,12 @@ define <8 x float> @fptrunc00(<8 x double> %b) nounwind {
|
||||
ret <8 x float> %a
|
||||
}
|
||||
|
||||
; CHECK: vcvtps2pd %xmm
|
||||
define <4 x double> @fpext00(<4 x float> %b) nounwind {
|
||||
%a = fpext <4 x float> %b to <4 x double>
|
||||
ret <4 x double> %a
|
||||
}
|
||||
|
||||
; CHECK: vcvtsi2sdq (%
|
||||
define double @funcA(i64* nocapture %e) nounwind uwtable readonly ssp {
|
||||
entry:
|
||||
|
Loading…
Reference in New Issue
Block a user