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