diff options
author | Tim Northover <tnorthover@apple.com> | 2014-05-26 17:21:53 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-05-26 17:21:53 +0000 |
commit | 4146695fb264a617a272f3dfd05b99b342e2b037 (patch) | |
tree | 3bd76fa7d4a3ea5cdf3f5ecd7eb38bbfbcaa7c82 /test/CodeGen/AArch64 | |
parent | 90e79a50bb0d198edb226cccc338fe4333466b5e (diff) | |
download | llvm-4146695fb264a617a272f3dfd05b99b342e2b037.tar.gz llvm-4146695fb264a617a272f3dfd05b99b342e2b037.tar.bz2 llvm-4146695fb264a617a272f3dfd05b99b342e2b037.tar.xz |
AArch64: simplify calling conventions slightly.
We can eliminate the custom C++ code in favour of some TableGen to
check the same things. Functionality should be identical, except for a
buffer overrun that was present in the C++ code and meant webkit
failed if any small argument needed to be passed on the stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/AArch64')
-rw-r--r-- | test/CodeGen/AArch64/arm64-patchpoint.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/arm64-patchpoint.ll b/test/CodeGen/AArch64/arm64-patchpoint.ll index 9ef1d778a3..039cdfcc38 100644 --- a/test/CodeGen/AArch64/arm64-patchpoint.ll +++ b/test/CodeGen/AArch64/arm64-patchpoint.ll @@ -161,3 +161,11 @@ define void @clobberScratch(i32* %p) { declare void @llvm.experimental.stackmap(i64, i32, ...) declare void @llvm.experimental.patchpoint.void(i64, i32, i8*, i32, ...) declare i64 @llvm.experimental.patchpoint.i64(i64, i32, i8*, i32, ...) + +; CHECK-LABEL: test_i16: +; CHECK: ldrh [[BREG:w[0-9]+]], [sp] +; CHECK: add w0, w0, [[BREG]] +define webkit_jscc i16 @test_i16(i16 zeroext %a, i16 zeroext %b) { + %sum = add i16 %a, %b + ret i16 %sum +} |