summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/inline-asm-2addr.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/inline-asm-2addr.ll')
-rw-r--r--test/CodeGen/X86/inline-asm-2addr.ll11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGen/X86/inline-asm-2addr.ll b/test/CodeGen/X86/inline-asm-2addr.ll
index 4a2c7fc5ebac..079f883186fb 100644
--- a/test/CodeGen/X86/inline-asm-2addr.ll
+++ b/test/CodeGen/X86/inline-asm-2addr.ll
@@ -1,9 +1,18 @@
-; RUN: llc < %s -march=x86-64 | not grep movq
+; 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
}