xref: /llvm-project/llvm/test/CodeGen/X86/2011-09-18-sse2cmp.ll (revision 6b898beb8e6bf5739d43c1d64646264afc595de8)
1;RUN: llc < %s -mtriple=i686-- -mcpu=yonah -mattr=+sse2,-sse4.1 | FileCheck %s
2
3;CHECK: @max
4;CHECK: cmplepd
5;CHECK: ret
6
7define <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
13