From 05b0a498329c4b5db367120e5c9358bb74346131 Mon Sep 17 00:00:00 2001 From: David Green Date: Thu, 28 Apr 2022 14:28:45 +0100 Subject: [PATCH] [AArch64] Add a fp128 shuffle test. NFC These legalize to scalar types, so it's useful to have a test case that covers them. --- llvm/test/Analysis/CostModel/AArch64/shuffle-other.ll | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/test/Analysis/CostModel/AArch64/shuffle-other.ll b/llvm/test/Analysis/CostModel/AArch64/shuffle-other.ll index 3a3c780..3d808c7 100644 --- a/llvm/test/Analysis/CostModel/AArch64/shuffle-other.ll +++ b/llvm/test/Analysis/CostModel/AArch64/shuffle-other.ll @@ -15,6 +15,7 @@ define void @shuffle() { ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v15 = shufflevector <4 x i32> undef, <4 x i32> undef, <4 x i32> ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16 = shufflevector <2 x float> undef, <2 x float> undef, <2 x i32> ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v17 = shufflevector <4 x float> undef, <4 x float> undef, <4 x i32> +; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v18 = shufflevector <2 x fp128> undef, <2 x fp128> undef, <2 x i32> ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; %v7 = shufflevector <2 x i8> undef, <2 x i8> undef, <2 x i32> @@ -33,6 +34,8 @@ define void @shuffle() { %v16 = shufflevector <2 x float> undef, <2 x float> undef, <2 x i32> %v17 = shufflevector <4 x float> undef, <4 x float> undef, <4 x i32> + %v18 = shufflevector <2 x fp128> undef, <2 x fp128> undef, <2 x i32> + ret void } -- 2.7.4