mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 05:24:16 +00:00
b0bbc45c40
The check lines were added with: http://reviews.llvm.org/rL256458 http://reviews.llvm.org/rL256460 but on a darwin target, the output looks like: ## InlineAsm Start rorq %rdi ## InlineAsm End ## InlineAsm Start rorq %rsi ## InlineAsm End leaq (%rsi,%rdi), %rax retq llvm-svn: 256507
19 lines
679 B
LLVM
19 lines
679 B
LLVM
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
|
|
|
|
define i64 @t(i64 %a, i64 %b) nounwind ssp {
|
|
entry:
|
|
; CHECK-LABEL: t:
|
|
%asmtmp = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %a) nounwind ; <i64> [#uses=1]
|
|
; CHECK: #APP
|
|
; CHECK-NEXT: rorq %[[REG1:.*]]
|
|
; CHECK-NEXT: #NO_APP
|
|
%asmtmp1 = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %b) nounwind ; <i64> [#uses=1]
|
|
; CHECK-NEXT: #APP
|
|
; CHECK-NEXT: rorq %[[REG2:.*]]
|
|
; CHECK-NEXT: #NO_APP
|
|
%0 = add i64 %asmtmp1, %asmtmp ; <i64> [#uses=1]
|
|
; CHECK-NEXT: leaq (%[[REG2]],%[[REG1]]), %rax
|
|
ret i64 %0
|
|
; CHECK: retq
|
|
}
|