[llvm] [X86][SSE] Don't emit SSE2 load instructions in SSE1-only mode (PR #134547)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 03:55:50 PDT 2025
================
@@ -251,5 +251,18 @@ define <2 x float> @PR31672() #0 {
declare <2 x float> @llvm.sqrt.v2f32(<2 x float>) #1
+define void @movaps_test(ptr nocapture noundef writeonly %v) {
+; X86-LABEL: movaps_test:
+; X86: # %bb.0:
+; X86-NEXT: movl 4(%esp), %eax
+; X86-NEXT: movaps {{\.?LCPI[0-9]+_[0-9]+}}, %xmm0
+
+; X64-LABEL: movaps_test:
+; X64: # %bb.0:
+; X64-NEXT: movaps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
+ store <2 x float> <float 2.560000e+02, float 5.120000e+02>, ptr %v, align 4
+ ret void
+}
----------------
RKSimon wrote:
This would be better adding to a new file - I've created #134607 to track this, so pr134607.ll would be a good name.
Take a look at the simplified repro I created in the issue (removes manyof the unnecessary function attributes).
https://github.com/llvm/llvm-project/pull/134547
More information about the llvm-commits
mailing list