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
12define i32 @f(i64 %z) #0 {
13    ret i32 0
14}
15
16define i32 @g(i64 %z) #1 {
17    ret i32 1
18}
19
20attributes #0 = { noinline optnone }
21
22attributes #1 = { minsize optsize }
23
24