llvm.org GIT mirror llvm / release_22 test / CodeGen / X86 / 2004-03-30-Select-Max.llx
release_22

Tree @release_22 (Download .tar.gz)

2004-03-30-Select-Max.llx @release_22raw · history · blame

1
2
3
4
5
6
7
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep {j\[lgbe\]}

int %max(int %A, int %B) {
  %gt = setgt int %A, %B
  %R = select bool %gt, int %A, int %B
  ret int %R
}