This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / CodeGen / X86 / 2008-02-14-BitMiscompile.ll
blob1983f1d19c6f8485d2daadc1853860993bda8b62
1 ; RUN: llc < %s -march=x86 | grep and
2 define i32 @test(i1 %A) {
3         %B = zext i1 %A to i32          ; <i32> [#uses=1]
4         %C = sub i32 0, %B              ; <i32> [#uses=1]
5         %D = and i32 %C, 255            ; <i32> [#uses=1]
6         ret i32 %D