Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/setoeq.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
line wrap: on
line source
; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s define zeroext i8 @t(double %x) nounwind readnone { entry: %0 = fptosi double %x to i32 ; <i32> [#uses=1] %1 = sitofp i32 %0 to double ; <double> [#uses=1] %2 = fcmp oeq double %1, %x ; <i1> [#uses=1] %retval12 = zext i1 %2 to i8 ; <i8> [#uses=1] ; CHECK: cmpeqsd ret i8 %retval12 } define zeroext i8 @u(double %x) nounwind readnone { entry: %0 = fptosi double %x to i32 ; <i32> [#uses=1] %1 = sitofp i32 %0 to double ; <double> [#uses=1] %2 = fcmp une double %1, %x ; <i1> [#uses=1] %retval12 = zext i1 %2 to i8 ; <i8> [#uses=1] ; CHECK: cmpneqsd ret i8 %retval12 }