1 ; RUN: llc < %s -mtriple=x86_64-windows-msvc | FileCheck %s --check-prefix=CHECK 2 ; RUN: llc < %s -mtriple=x86_64-windows-gnu | FileCheck %s --check-prefix=CHECK 3 4 define i32 @pass_bool(i1 zeroext %b) { 5 entry: 6 %cond = select i1 %b, i32 66, i32 0 7 ret i32 %cond 8 } 9 10 ; CHECK-LABEL: pass_bool: 11 ; CHECK-DAG: testb %cl, %cl 12 ; CHECK-DAG: movl $66, 13 ; CHECK: cmovel {{.*}}, %eax 14 ; CHECK: retq 15 16 define zeroext i1 @ret_true() { 17 entry: 18 ret i1 true 19 } 20 21 ; CHECK-LABEL: ret_true: 22 ; CHECK: movb $1, %al 23 ; CHECK: retq 24