Skip to content

Commit 075f953

Browse files
committed
Merge remote-tracking branch 'SARG-FB/gas64_rev' into master
2 parents 4248287 + 680df5d commit 075f953

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/compiler/ir-gas64.bas

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -770,14 +770,10 @@ private sub check_optim(byref code as string)
770770
else
771771
instruc="movq"
772772
end if
773-
elseif previnstruc="movd" then
774-
if part1[0]=asc("r") or part1[0]=asc("e") then
775-
instruc="movd"
776-
else
777-
instruc="movss"
778-
end if
773+
elseif part1[0]=asc("r") or part1[0]=asc("e") then
774+
instruc="movd"
779775
else
780-
asm_error("in check_optim 3-2 instruc unknown="+instruc)
776+
instruc="movss"
781777
end if
782778
end if
783779
writepos=len(ctx.proc_txt)+len(code)+9
@@ -4630,7 +4626,7 @@ private sub _emituop(byval op as integer,byval v1 as IRVREG ptr,byval vr as IRVR
46304626
asm_code("mov eax, 0x7FFFFFFF")
46314627
asm_code("movd xmm1, eax")
46324628
asm_code("andps xmm1, xmm0") ''result xmm1
4633-
asm_code("movd xmm0, xmm1")''just to keep a standard way after
4629+
asm_code("movss xmm0, xmm1")''just to keep a standard way after
46344630
restore_vrreg(vr,vrreg)
46354631
case AST_OP_SGN
46364632
save_call("fb_SGNSingle",vr,vrreg)

0 commit comments

Comments
 (0)