diff options
| author | Michel Danzer <michel.daenzer@amd.com> | 2013-02-22 11:22:58 +0000 |
|---|---|---|
| committer | Michel Danzer <michel.daenzer@amd.com> | 2013-02-22 11:22:58 +0000 |
| commit | 0cc991e17b8ca9d1056dc77dffa7b9ae3eee7a80 (patch) | |
| tree | 171d02c61604deda9bd7f30fca29c891b7ce7afe /llvm | |
| parent | 00fb2835607244d7fb86e81d74aadeb8f44b155e (diff) | |
| download | bcm5719-llvm-0cc991e17b8ca9d1056dc77dffa7b9ae3eee7a80.tar.gz bcm5719-llvm-0cc991e17b8ca9d1056dc77dffa7b9ae3eee7a80.zip | |
R600/SI: Add pattern for sign extension of i1 to i32.
16 more little piglits with radeonsi.
NOTE: This is a candidate for the Mesa stable branch.
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 175887
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/R600/SIInstructions.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td index 2e43f9e5fdb..907cf49c6c3 100644 --- a/llvm/lib/Target/R600/SIInstructions.td +++ b/llvm/lib/Target/R600/SIInstructions.td @@ -1382,6 +1382,11 @@ def : Pat < 0, 0, 0, 0), sub3) >; +def : Pat < + (i32 (sext (i1 SReg_64:$src0))), + (V_CNDMASK_B32_e64 (i32 0), (i32 -1), SReg_64:$src0) +>; + /********** ================== **********/ /********** VOP3 Patterns **********/ /********** ================== **********/ |

