diff options
author | Michel Danzer <michel.daenzer@amd.com> | 2013-02-22 11:22:54 +0000 |
---|---|---|
committer | Michel Danzer <michel.daenzer@amd.com> | 2013-02-22 11:22:54 +0000 |
commit | 00fb2835607244d7fb86e81d74aadeb8f44b155e (patch) | |
tree | 9be8f197b3a4755d9bf1cc102231f08c47551971 /llvm/lib | |
parent | c3ea4041b9a84f15c5957fd282f93d10870e07e7 (diff) | |
download | bcm5719-llvm-00fb2835607244d7fb86e81d74aadeb8f44b155e.tar.gz bcm5719-llvm-00fb2835607244d7fb86e81d74aadeb8f44b155e.zip |
R600/SI: Add pattern for logical or of i1 values.
24 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: 175886
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/R600/SIInstructions.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/SIInstructions.td b/llvm/lib/Target/R600/SIInstructions.td index b83276f1326..2e43f9e5fdb 100644 --- a/llvm/lib/Target/R600/SIInstructions.td +++ b/llvm/lib/Target/R600/SIInstructions.td @@ -942,6 +942,10 @@ def : Pat < def S_OR_B32 : SOP2_32 <0x00000010, "S_OR_B32", []>; def S_OR_B64 : SOP2_64 <0x00000011, "S_OR_B64", []>; +def : Pat < + (i1 (or SSrc_64:$src0, SSrc_64:$src1)), + (S_OR_B64 SSrc_64:$src0, SSrc_64:$src1) +>; def S_XOR_B32 : SOP2_32 <0x00000012, "S_XOR_B32", []>; def S_XOR_B64 : SOP2_64 <0x00000013, "S_XOR_B64", []>; def S_ANDN2_B32 : SOP2_32 <0x00000014, "S_ANDN2_B32", []>; |