Skip to content

Commit a82ca1c

Browse files
committed
[X86] insertps-from-constantpool.ll - replace X32 check prefixes with X86 and expose address math
We try to only use X32 for gnux32 triple tests. Use no_x86_scrub_mem_shuffle so the test shows updated shuffle intermediate and the +4 offset into the constant pool vector entry
1 parent 912cdd2 commit a82ca1c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

llvm/test/CodeGen/X86/insertps-from-constantpool.ll

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
; RUN: llc -mtriple=i686-unknown-unknown -mattr=+sse4.1 < %s | FileCheck %s --check-prefix=X32
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no_x86_scrub_mem_shuffle --version 4
2+
; RUN: llc -mtriple=i686-unknown-unknown -mattr=+sse4.1 < %s | FileCheck %s --check-prefix=X86
23
; RUN: llc -mtriple=x86_64-unknown-unknown -mattr=+sse4.1 < %s | FileCheck %s --check-prefix=X64
34

45
; Test for case where insertps folds the load of an insertion element from a constant pool.
56

67
define <4 x float> @fold_from_constantpool(<4 x float> %a) {
7-
; X32-LABEL: fold_from_constantpool:
8-
; X32: # %bb.0:
9-
; X32-NEXT: insertps {{.*#+}} xmm0 = mem[0],xmm0[1,2,3]
10-
; X32-NEXT: retl
8+
; X86-LABEL: fold_from_constantpool:
9+
; X86: # %bb.0:
10+
; X86-NEXT: insertps $0, {{\.?LCPI[0-9]+_[0-9]+}}+4, %xmm0 # xmm0 = mem[0],xmm0[1,2,3]
11+
; X86-NEXT: retl
1112
;
1213
; X64-LABEL: fold_from_constantpool:
1314
; X64: # %bb.0:
14-
; X64-NEXT: insertps {{.*#+}} xmm0 = mem[0],xmm0[1,2,3]
15+
; X64-NEXT: insertps $0, {{\.?LCPI[0-9]+_[0-9]+}}+4(%rip), %xmm0 # xmm0 = mem[0],xmm0[1,2,3]
1516
; X64-NEXT: retq
1617
%1 = call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %a, <4 x float> <float 0.0, float 1.0, float 0.0, float 0.0>, i8 64)
1718
ret <4 x float> %1

0 commit comments

Comments
 (0)