xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/read-fp-no-frame-pointer.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llc < %s -mtriple=x86_64-linux-gnueabi 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine i32 @get_frame() nounwind {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker; CHECK: register ebp is allocatable: function has no frame pointer
6*9880d681SAndroid Build Coastguard Worker  %fp = call i32 @llvm.read_register.i32(metadata !0)
7*9880d681SAndroid Build Coastguard Worker  ret i32 %fp
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerdeclare i32 @llvm.read_register.i32(metadata) nounwind
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker!0 = !{!"ebp\00"}
13