Mercurial > hg > CbC > CbC_llvm
annotate test/CodeGen/X86/2011-09-18-sse2cmp.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
rev | line source |
---|---|
0 | 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 |