xref: /llvm-project/llvm/test/CodeGen/PowerPC/aix-rodata-align.ll (revision 23651c5ae02a209ff214e4283dddb5ab65d1003a)
1*23651c5aSSean Fertile; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=pwr7 \
2*23651c5aSSean Fertile; RUN:     -mattr=+altivec -data-sections=false < %s | \
3*23651c5aSSean Fertile; RUN:   FileCheck %s
4*23651c5aSSean Fertile
5*23651c5aSSean Fertile; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -mcpu=pwr7 \
6*23651c5aSSean Fertile; RUN:     -mattr=+altivec -data-sections=false < %s | \
7*23651c5aSSean Fertile; RUN:   FileCheck %s
8*23651c5aSSean Fertile
9*23651c5aSSean Fertile; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=pwr7 \
10*23651c5aSSean Fertile; RUN:     -mattr=+altivec -data-sections=false -filetype=obj -o %t.o < %s
11*23651c5aSSean Fertile; RUN: llvm-objdump -D %t.o | FileCheck --check-prefix=OBJ %s
12*23651c5aSSean Fertile
13*23651c5aSSean Fertiledefine <16 x i8> @test() {
14*23651c5aSSean Fertileentry:
15*23651c5aSSean Fertile  ret <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>
16*23651c5aSSean Fertile}
17*23651c5aSSean Fertile; CHECK:        .csect .rodata.16[RO],4
18*23651c5aSSean Fertile; CHECK-NEXT:   .align  4
19*23651c5aSSean Fertile; CHECK-NEXT: L..CPI0_0:
20*23651c5aSSean Fertile; CHECK-NEXT:   .byte   0                               # 0x0
21*23651c5aSSean Fertile; CHECK-NEXT:   .byte   1                               # 0x1
22*23651c5aSSean Fertile; CHECK-NEXT:   .byte   2                               # 0x2
23*23651c5aSSean Fertile; CHECK-NEXT:   .byte   3                               # 0x3
24*23651c5aSSean Fertile; CHECK-NEXT:   .byte   4                               # 0x4
25*23651c5aSSean Fertile; CHECK-NEXT:   .byte   5                               # 0x5
26*23651c5aSSean Fertile; CHECK-NEXT:   .byte   6                               # 0x6
27*23651c5aSSean Fertile; CHECK-NEXT:   .byte   7                               # 0x7
28*23651c5aSSean Fertile; CHECK-NEXT:   .byte   8                               # 0x8
29*23651c5aSSean Fertile; CHECK-NEXT:   .byte   9                               # 0x9
30*23651c5aSSean Fertile; CHECK-NEXT:   .byte   10                              # 0xa
31*23651c5aSSean Fertile; CHECK-NEXT:   .byte   11                              # 0xb
32*23651c5aSSean Fertile; CHECK-NEXT:   .byte   12                              # 0xc
33*23651c5aSSean Fertile; CHECK-NEXT:   .byte   13                              # 0xd
34*23651c5aSSean Fertile; CHECK-NEXT:   .byte   14                              # 0xe
35*23651c5aSSean Fertile; CHECK-NEXT:   .byte   15                              # 0xf
36*23651c5aSSean Fertile
37*23651c5aSSean Fertile; OBJ-LABEL: <.rodata.16>:
38*23651c5aSSean Fertile; OBJ-NEXT:    00 01 02 03
39*23651c5aSSean Fertile; OBJ-NEXT:    04 05 06 07
40*23651c5aSSean Fertile; OBJ-NEXT:    08 09 0a 0b
41*23651c5aSSean Fertile; OBJ-NEXT:    0c 0d 0e 0f
42