Files
clang-p2996/llvm/test/MC/AsmParser/macro-same-context.ll
Jinsong Ji a9cc662722 [AIX] Remove XFAIL from macro-same-context
We have enabled inline asm intergrated assembler support,
this test is passing now.
2021-08-19 14:52:58 +00:00

13 lines
469 B
LLVM

;; Test that macros in inline assembly blocks share the same context,
;; thus a definition is available to the whole file. PR36110
; UNSUPPORTED: -zos
; RUN: not llc < %s 2>&1 | FileCheck %s
; REQUIRES: default_triple
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
}