Skip to content

Commit 5397f29

Browse files
committed
[llvm] [X86] Make test more robust against different builds
Summary: Rationale: Using the --debug-only flag requires a debug build. Also, the debug output is not always consistent over different builds. This change avoids all problems by just testing the generated assembly for AVX. Reviewers: craig.topper, mehdi_amini, nicolasvasilache Reviewed By: craig.topper Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78609
1 parent a53874b commit 5397f29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/test/CodeGen/X86/pr45563.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -debug-only=isel -O3 -mattr=avx 2>&1 | FileCheck %s
1+
; RUN: llc < %s -O3 -mattr=avx | FileCheck %s
22

33
; Bug 45563:
44
; The LowerMLOAD() method AVX masked load branch should
@@ -12,7 +12,8 @@
1212

1313
define <16 x double> @bug45563(<16 x double>* %addr, <16 x double> %dst, <16 x i64> %e, <16 x i64> %f) {
1414
; CHECK-LABEL: bug45563:
15-
; CHECK: v4f64 = vselect
15+
; CHECK: vmaskmovpd
16+
; CHECK: vblendvpd
1617
%mask = icmp slt <16 x i64> %e, %f
1718
%res = call <16 x double> @llvm.masked.load.v16f64.p0v16f64(<16 x double>* %addr, i32 4, <16 x i1>%mask, <16 x double> %dst)
1819
ret <16 x double> %res

0 commit comments

Comments
 (0)