[llvm] r283436 - Add test-cases which demontrate pr30561
Zvi Rackover via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 6 03:04:00 PDT 2016
Author: zvi
Date: Thu Oct 6 05:04:00 2016
New Revision: 283436
URL: http://llvm.org/viewvc/llvm-project?rev=283436&view=rev
Log:
Add test-cases which demontrate pr30561
Modified:
llvm/trunk/test/CodeGen/X86/avx512-select.ll
Modified: llvm/trunk/test/CodeGen/X86/avx512-select.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-select.ll?rev=283436&r1=283435&r2=283436&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx512-select.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx512-select.ll Thu Oct 6 05:04:00 2016
@@ -158,3 +158,29 @@ define i64 @pr30249() {
%v = select i1 undef , i64 1, i64 2
ret i64 %v
}
+
+define double @pr30561_f64(double %a, double %b, i1 %c) {
+; CHECK-LABEL: pr30561_f64:
+; CHECK: ## BB#0:
+; CHECK-NEXT: testb $1, %dil
+; CHECK-NEXT: jne LBB11_2
+; CHECK-NEXT: ## BB#1:
+; CHECK-NEXT: vmovaps %xmm1, %xmm0
+; CHECK-NEXT: LBB11_2:
+; CHECK-NEXT: retq
+ %cond = select i1 %c, double %a, double %b
+ ret double %cond
+}
+
+define float @pr30561_f32(float %a, float %b, i1 %c) {
+; CHECK-LABEL: pr30561_f32:
+; CHECK: ## BB#0:
+; CHECK-NEXT: testb $1, %dil
+; CHECK-NEXT: jne LBB12_2
+; CHECK-NEXT: ## BB#1:
+; CHECK-NEXT: vmovaps %xmm1, %xmm0
+; CHECK-NEXT: LBB12_2:
+; CHECK-NEXT: retq
+ %cond = select i1 %c, float %a, float %b
+ ret float %cond
+}
More information about the llvm-commits
mailing list