e19d552987
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
12 lines
275 B
LLVM
12 lines
275 B
LLVM
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
|
; PR1016
|
|
|
|
; CHECK: {{test.*1}}
|
|
|
|
define i32 @test(i32 %A, i32 %B, i32 %C) {
|
|
%a = trunc i32 %A to i1 ; <i1> [#uses=1]
|
|
%D = select i1 %a, i32 %B, i32 %C ; <i32> [#uses=1]
|
|
ret i32 %D
|
|
}
|
|
|