diff options
Diffstat (limited to 'test/CodeGen/X86/inline-asm-2addr.ll')
-rw-r--r-- | test/CodeGen/X86/inline-asm-2addr.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/inline-asm-2addr.ll b/test/CodeGen/X86/inline-asm-2addr.ll new file mode 100644 index 0000000..4a2c7fc --- /dev/null +++ b/test/CodeGen/X86/inline-asm-2addr.ll @@ -0,0 +1,9 @@ +; RUN: llc < %s -march=x86-64 | not grep movq + +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 +} |