2016-09-13 03:03:21 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
|
|
; RUN: llc -O0 -mattr=+avx512f < %s | FileCheck %s
|
|
|
|
|
|
|
|
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-apple-macosx10.11.0"
|
|
|
|
|
|
|
|
define i32 @test(float %a, float %b) {
|
|
|
|
; CHECK-LABEL: test:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: ## %bb.0:
|
2016-09-13 03:03:21 +08:00
|
|
|
; CHECK-NEXT: pushq %rax
|
|
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
2017-10-30 22:50:11 +08:00
|
|
|
; CHECK-NEXT: vucomiss %xmm1, %xmm0
|
|
|
|
; CHECK-NEXT: sete %al
|
|
|
|
; CHECK-NEXT: setnp %cl
|
|
|
|
; CHECK-NEXT: andb %cl, %al
|
|
|
|
; CHECK-NEXT: xorb $-1, %al
|
|
|
|
; CHECK-NEXT: testb $1, %al
|
2016-09-13 03:03:21 +08:00
|
|
|
; CHECK-NEXT: jne LBB0_1
|
|
|
|
; CHECK-NEXT: jmp LBB0_2
|
|
|
|
; CHECK-NEXT: LBB0_1: ## %L_0
|
|
|
|
; CHECK-NEXT: callq ___assert_rtn
|
2018-04-14 06:25:20 +08:00
|
|
|
; CHECK-NEXT: ud2
|
2016-09-13 03:03:21 +08:00
|
|
|
; CHECK-NEXT: LBB0_2: ## %L_1
|
|
|
|
; CHECK-NEXT: xorl %eax, %eax
|
|
|
|
; CHECK-NEXT: popq %rcx
|
|
|
|
; CHECK-NEXT: retq
|
|
|
|
%x10 = fcmp oeq float %a, %b
|
|
|
|
%x11 = xor i1 %x10, true
|
|
|
|
br i1 %x11, label %L_0, label %L_1
|
|
|
|
|
|
|
|
L_0: ; preds = %2
|
|
|
|
call void @__assert_rtn()
|
|
|
|
unreachable
|
|
|
|
; No predecessors!
|
|
|
|
L_1: ; preds = %2
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
; Function Attrs: noreturn
|
|
|
|
declare void @__assert_rtn()
|
|
|
|
|