This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / CodeGen / X86 / 2010-07-29-SetccSimplify.ll
blob96016cfe1c730cc0b651ee367d72d32548c3082f
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
3 define i32 @extend2bit_v2(i32 %val) {
4 entry:
5   %0 = trunc i32 %val to i2                       ; <i2> [#uses=1]
6   %1 = sext i2 %0 to i32                          ; <i32> [#uses=1]
7   %2 = icmp eq i32 %1, 3                          ; <i1> [#uses=1]
8   %3 = zext i1 %2 to i32                          ; <i32> [#uses=1]
9   ret i32 %3
12 ; CHECK: extend2bit_v2:
13 ; CHECK: xorl   %eax, %eax
14 ; CHECK-NEXT: ret