mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use movd instead of movq
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
05084716c1
commit
8d632c1e98
@ -164,11 +164,14 @@ def MMX_MOVD64to64rr : MMXRI<0x6E, MRMSrcReg, (outs VR64:$dst), (ins GR64:$src),
|
||||
[]>;
|
||||
|
||||
let neverHasSideEffects = 1 in {
|
||||
// These are 64 bit moves, but since the OS X assembler doesn't
|
||||
// recognize a register-register movq, we write them as
|
||||
// movd.
|
||||
def MMX_MOVD64from64rr : MMXRI<0x7E, MRMDestReg,
|
||||
(outs GR64:$dst), (ins VR64:$src),
|
||||
"movq\t{$src, $dst|$dst, $src}", []>;
|
||||
"movd\t{$src, $dst|$dst, $src}", []>;
|
||||
def MMX_MOVD64rrv164 : MMXI<0x6E, MRMSrcReg, (outs VR64:$dst), (ins GR64:$src),
|
||||
"movq\t{$src, $dst|$dst, $src}",
|
||||
"movd\t{$src, $dst|$dst, $src}",
|
||||
[(set VR64:$dst, (v1i64 (scalar_to_vector GR64:$src)))]>;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86-64 | grep movq | count 8
|
||||
; RUN: llvm-as < %s | llc -march=x86-64 | grep movd | count 4
|
||||
|
||||
define i64 @foo(<1 x i64>* %p) {
|
||||
%t = load <1 x i64>* %p
|
||||
|
Loading…
Reference in New Issue
Block a user