xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/build-attributes-optimization.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O0 | FileCheck %s --check-prefix=NONE
2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O1 | FileCheck %s --check-prefix=SPEED
3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O3 | FileCheck %s --check-prefix=MAXSPEED
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O0 -filetype obj -o - | llvm-readobj -arm-attributes - | FileCheck %s --check-prefix=NONE-OBJ
6*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O1 -filetype obj -o - | llvm-readobj -arm-attributes - | FileCheck %s --check-prefix=SPEED-OBJ
7*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-none-none-eabi -mcpu=cortex-a7 -O3 -filetype obj -o - | llvm-readobj -arm-attributes - | FileCheck %s --check-prefix=MAXSPEED-OBJ
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker; NONE:     .eabi_attribute 30, 5	@ Tag_ABI_optimization_goals
10*9880d681SAndroid Build Coastguard Worker; SPEED:    .eabi_attribute 30, 1	@ Tag_ABI_optimization_goals
11*9880d681SAndroid Build Coastguard Worker; MAXSPEED: .eabi_attribute 30, 2	@ Tag_ABI_optimization_goals
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; NONE-OBJ:          TagName: ABI_optimization_goals
14*9880d681SAndroid Build Coastguard Worker; NONE-OBJ-NEXT:     Description: Debugging
15*9880d681SAndroid Build Coastguard Worker; SPEED-OBJ:         TagName: ABI_optimization_goals
16*9880d681SAndroid Build Coastguard Worker; SPEED-OBJ-NEXT:    Description: Speed
17*9880d681SAndroid Build Coastguard Worker; MAXSPEED-OBJ:      TagName: ABI_optimization_goals
18*9880d681SAndroid Build Coastguard Worker; MAXSPEED-OBJ-NEXT: Description: Aggressive Speed
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Workerdefine i32 @f(i64 %z) {
21*9880d681SAndroid Build Coastguard Worker    ret i32 0
22*9880d681SAndroid Build Coastguard Worker}
23*9880d681SAndroid Build Coastguard Worker
24