[PATCH] D141677: [X86][test] Add pre-commit test for D141657.
Freddy, Ye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 05:10:09 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG53296d818a0a: [X86][test] Add pre-commit test for D141657. (authored by FreddyYe).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141677/new/
https://reviews.llvm.org/D141677
Files:
llvm/test/CodeGen/X86/prefer-fpext-splat.ll
Index: llvm/test/CodeGen/X86/prefer-fpext-splat.ll
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/X86/prefer-fpext-splat.ll
@@ -0,0 +1,17 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512vl | FileCheck %s
+
+define <4 x double> @prefer(float* %p) {
+; CHECK-LABEL: prefer:
+; CHECK: # %bb.0: # %entry
+; CHECK-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
+; CHECK-NEXT: vcvtss2sd %xmm0, %xmm0, %xmm0
+; CHECK-NEXT: vbroadcastsd %xmm0, %ymm0
+; CHECK-NEXT: retq
+entry:
+ %0 = load float, float* %p, align 4
+ %vecinit.i = insertelement <4 x float> undef, float %0, i64 0
+ %vecinit3.i = shufflevector <4 x float> %vecinit.i, <4 x float> poison, <4 x i32> zeroinitializer
+ %conv.i = fpext <4 x float> %vecinit3.i to <4 x double>
+ ret <4 x double> %conv.i
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141677.488958.patch
Type: text/x-patch
Size: 950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/14c12836/attachment.bin>
More information about the llvm-commits
mailing list