1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding | FileCheck %s
4 ; CHECK: vucomisd {{.*}}encoding: [0x62
5 define double @test1(double %a, double %b) nounwind {
6 %tobool = fcmp une double %a, %b
7 br i1 %tobool, label %l1, label %l2
10 %c = fsub double %a, %b
13 %c1 = fadd double %a, %b
18 ; CHECK: vucomiss {{.*}}encoding: [0x62
19 define float @test2(float %a, float %b) nounwind {
20 %tobool = fcmp olt float %a, %b
21 br i1 %tobool, label %l1, label %l2
24 %c = fsub float %a, %b
27 %c1 = fadd float %a, %b
35 define i32 @test3(float %a, float %b) {
37 %cmp10.i = fcmp oeq float %a, %b
38 %conv11.i = zext i1 %cmp10.i to i32
46 declare i32 @llvm.x86.avx512.kortestz.w(i16, i16)
48 define i16 @test4(i16 %a, i16 %b) {
49 %kortz = call i32 @llvm.x86.avx512.kortestz.w(i16 %a, i16 %b)
50 %t1 = and i32 %kortz, 1
51 %res = icmp eq i32 %t1, 0
52 br i1 %res, label %A, label %B
63 define float @test5(float %p) #0 {
65 %cmp = fcmp oeq float %p, 0.000000e+00
66 br i1 %cmp, label %return, label %if.end
68 if.end: ; preds = %entry
69 %cmp1 = fcmp ogt float %p, 0.000000e+00
70 %cond = select i1 %cmp1, float 1.000000e+00, float -1.000000e+00
73 return: ; preds = %if.end, %entry
74 %retval.0 = phi float [ %cond, %if.end ], [ %p, %entry ]