llvm.org GIT mirror llvm / 8b170f7 test / CodeGen / ARM / select-undef.ll
8b170f7

Tree @8b170f7 (Download .tar.gz)

select-undef.ll @8b170f7raw · history · blame

1
2
3
4
5
6
7
8
; RUN: llc -mtriple=arm-eabi -mcpu=swift -verify-machineinstrs %s -o /dev/null

define i32 @func(i32 %arg0, i32 %arg1) {
entry:
  %cmp = icmp slt i32 %arg0, 10
  %v = select i1 %cmp, i32 undef, i32 %arg1
  ret i32 %v
}