• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Make sure this testcase codegens to the ctlz instruction
2; RUN: llc < %s -march=alpha -mcpu=ev67 | grep -i ctlz
3; RUN: llc < %s -march=alpha -mattr=+CIX | grep -i ctlz
4; RUN: llc < %s -march=alpha -mcpu=ev6 | not grep -i ctlz
5; RUN: llc < %s -march=alpha -mattr=-CIX | not grep -i ctlz
6
7declare i8 @llvm.ctlz.i8(i8)
8
9define i32 @bar(i8 %x) {
10entry:
11	%tmp.1 = call i8 @llvm.ctlz.i8( i8 %x )
12	%tmp.2 = sext i8 %tmp.1 to i32
13	ret i32 %tmp.2
14}
15