brintos

brintos / llvm-project-archived public Read only

0
0
Text · 507 B · 1e58830 Raw
13 lines · plain
1;; Test that macros in inline assembly blocks share the same context,2;; thus a definition is available to the whole file. PR361103; UNSUPPORTED: target={{.*}}-zos{{.*}},target=nvptx{{.*}}4; RUN: not llc < %s 2>&1 | FileCheck %s5; REQUIRES: default_triple6 7define void @test() {8  call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #19  call void asm sideeffect ".macro FOO\0A.endm", "~{dirflag},~{fpsr},~{flags}"() #110; CHECK: error: macro 'FOO' is already defined11  ret void12}13