[llvm] r235228 - AArch64: Add test for returning [2 x i64] in registers. NFC.
Pete Cooper
peter_cooper at apple.com
Fri Apr 17 14:31:26 PDT 2015
Author: pete
Date: Fri Apr 17 16:31:25 2015
New Revision: 235228
URL: http://llvm.org/viewvc/llvm-project?rev=235228&view=rev
Log:
AArch64: Add test for returning [2 x i64] in registers. NFC.
Modified:
llvm/trunk/test/CodeGen/AArch64/arm64-aapcs.ll
Modified: llvm/trunk/test/CodeGen/AArch64/arm64-aapcs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/arm64-aapcs.ll?rev=235228&r1=235227&r2=235228&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/arm64-aapcs.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/arm64-aapcs.ll Fri Apr 17 16:31:25 2015
@@ -2,6 +2,7 @@
@var = global i32 0, align 4
+; CHECK-LABEL: @test_i128_align
define i128 @test_i128_align(i32, i128 %arg, i32 %after) {
store i32 %after, i32* @var, align 4
; CHECK: str w4, [{{x[0-9]+}}, :lo12:var]
@@ -11,6 +12,16 @@ define i128 @test_i128_align(i32, i128 %
; CHECK: mov x1, x3
}
+; CHECK-LABEL: @test_i64x2_align
+define [2 x i64] @test_i64x2_align(i32, [2 x i64] %arg, i32 %after) {
+ store i32 %after, i32* @var, align 4
+; CHECK: str w3, [{{x[0-9]+}}, :lo12:var]
+
+ ret [2 x i64] %arg
+; CHECK: mov x0, x1
+; CHECK: mov x1, x2
+}
+
@var64 = global i64 0, align 8
; Check stack slots are 64-bit at all times.
More information about the llvm-commits
mailing list