[X86] Update test/CodeGen/X86/avg.ll with the help of update_llc_test_checks.py....
[oota-llvm.git] / test / CodeGen / X86 / 2011-09-18-sse2cmp.ll
1 ;RUN: llc < %s -march=x86 -mcpu=yonah -mattr=+sse2,-sse4.1 | FileCheck %s
2
3 ;CHECK: @max
4 ;CHECK: cmplepd
5 ;CHECK: ret
6
7 define <2 x double> @max(<2 x double> %x, <2 x double> %y) {
8    %max_is_x = fcmp oge <2 x double> %x, %y
9    %max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y
10    ret <2 x double> %max
11 }
12