Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/2010-07-29-SetccSimplify.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 |
line wrap: on
line source
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s define i32 @extend2bit_v2(i32 %val) { entry: %0 = trunc i32 %val to i2 ; <i2> [#uses=1] %1 = sext i2 %0 to i32 ; <i32> [#uses=1] %2 = icmp eq i32 %1, 3 ; <i1> [#uses=1] %3 = zext i1 %2 to i32 ; <i32> [#uses=1] ret i32 %3 } ; CHECK-LABEL: extend2bit_v2: ; CHECK: xorl %eax, %eax ; CHECK-NEXT: ret