[PATCH] D132277: [NFC] Move a test case across files.
Mingming Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 30 14:18:12 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4df696fbe9ae: [NFC] Move a test case across files. (authored by mingmingl).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132277/new/
https://reviews.llvm.org/D132277
Files:
llvm/test/CodeGen/AArch64/aarch64-pmull2.ll
llvm/test/CodeGen/AArch64/pmull-ldr-merge.ll
Index: llvm/test/CodeGen/AArch64/pmull-ldr-merge.ll
===================================================================
--- llvm/test/CodeGen/AArch64/pmull-ldr-merge.ll
+++ llvm/test/CodeGen/AArch64/pmull-ldr-merge.ll
@@ -62,19 +62,4 @@
ret void
}
-; Operand %4 is the higher-half of v2i64, and operand %2 is an input parameter of i64.
-; Test that %2 is duplicated into the proper lane of SIMD directly for optimal codegen.
-define void @test4(ptr %0, <2 x i64> %1, i64 %2) {
-; CHECK-LABEL: test4:
-; CHECK: // %bb.0:
-; CHECK-NEXT: dup v1.2d, x1
-; CHECK-NEXT: pmull2 v0.1q, v0.2d, v1.2d
-; CHECK-NEXT: str q0, [x0]
-; CHECK-NEXT: ret
- %4 = extractelement <2 x i64> %1, i64 1
- %5 = tail call <16 x i8> @llvm.aarch64.neon.pmull64(i64 %4, i64 %2)
- store <16 x i8> %5, ptr %0, align 16
- ret void
-}
-
declare <16 x i8> @llvm.aarch64.neon.pmull64(i64, i64)
Index: llvm/test/CodeGen/AArch64/aarch64-pmull2.ll
===================================================================
--- llvm/test/CodeGen/AArch64/aarch64-pmull2.ll
+++ llvm/test/CodeGen/AArch64/aarch64-pmull2.ll
@@ -60,4 +60,19 @@
ret void
}
+; Operand %4 is the higher-half of v2i64, and operand %2 is an input parameter of i64.
+; Test that %2 is duplicated into the proper lane of SIMD directly for optimal codegen.
+define void @test3(ptr %0, <2 x i64> %1, i64 %2) {
+; CHECK-LABEL: test3:
+; CHECK: // %bb.0:
+; CHECK-NEXT: dup v1.2d, x1
+; CHECK-NEXT: pmull2 v0.1q, v0.2d, v1.2d
+; CHECK-NEXT: str q0, [x0]
+; CHECK-NEXT: ret
+ %4 = extractelement <2 x i64> %1, i64 1
+ %5 = tail call <16 x i8> @llvm.aarch64.neon.pmull64(i64 %4, i64 %2)
+ store <16 x i8> %5, ptr %0, align 16
+ ret void
+}
+
declare <16 x i8> @llvm.aarch64.neon.pmull64(i64, i64)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132277.456795.patch
Type: text/x-patch
Size: 1775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220830/b228ae0d/attachment.bin>
More information about the llvm-commits
mailing list