1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/CodeGen/X86/inline-asm-bad-constraint-n.ll

11 lines
293 B
LLVM
Raw Normal View History

; RUN: not llc -march=x86 -no-integrated-as < %s 2>&1 | FileCheck %s
@x = global i32 0, align 4
;CHECK: error: invalid operand for inline asm constraint 'n'
define void @foo() {
%a = getelementptr i32, i32* @x, i32 1
call void asm sideeffect "foo $0", "n"(i32* %a) nounwind
ret void
}