reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
; RUN: llc < %s -mtriple=i686-windows-msvc | FileCheck %s
; RUN: llc < %s -mtriple=i686-windows-gnu | FileCheck %s

define x86_fastcallcc i32 @pass_fast_bool(i1 inreg zeroext %b) {
entry:
  %cond = select i1 %b, i32 66, i32 0
  ret i32 %cond
}

; CHECK-LABEL: @pass_fast_bool@4:
; CHECK-DAG: testb %cl, %cl
; CHECK-DAG: movl    $66,
; CHECK:     retl

define x86_vectorcallcc i32 @pass_vector_bool(i1 inreg zeroext %b) {
entry:
  %cond = select i1 %b, i32 66, i32 0
  ret i32 %cond
}

; CHECK-LABEL: pass_vector_bool@@4:
; CHECK-DAG: testb %cl, %cl
; CHECK-DAG: movl    $66,
; CHECK:     retl

define zeroext i1 @ret_true() {
entry:
  ret i1 true
}

; CHECK-LABEL: ret_true:
; CHECK:     movb $1, %al
; CHECK:     retl