From 67c32a98315f785a9ec9d531c1f571a0196c7463 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 18 Jan 2015 16:17:27 +0000 Subject: Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_360/rc1@226102 --- test/CodeGen/X86/x86-inline-asm-validation.ll | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 test/CodeGen/X86/x86-inline-asm-validation.ll (limited to 'test/CodeGen/X86/x86-inline-asm-validation.ll') diff --git a/test/CodeGen/X86/x86-inline-asm-validation.ll b/test/CodeGen/X86/x86-inline-asm-validation.ll new file mode 100644 index 000000000000..56bdc48b0e4c --- /dev/null +++ b/test/CodeGen/X86/x86-inline-asm-validation.ll @@ -0,0 +1,34 @@ +; RUN: llc -mtriple i686-gnu -filetype asm -o - %s 2>&1 | FileCheck %s + +define void @test_L_ff() { +entry: + call void asm "", "L,~{dirflag},~{fpsr},~{flags}"(i32 255) + ret void +} + +; CHECK-NOT: error: invalid operand for inline asm constraint 'L' + +define void @test_L_ffff() { +entry: + call void asm "", "L,~{dirflag},~{fpsr},~{flags}"(i32 65535) + ret void +} + +; CHECK-NOT: error: invalid operand for inline asm constraint 'L' + +define void @test_M_1() { +entry: + call void asm "", "M,~{dirflag},~{fpsr},~{flags}"(i32 1) + ret void +} + +; CHECK-NOT: error: invalid operand for inline asm constraint 'M' + +define void @test_O_64() { +entry: + call void asm "", "O,~{dirflag},~{fpsr},~{flags}"(i32 64) + ret void +} + +; CHECK-NOT: error: invalid operand for inline asm constraint 'O' + -- cgit v1.2.3