llvm-project/llvm/test/MC/AsmParser/macro-same-context.ll
Paul Robinson f4eb87f403 [NVPTX] Convert tests to check 'target=nvptx.*'
Part of the project to eliminate special handling for triples in lit
expressions.
2022-12-01 09:01:48 -08:00

13 lines
488 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,target=nvptx{{.*}}
; 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
}