Matt Arsenault
a3fe7c62d1
R600: Fix nonsensical implementation of computeKnownBits for BFE
...
This was resulting in invalid simplifications of sdiv
llvm-svn: 219953
2014-10-16 20:07:40 +00:00
Tom Stellard
79243d9664
R600: Call EmitFunctionHeader() in the AsmPrinter to populate the ELF symbol table
...
llvm-svn: 218776
2014-10-01 17:15:17 +00:00
Matt Arsenault
46cbc4367b
R600: Better fix for bug 20982
...
Just do the left shift as unsigned to avoid the UB.
llvm-svn: 218092
2014-09-19 00:42:06 +00:00
Matt Arsenault
6462f94884
R600: Bug 20982 - Avoid undefined left shift of negative value
...
I'm not sure what the hardware actually does, so don't
bother trying to fold it for now.
llvm-svn: 218057
2014-09-18 15:52:26 +00:00
Alexey Samsonov
7bddb0a56a
Exclude known and bugzilled failures from UBSan bootstrap
...
llvm-svn: 217979
2014-09-17 20:17:52 +00:00
Matt Arsenault
05e96f4444
R600: Try to convert BFE back to standard bit ops when possible.
...
This allows existing DAG combines to work on them, and then
we can re-match to BFE if necessary during instruction selection.
llvm-svn: 209462
2014-05-22 18:09:12 +00:00
Matt Arsenault
5565f65e13
R600: Add dag combine for BFE
...
llvm-svn: 209461
2014-05-22 18:09:07 +00:00
Matt Arsenault
4b0402e317
R600/SI: Try to fix BFE operands when moving to VALU
...
This was broken by r208479
llvm-svn: 208740
2014-05-13 23:45:50 +00:00
Tom Stellard
a0150cb6a9
R600: Correct opcode for BFE_INT
...
Acording to AMD documentation, the correct opcode for
BFE_INT is 0x5, not 0x4
Fixes Arithm/Absdiff.Mat/3 OpenCV test
Patch by: Bruno Jiménez
llvm-svn: 205562
2014-04-03 20:19:29 +00:00
Matt Arsenault
4c53717787
R600: Add BFE, BFI, and BFM intrinsics to help with writing tests.
...
llvm-svn: 205236
2014-03-31 18:21:18 +00:00