mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
793 B
LLVM
16 lines
793 B
LLVM
; RUN: llc < %s -mtriple=i386-apple-darwin
|
|
; rdar://6781755
|
|
; PR3934
|
|
|
|
type { i32, i32 } ; type %0
|
|
|
|
define void @bn_sqr_comba8(i32* nocapture %r, i32* %a) nounwind {
|
|
entry:
|
|
%asmtmp23 = tail call %0 asm "mulq $3", "={ax},={dx},{ax},*m,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 0, i32* %a) nounwind ; <%0> [#uses=1]
|
|
%asmresult25 = extractvalue %0 %asmtmp23, 1 ; <i32> [#uses=1]
|
|
%asmtmp26 = tail call %0 asm "addq $0,$0; adcq $2,$1", "={dx},=r,imr,0,1,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 0, i32 %asmresult25, i32 0) nounwind ; <%0> [#uses=1]
|
|
%asmresult27 = extractvalue %0 %asmtmp26, 0 ; <i32> [#uses=1]
|
|
%asmtmp29 = tail call %0 asm "addq $0,$0; adcq $2,$1", "={ax},={dx},imr,0,1,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 0, i32 0, i32 %asmresult27) nounwind ; <%0> [#uses=0]
|
|
ret void
|
|
}
|