bolt/deps/llvm-18.1.8/llvm/test/CodeGen/X86/inline-asm-bad-constraint-n.ll

17 lines
441 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: not llc -mtriple=i686-- -no-integrated-as < %s 2>&1 | FileCheck %s
@x = global i32 0, align 4
; CHECK: error: constraint 'n' expects an integer constant expression
define void @foo() {
%a = getelementptr i32, ptr @x, i32 1
call void asm sideeffect "foo $0", "n"(ptr %a) nounwind
ret void
}
; CHECK: error: invalid operand for inline asm constraint 'i'
define void @bar(i32 %v) {
call void asm "", "in"(i32 %v)
ret void
}