2015-12-29 02:28:44 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
|
2009-03-23 16:01:15 +08:00
|
|
|
|
|
|
|
define i64 @t(i64 %a, i64 %b) nounwind ssp {
|
|
|
|
entry:
|
2015-12-27 14:18:48 +08:00
|
|
|
; CHECK-LABEL: t:
|
2009-03-23 16:01:15 +08:00
|
|
|
%asmtmp = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %a) nounwind ; <i64> [#uses=1]
|
2015-12-27 14:18:48 +08:00
|
|
|
; CHECK: #APP
|
|
|
|
; CHECK-NEXT: rorq %[[REG1:.*]]
|
|
|
|
; CHECK-NEXT: #NO_APP
|
2009-03-23 16:01:15 +08:00
|
|
|
%asmtmp1 = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %b) nounwind ; <i64> [#uses=1]
|
2015-12-27 14:18:48 +08:00
|
|
|
; CHECK-NEXT: #APP
|
|
|
|
; CHECK-NEXT: rorq %[[REG2:.*]]
|
|
|
|
; CHECK-NEXT: #NO_APP
|
2009-03-23 16:01:15 +08:00
|
|
|
%0 = add i64 %asmtmp1, %asmtmp ; <i64> [#uses=1]
|
2015-12-27 14:18:48 +08:00
|
|
|
; CHECK-NEXT: leaq (%[[REG2]],%[[REG1]]), %rax
|
2009-03-23 16:01:15 +08:00
|
|
|
ret i64 %0
|
2015-12-27 14:26:41 +08:00
|
|
|
; CHECK: retq
|
2009-03-23 16:01:15 +08:00
|
|
|
}
|