From 316a137b40071451f6a47b6d056f45e2c3eba6f6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 17 Oct 2008 17:59:52 +0000 Subject: Fix a bug where the x86 backend would reject 64-bit r constraints when in 32-bit mode instead of assigning a register pair. This has nothing to do with PR2356, but I happened to notice it while working on it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57704 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2008-10-17-Asm64bitRConstraint.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/CodeGen/X86/2008-10-17-Asm64bitRConstraint.ll (limited to 'test/CodeGen') diff --git a/test/CodeGen/X86/2008-10-17-Asm64bitRConstraint.ll b/test/CodeGen/X86/2008-10-17-Asm64bitRConstraint.ll new file mode 100644 index 0000000..eb2ec37 --- /dev/null +++ b/test/CodeGen/X86/2008-10-17-Asm64bitRConstraint.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=x86 +; RUN: llvm-as < %s | llc -march=x86-64 + +define void @test(i64 %x) nounwind { +entry: + tail call void asm sideeffect "ASM: $0", "r,~{dirflag},~{fpsr},~{flags}"(i64 %x) nounwind + ret void +} + -- cgit v1.1