xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/Windows/no-ehabi.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -o - %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdeclare void @callee(i32 %i)
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine i32 @caller(i32 %i, i32 %j, i32 %k, i32 %l, i32 %m, i32 %n, i32 %o,
6*9880d681SAndroid Build Coastguard Worker                   i32 %p) {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  %q = add nsw i32 %j, %i
9*9880d681SAndroid Build Coastguard Worker  %r = add nsw i32 %q, %k
10*9880d681SAndroid Build Coastguard Worker  %s = add nsw i32 %r, %l
11*9880d681SAndroid Build Coastguard Worker  call void @callee(i32 %s)
12*9880d681SAndroid Build Coastguard Worker  %t = add nsw i32 %n, %m
13*9880d681SAndroid Build Coastguard Worker  %u = add nsw i32 %t, %o
14*9880d681SAndroid Build Coastguard Worker  %v = add nsw i32 %u, %p
15*9880d681SAndroid Build Coastguard Worker  call void @callee(i32 %v)
16*9880d681SAndroid Build Coastguard Worker  %w = add nsw i32 %v, %s
17*9880d681SAndroid Build Coastguard Worker  ret i32 %w
18*9880d681SAndroid Build Coastguard Worker}
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: .save {{{.*}}}
21*9880d681SAndroid Build Coastguard Worker
22