view test/CodeGen/X86/2008-02-14-BitMiscompile.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 1172e4bd9c6f
line wrap: on
line source

; RUN: llc < %s -march=x86 | grep and
define i32 @test(i1 %A) {
	%B = zext i1 %A to i32		; <i32> [#uses=1]
	%C = sub i32 0, %B		; <i32> [#uses=1]
	%D = and i32 %C, 255		; <i32> [#uses=1]
	ret i32 %D
}