This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://llvm.org/svn/llvm-project/llvm/branches/release_23@51869 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Tanya Lattner
committed
Jun 2, 2008
1 parent
d6e84b7
commit 93951d6
Showing
2 changed files
with
60 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
; RUN: llvm-as < %s | llc -march=c | grep {llvm_cbe_t.*&1} | ||
define i32 @test(i32 %r) { | ||
%s = icmp eq i32 %r, 0 | ||
%t = add i1 %s, %s | ||
%u = zext i1 %t to i32 | ||
br i1 %t, label %A, label %B | ||
A: | ||
|
||
ret i32 %u | ||
B: | ||
|
||
%v = select i1 %t, i32 %r, i32 %u | ||
ret i32 %v | ||
} |