mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Don't produce a vmovntdq if we don't have AVX support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1900,7 +1900,7 @@ let AddedComplexity = 400 in { // Prefer non-temporal versions
|
|||||||
addr:$dst)]>, VEX;
|
addr:$dst)]>, VEX;
|
||||||
|
|
||||||
def : Pat<(alignednontemporalstore (v2i64 VR128:$src), addr:$dst),
|
def : Pat<(alignednontemporalstore (v2i64 VR128:$src), addr:$dst),
|
||||||
(VMOVNTDQmr addr:$dst, VR128:$src)>;
|
(VMOVNTDQmr addr:$dst, VR128:$src)>, Requires<[HasAVX]>;
|
||||||
|
|
||||||
def VMOVNTPSYmr : VPSI<0x2B, MRMDestMem, (outs),
|
def VMOVNTPSYmr : VPSI<0x2B, MRMDestMem, (outs),
|
||||||
(ins f256mem:$dst, VR256:$src),
|
(ins f256mem:$dst, VR256:$src),
|
||||||
|
12
test/CodeGen/X86/movntdq-no-avx.ll
Normal file
12
test/CodeGen/X86/movntdq-no-avx.ll
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
|
||||||
|
|
||||||
|
; Test that we produce a movntdq, not a vmovntdq
|
||||||
|
; CHECK-NOT: vmovntdq
|
||||||
|
|
||||||
|
define void @test(<2 x i64>* nocapture %a, <2 x i64> %b) nounwind optsize {
|
||||||
|
entry:
|
||||||
|
store <2 x i64> %b, <2 x i64>* %a, align 16, !nontemporal !0
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
!0 = metadata !{i32 1}
|
Reference in New Issue
Block a user