llvm-6502/test/CodeGen/ARM/Windows/no-ehabi.ll
Saleem Abdulrasool 396e5e328c ARM: update subtarget information for Windows on ARM
Update the subtarget information for Windows on ARM.  This enables using the MC
layer to target Windows on ARM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205459 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-02 20:32:05 +00:00

22 lines
500 B
LLVM

; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -o - %s | FileCheck %s
declare void @callee(i32 %i)
define i32 @caller(i32 %i, i32 %j, i32 %k, i32 %l, i32 %m, i32 %n, i32 %o,
i32 %p) {
entry:
%q = add nsw i32 %j, %i
%r = add nsw i32 %q, %k
%s = add nsw i32 %r, %l
call void @callee(i32 %s)
%t = add nsw i32 %n, %m
%u = add nsw i32 %t, %o
%v = add nsw i32 %u, %p
call void @callee(i32 %v)
%w = add nsw i32 %v, %s
ret i32 %w
}
; CHECK-NOT: .save {{{.*}}}