forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
R600/SI: Remove dead code and add missing tests.
This probably was killed by some generic DAGCombiner improvements in checking the TargetBooleanContents instead of just 1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213471 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
39 additions
and
24 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
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,15 @@ | ||
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s | ||
|
||
; SI-LABEL: @sext_bool_icmp_ne | ||
; SI: V_CMP_NE_I32 | ||
; SI-NEXT: V_CNDMASK_B32 | ||
; SI-NOT: V_CMP_NE_I32 | ||
; SI-NOT: V_CNDMASK_B32 | ||
; SI: S_ENDPGM | ||
define void @sext_bool_icmp_ne(i1 addrspace(1)* %out, i32 %a, i32 %b) nounwind { | ||
%icmp0 = icmp ne i32 %a, %b | ||
%ext = sext i1 %icmp0 to i32 | ||
%icmp1 = icmp ne i32 %ext, 0 | ||
store i1 %icmp1, i1 addrspace(1)* %out | ||
ret void | ||
} |