1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -march=x86 -mcpu=corei7-avx | FileCheck %s 2 3 4 define <2 x double> @fabs_v2f64(<2 x double> %p) 5 { 6 ; CHECK: fabs_v2f64 7 ; CHECK: vandps 8 %t = call <2 x double> @llvm.fabs.v2f64(<2 x double> %p) 9 ret <2 x double> %t 10 } 11 declare <2 x double> @llvm.fabs.v2f64(<2 x double> %p) 12 13 define <4 x float> @fabs_v4f32(<4 x float> %p) 14 { 15 ; CHECK: fabs_v4f32 16 ; CHECK: vandps 17 %t = call <4 x float> @llvm.fabs.v4f32(<4 x float> %p) 18 ret <4 x float> %t 19 } 20 declare <4 x float> @llvm.fabs.v4f32(<4 x float> %p) 21 22 define <4 x double> @fabs_v4f64(<4 x double> %p) 23 { 24 ; CHECK: fabs_v4f64 25 ; CHECK: vandps 26 %t = call <4 x double> @llvm.fabs.v4f64(<4 x double> %p) 27 ret <4 x double> %t 28 } 29 declare <4 x double> @llvm.fabs.v4f64(<4 x double> %p) 30 31 define <8 x float> @fabs_v8f32(<8 x float> %p) 32 { 33 ; CHECK: fabs_v8f32 34 ; CHECK: vandps 35 %t = call <8 x float> @llvm.fabs.v8f32(<8 x float> %p) 36 ret <8 x float> %t 37 } 38 declare <8 x float> @llvm.fabs.v8f32(<8 x float> %p) 39