1; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
2
3define i64 @t(i64 %a, i64 %b) nounwind ssp {
4entry:
5; CHECK-LABEL: t:
6	%asmtmp = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %a) nounwind		; <i64> [#uses=1]
7; CHECK:      #APP
8; CHECK-NEXT: rorq    %[[REG1:.*]]
9; CHECK-NEXT: #NO_APP
10	%asmtmp1 = tail call i64 asm "rorq $1,$0", "=r,J,0,~{dirflag},~{fpsr},~{flags},~{cc}"(i32 1, i64 %b) nounwind		; <i64> [#uses=1]
11; CHECK-NEXT: #APP
12; CHECK-NEXT: rorq    %[[REG2:.*]]
13; CHECK-NEXT: #NO_APP
14	%0 = add i64 %asmtmp1, %asmtmp		; <i64> [#uses=1]
15; CHECK-NEXT: leaq    (%[[REG2]],%[[REG1]]), %rax
16	ret i64 %0
17; CHECK:      retq
18}
19