xref: /llvm-project/llvm/test/CodeGen/PowerPC/aix-constant-align.ll (revision 23651c5ae02a209ff214e4283dddb5ab65d1003a)
1*23651c5aSSean Fertile; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=pwr7 < %s | \
2*23651c5aSSean Fertile; RUN:   FileCheck %s --check-prefixes=CHECK,CHECK32
3*23651c5aSSean Fertile
4*23651c5aSSean Fertile; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -mcpu=pwr7 < %s | \
5*23651c5aSSean Fertile; RUN:   FileCheck %s --check-prefixes=CHECK,CHECK64
6*23651c5aSSean Fertile
7*23651c5aSSean Fertile
8*23651c5aSSean Fertile@NOT_PI = constant double 3.000000e+00, align 8
9*23651c5aSSean Fertile
10*23651c5aSSean Fertiledefine double @PIDouble() #0 {
11*23651c5aSSean Fertile  entry:
12*23651c5aSSean Fertile    ret double 3.141590e+00
13*23651c5aSSean Fertile}
14*23651c5aSSean Fertile
15*23651c5aSSean Fertiledefine float @PIfloat() #0 {
16*23651c5aSSean Fertile  entry:
17*23651c5aSSean Fertile    ret float 0x400921FA00000000
18*23651c5aSSean Fertile}
19*23651c5aSSean Fertile
20*23651c5aSSean Fertile; CHECK:         .csect .rodata.8[RO],3
21*23651c5aSSean Fertile; CHECK-NEXT:    .align  3
22*23651c5aSSean Fertile; CHECK-NEXT:  L..CPI0_0:
23*23651c5aSSean Fertile; CHECK32-NEXT:  .vbyte  4, 1074340345
24*23651c5aSSean Fertile; CHECK32-NEXT:  .vbyte  4, 4028335726
25*23651c5aSSean Fertile; CHECK64-NEXT:  .vbyte  8, 0x400921f9f01b866e
26*23651c5aSSean Fertile
27*23651c5aSSean Fertile
28*23651c5aSSean Fertile; CHECK:         .csect .rodata[RO],2
29*23651c5aSSean Fertile; CHECK-NEXT:    .align  2
30*23651c5aSSean Fertile; CHECK-NEXT:  L..CPI1_0:
31*23651c5aSSean Fertile; CHECK-NEXT:    .vbyte  4, 0x40490fd0
32*23651c5aSSean Fertile
33*23651c5aSSean Fertile; CHECK:         .csect NOT_PI[RO],3
34