1;; Test that macros in inline assembly blocks share the same context,
2;; thus a definition is available to the whole file. PR36110
3; RUN: not llc < %s 2>&1 | FileCheck %s
4; REQUIRES: default_triple
5;; This test is expected to fail on AIX,
6;; since the integrated assembly parser was not implemented yet for AIX.
7; XFAIL: aix
8
9define void @test() {
10  call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #1
11  call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #1
12; CHECK: error: macro 'FOO' is already defined
13  ret void
14}
15