From e4e2e18f478ef5e30c6a638c90ca25efa3d332f4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 25 Mar 2007 02:17:58 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35323 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../X86/2007-03-24-InlineAsmMultiRegConstraint.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll diff --git a/test/CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll b/test/CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll new file mode 100644 index 00000000000..babcf6a0e80 --- /dev/null +++ b/test/CodeGen/X86/2007-03-24-InlineAsmMultiRegConstraint.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=x86 + +define i32 @test(i16 %tmp40414244) { + %tmp48 = call i32 asm sideeffect "inl ${1:w}, $0", "={ax},N{dx},~{dirflag},~{fpsr},~{flags}"( i16 %tmp40414244 ) + ret i32 %tmp48 +} + +define i32 @test2(i16 %tmp40414244) { + %tmp48 = call i32 asm sideeffect "inl ${1:w}, $0", "={ax},N{dx},~{dirflag},~{fpsr},~{flags}"( i16 14 ) + ret i32 %tmp48 +}