diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-02 20:32:05 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-02 20:32:05 +0000 |
commit | 396e5e328ccae90acc6dff60f4957af8cc53c955 (patch) | |
tree | f7a5c606ed284f87af842f4b3737d326a0639d2c /test/CodeGen/ARM/Windows/no-ehabi.ll | |
parent | bc413d65a27548004a97c25e0bb82489246d85b9 (diff) | |
download | llvm-396e5e328ccae90acc6dff60f4957af8cc53c955.tar.gz llvm-396e5e328ccae90acc6dff60f4957af8cc53c955.tar.bz2 llvm-396e5e328ccae90acc6dff60f4957af8cc53c955.tar.xz |
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
Diffstat (limited to 'test/CodeGen/ARM/Windows/no-ehabi.ll')
-rw-r--r-- | test/CodeGen/ARM/Windows/no-ehabi.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/Windows/no-ehabi.ll b/test/CodeGen/ARM/Windows/no-ehabi.ll new file mode 100644 index 0000000000..4119b6da96 --- /dev/null +++ b/test/CodeGen/ARM/Windows/no-ehabi.ll @@ -0,0 +1,21 @@ +; 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 {{{.*}}} + |