brintos

brintos / llvm-project-archived public Read only

0
0
Text · 441 B · d27a746 Raw
17 lines · plain
1; RUN: not llc -mtriple=i686-- -no-integrated-as < %s 2>&1 | FileCheck %s2 3@x = global i32 0, align 44 5; CHECK: error: constraint 'n' expects an integer constant expression6define void @foo() {7  %a = getelementptr i32, ptr @x, i32 18  call void asm sideeffect "foo $0", "n"(ptr %a) nounwind9  ret void10}11 12; CHECK: error: invalid operand for inline asm constraint 'i'13define void @bar(i32 %v) {14  call void asm "", "in"(i32 %v)15  ret void16}17