aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/select.ll
blob: 8f378bb3b9b74575b64dfc8509fdbbf49d1da0a1 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s -o /dev/null -f



int %test(bool %C, int %V1, int %V2) {
  %X = select bool true, bool false, bool true
  %V = select bool %X, int %V1, int %V2
  ret int %V
}