Nate Begeman | 4ce1dea | 2005-05-11 23:45:54 +0000 | [diff] [blame] | 1 | ; Make sure this testcase does not use ctpop |
Hal Finkel | c006295 | 2013-04-01 16:31:56 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -march=ppc32 -mcpu=g5 | FileCheck %s |
Nate Begeman | 4ce1dea | 2005-05-11 23:45:54 +0000 | [diff] [blame] | 3 | |
Chandler Carruth | 6b0e34c | 2011-12-12 11:59:10 +0000 | [diff] [blame] | 4 | declare i32 @llvm.cttz.i32(i32, i1) |
Nate Begeman | 4ce1dea | 2005-05-11 23:45:54 +0000 | [diff] [blame] | 5 | |
Tanya Lattner | a99d8b5 | 2008-02-19 08:07:33 +0000 | [diff] [blame] | 6 | define i32 @bar(i32 %x) { |
Nate Begeman | 4ce1dea | 2005-05-11 23:45:54 +0000 | [diff] [blame] | 7 | entry: |
Hal Finkel | c006295 | 2013-04-01 16:31:56 +0000 | [diff] [blame] | 8 | ; CHECK: @bar |
9 | ; CHECK: cntlzw | ||||
Chandler Carruth | 6b0e34c | 2011-12-12 11:59:10 +0000 | [diff] [blame] | 10 | %tmp.1 = call i32 @llvm.cttz.i32( i32 %x, i1 true ) ; <i32> [#uses=1] |
Tanya Lattner | a99d8b5 | 2008-02-19 08:07:33 +0000 | [diff] [blame] | 11 | ret i32 %tmp.1 |
Nate Begeman | 4ce1dea | 2005-05-11 23:45:54 +0000 | [diff] [blame] | 12 | } |
Tanya Lattner | a99d8b5 | 2008-02-19 08:07:33 +0000 | [diff] [blame] | 13 |