File: aix-func-align.ll

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (50 lines) | stat: -rw-r--r-- 1,852 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
; This test tries to verify if a csect containing code would have the correct alignment.

; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc-ibm-aix-xcoff \
; RUN:     -xcoff-traceback-table=false < %s | FileCheck %s
; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \
; RUN:     -xcoff-traceback-table=false < %s | FileCheck %s

; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc-ibm-aix-xcoff \
; RUN:     -xcoff-traceback-table=false -filetype=obj -o %t.o < %s
; RUN: llvm-readobj --syms %t.o | FileCheck --check-prefixes=SYMS,SYMS32 %s

; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \
; RUN:     -xcoff-traceback-table=false -filetype=obj -o %t64.o < %s
; RUN: llvm-readobj --syms %t64.o | FileCheck --check-prefixes=SYMS,SYMS64 %s

define i32 @foo()  align 32 {
entry:
  ret i32 0
}

define i32 @bar()  align 64 {
entry:
  ret i32 0
}

; CHECK:      .csect ..text..[PR],6
; CHECK-NEXT: .foo:

; CHECK:      .csect ..text..[PR],6
; CHECK-NEXT: .bar:

; SYMS:       Symbol {{[{][[:space:]] *}}Index: [[#INDX:]]{{[[:space:]] *Name: $}}
; SYMS-NEXT:    Value (RelocatableAddress): 0x0
; SYMS-NEXT:    Section: .text
; SYMS-NEXT:    Type: 0x0
; SYMS-NEXT:    StorageClass: C_HIDEXT (0x6B)
; SYMS-NEXT:    NumberOfAuxEntries: 1
; SYMS-NEXT:    CSECT Auxiliary Entry {
; SYMS-NEXT:      Index: [[#INDX+1]]
; SYMS-NEXT:      SectionLen: 72
; SYMS-NEXT:      ParameterHashIndex: 0x0
; SYMS-NEXT:      TypeChkSectNum: 0x0
; SYMS-NEXT:      SymbolAlignmentLog2: 6
; SYMS-NEXT:      SymbolType: XTY_SD (0x1)
; SYMS-NEXT:      StorageMappingClass: XMC_PR (0x0)
; SYMS32-NEXT:    StabInfoIndex: 0x0
; SYMS32-NEXT:    StabSectNum: 0x0
; SYMS64-NEXT:    Auxiliary Type: AUX_CSECT (0xFB)
; SYMS-NEXT:    }
; SYMS-NEXT:  }