mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
fb11288109
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67512 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
439 B
LLVM
10 lines
439 B
LLVM
; RUN: llvm-as < %s | llc -march=x86-64 | grep movq | count 1
|
|
|
|
define i64 @t(i64 %a, i64 %b) nounwind ssp {
|
|
entry:
|
|
%asmtmp = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %a) nounwind ; <i64> [#uses=1]
|
|
%asmtmp1 = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %b) nounwind ; <i64> [#uses=1]
|
|
%0 = add i64 %asmtmp1, %asmtmp ; <i64> [#uses=1]
|
|
ret i64 %0
|
|
}
|