1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2 ; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s 3 4 define i32 @test(i1 %A) { 5 ; CHECK-LABEL: test: 6 ; CHECK: # %bb.0: 7 ; CHECK-NEXT: movzbl {{[0-9]+}}(%esp), %eax 8 ; CHECK-NEXT: andl $1, %eax 9 ; CHECK-NEXT: negl %eax 10 ; CHECK-NEXT: movzbl %al, %eax 11 ; CHECK-NEXT: retl 12 %B = zext i1 %A to i32 13 %C = sub i32 0, %B 14 %D = and i32 %C, 255 15 ret i32 %D 16 } 17 18