From f6310ab7716f4c8e1b213362c168f9aac93595ca Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Jan 2007 23:55:20 +0000 Subject: [PATCH] test that the 'ir' constraint works. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33646 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2007-01-29-InlineAsm-ir.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/CodeGen/X86/2007-01-29-InlineAsm-ir.ll diff --git a/test/CodeGen/X86/2007-01-29-InlineAsm-ir.ll b/test/CodeGen/X86/2007-01-29-InlineAsm-ir.ll new file mode 100644 index 00000000000..b1c86f4138a --- /dev/null +++ b/test/CodeGen/X86/2007-01-29-InlineAsm-ir.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | llc -march=x86 +; Test 'ri' constraint. + +define void @run_init_process() { + %tmp = call i32 asm sideeffect "push %ebx ; movl $2,%ebx ; int $$0x80 ; pop %ebx", "={ax},0,ri,{cx},{dx},~{dirflag},~{fpsr},~{flags},~{memory}"( i32 11, i32 0, i32 0, i32 0 ) + unreachable + }