[ARM] Generate ABI_optimization_goals build attribute, as described in the ARM ARM.
[oota-llvm.git] / test / CodeGen / ARM / build-attributes-optimization-mixed.ll
1 ; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O0 | FileCheck %s
2 ; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O1 | FileCheck %s
3 ; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O3 | FileCheck %s
4
5 ; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O0 -filetype obj -o - | llvm-readobj -arm-attributes - | FileCheck %s
6 ; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O1 -filetype obj -o - | llvm-readobj -arm-attributes - | FileCheck %s
7 ; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O3 -filetype obj -o - | llvm-readobj -arm-attributes - | FileCheck %s
8
9 ; CHECK-NOT: .eabi_attribute 30
10 ; CHECK-NOT: Tag_ABI_optimization_goals
11
12 define i32 @f(i64 %z) #0 {
13     ret i32 0
14 }
15
16 define i32 @g(i64 %z) #1 {
17     ret i32 1
18 }
19
20 attributes #0 = { noinline optnone }
21
22 attributes #1 = { minsize optsize }
23