summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/inline-asm-bad-constraint-n.ll
blob: 41d8a9baa8dd4e13bac9e731af06609edbd3fe1a (plain)
1
2
3
4
5
6
7
8
9
10
; 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
}