xref: /llvm-project/llvm/test/CodeGen/PowerPC/aix-common.ll (revision 282da837565fcf8598a81b5f3b34bc25705917d3)
1*282da837SStephen Peckham; RUN: not llc -filetype=obj -mtriple powerpc-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
2*282da837SStephen Peckham; RUN: not llc -filetype=asm -mtriple powerpc-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
3*282da837SStephen Peckham; RUN: not llc -filetype=obj -mtriple powerpc64-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
4*282da837SStephen Peckham; RUN: not llc -filetype=asm -mtriple powerpc64-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
5*282da837SStephen Peckham@x= common global i32 0, align 4
6*282da837SStephen Peckham
7*282da837SStephen Peckham@y= alias i32, ptr @x
8*282da837SStephen Peckham
9*282da837SStephen Peckham; Function Attrs: noinline nounwind optnone
10*282da837SStephen Peckhamdefine ptr @g() #0 {
11*282da837SStephen Peckhamentry:
12*282da837SStephen Peckham  ret ptr @y
13*282da837SStephen Peckham}
14*282da837SStephen Peckham; CHECK: LLVM ERROR: Aliases to common variables are not allowed on AIX:
15*282da837SStephen Peckham; CHECK-NEXT:        Alias attribute for y is invalid because x is common.
16