summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-05-26 17:21:53 +0000
committerTim Northover <tnorthover@apple.com>2014-05-26 17:21:53 +0000
commit47e003c65d11fcf1d8eddc0b7dcea6a615f6b20e (patch)
treecbf4de729ba8b0004ca0d489fb82aebe1314b274 /llvm/test/CodeGen
parent5a1ef6b4112cd55206d7a1016560dc3946491c82 (diff)
downloadbcm5719-llvm-47e003c65d11fcf1d8eddc0b7dcea6a615f6b20e.tar.gz
bcm5719-llvm-47e003c65d11fcf1d8eddc0b7dcea6a615f6b20e.zip
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. llvm-svn: 209636
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AArch64/arm64-patchpoint.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/arm64-patchpoint.ll b/llvm/test/CodeGen/AArch64/arm64-patchpoint.ll
index 9ef1d778a31..039cdfcc385 100644
--- a/llvm/test/CodeGen/AArch64/arm64-patchpoint.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud