source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/2011-04-15-AndVFlagPeepholeBug.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 531 bytes
Line 
1; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 | FileCheck %s
2
3; CHECK: _f
4; CHECK-NOT: ands
5; CHECK: cmp
6; CHECK: blxle _g
7
8define i32 @f(i32 %a, i32 %b) nounwind ssp {
9entry:
10  %and = and i32 %b, %a
11  %cmp = icmp slt i32 %and, 1
12  br i1 %cmp, label %if.then, label %if.end
13
14if.then:                                          ; preds = %entry
15  tail call void (...) @g(i32 %a, i32 %b) nounwind
16  br label %if.end
17
18if.end:                                           ; preds = %if.then, %entry
19  ret i32 %and
20}
21
22declare void @g(...)
Note: See TracBrowser for help on using the repository browser.