1 ; RUN: not llc -mtriple=x86_64-linux-gnu -o - %s 2>&1 | FileCheck %s
3 ; Test that the blockaddress with X, i, or s constraint is printed as an
5 ; Test that blockaddress with n constraint is an error.
7 ; CHECK: error: constraint 'n' expects an integer constant expression
9 ; CHECK: # %bb.0: # %entry
10 ; CHECK-NEXT: .Ltmp0: # Block address taken
11 ; CHECK-NEXT: # %bb.1: # %b
13 ; CHECK-NEXT: # .Ltmp0 .Ltmp0 .Ltmp0
19 call void asm "# $0 $1 $2", "X,i,s"(ptr blockaddress(@test1, %b), ptr blockaddress(@test1, %b), ptr blockaddress(@test1, %b))
20 call void asm "# $0", "n"(ptr blockaddress(@test1, %b))