1*9880d681SAndroid Build Coastguard Worker; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+avx | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdefine <8 x i32> @test(<8 x float> %a, <8 x float> %b) { 5*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test: 6*9880d681SAndroid Build Coastguard Worker; CHECK: ## BB#0: 7*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: vaddps %ymm1, %ymm0, %ymm2 8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: vmulps %ymm0, %ymm1, %ymm1 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: vsubps %ymm2, %ymm1, %ymm3 10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: vcmpltps %ymm1, %ymm0, %ymm0 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: vcmpltps %ymm3, %ymm2, %ymm1 12*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: vandps %ymm1, %ymm0, %ymm0 13*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: vandps {{.*}}(%rip), %ymm0, %ymm0 14*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: retq 15*9880d681SAndroid Build Coastguard Worker %c1 = fadd <8 x float> %a, %b 16*9880d681SAndroid Build Coastguard Worker %b1 = fmul <8 x float> %b, %a 17*9880d681SAndroid Build Coastguard Worker %d = fsub <8 x float> %b1, %c1 18*9880d681SAndroid Build Coastguard Worker %res1 = fcmp olt <8 x float> %a, %b1 19*9880d681SAndroid Build Coastguard Worker %res2 = fcmp olt <8 x float> %c1, %d 20*9880d681SAndroid Build Coastguard Worker %andr = and <8 x i1>%res1, %res2 21*9880d681SAndroid Build Coastguard Worker %ex = zext <8 x i1> %andr to <8 x i32> 22*9880d681SAndroid Build Coastguard Worker ret <8 x i32>%ex 23*9880d681SAndroid Build Coastguard Worker} 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Worker 26