So that macros defined in inline assembly blocks are available to the whole file. This provides a consistent behavior with other assembly directives, since equations for example are already preserved between inline assembly blocks. PR: 36110 Patch by Roger! llvm-svn: 325139
9 lines
291 B
LLVM
9 lines
291 B
LLVM
; RUN: not llc < %s 2>&1 | FileCheck %s
|
|
|
|
define void @test() {
|
|
call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #1
|
|
call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #1
|
|
; CHECK: error: macro 'FOO' is already defined
|
|
ret void
|
|
}
|