xref: /llvm-project/llvm/test/CodeGen/ARM/preferred-function-alignment.ll (revision d4f38f43f5402041dd36977baa459830011d6ac6)
1; RUN: llc -mtriple=arm-none-eabi -mcpu=cortex-m85 < %s | FileCheck --check-prefixes=CHECK,ALIGN-64,ALIGN-CS-16 %s
2; RUN: llc -mtriple=arm-none-eabi -mcpu=cortex-m23 < %s | FileCheck --check-prefixes=CHECK,ALIGN-16,ALIGN-CS-16 %s
3
4; RUN: llc -mtriple=arm-none-eabi -mcpu=cortex-a5 < %s  | FileCheck --check-prefixes=CHECK,ALIGN-32,ALIGN-CS-32 %s
5; RUN: llc -mtriple=arm-none-eabi -mcpu=cortex-m33 < %s | FileCheck --check-prefixes=CHECK,ALIGN-32,ALIGN-CS-16 %s
6; RUN: llc -mtriple=arm-none-eabi -mcpu=cortex-m55 < %s | FileCheck --check-prefixes=CHECK,ALIGN-32,ALIGN-CS-16 %s
7; RUN: llc -mtriple=arm-none-eabi -mcpu=cortex-m7 < %s | FileCheck --check-prefixes=CHECK,ALIGN-64,ALIGN-CS-16 %s
8
9; CHECK-LABEL: test
10; ALIGN-16: .p2align 1
11; ALIGN-32: .p2align 2
12; ALIGN-64: .p2align 3
13
14define void @test() {
15  ret void
16}
17
18; CHECK-LABEL: test_optsize
19; ALIGN-CS-16: .p2align 1
20; ALIGN-CS-32: .p2align 2
21
22define void @test_optsize() optsize {
23  ret void
24}
25