AVX-512: added SQRT, VRSQRT14, VCOMISS, VUCOMISS, VRCP14, VPABS
[oota-llvm.git] / test / CodeGen / X86 / avx512-cmp.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl | FileCheck %s
2
3 ; CHECK: vucomisdz
4 define double @test1(double %a, double %b) nounwind {
5   %tobool = fcmp une double %a, %b
6   br i1 %tobool, label %l1, label %l2
7
8 l1:
9   %c = fsub double %a, %b
10   ret double %c
11 l2:
12   %c1 = fadd double %a, %b
13   ret double %c1
14 }
15
16 ; CHECK: vucomissz
17 define float @test2(float %a, float %b) nounwind {
18   %tobool = fcmp olt float %a, %b
19   br i1 %tobool, label %l1, label %l2
20
21 l1:
22   %c = fsub float %a, %b
23   ret float %c
24 l2:
25   %c1 = fadd float %a, %b
26   ret float %c1
27 }