Skip to content

Commit 6bf66df

Browse files
RKSimonAlexisPerry
authored andcommitted
[X86] Regenerate vector-truncate-combine.ll to check entire code sequence
1 parent 57128f1 commit 6bf66df

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

llvm/test/CodeGen/X86/vector-truncate-combine.ll

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; RUN: llc -mtriple=x86_64-- -O2 -start-after=stack-protector -stop-before=loops %s -o - | FileCheck %s
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: llc < %s -mtriple=x86_64-- -O2 | FileCheck %s
23

34
; This test verifies the fix for PR33368.
45
;
@@ -14,11 +15,14 @@
1415
; NOTE: This operation could be collapsed in to a single truncate. Once that is done
1516
; this test will have to be adjusted.
1617

17-
; CHECK: PANDrm
18-
; CHECK: PACKUSWBrr
19-
; CHECK: MOVPDI2DIrr
20-
2118
define void @test(double %vec.coerce) local_unnamed_addr {
19+
; CHECK-LABEL: test:
20+
; CHECK: # %bb.0: # %entry
21+
; CHECK-NEXT: pand {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
22+
; CHECK-NEXT: packuswb %xmm0, %xmm0
23+
; CHECK-NEXT: movd %xmm0, %eax
24+
; CHECK-NEXT: movw %ax, -{{[0-9]+}}(%rsp)
25+
; CHECK-NEXT: retq
2226
entry:
2327
%c2 = alloca <2 x i8>, align 2
2428
%0 = bitcast double %vec.coerce to <8 x i8>

0 commit comments

Comments
 (0)