summaryrefslogtreecommitdiffstats
path: root/llvm/utils/PerfectShuffle
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2011-05-17 20:48:40 +0000
committerTanya Lattner <tonic@nondot.org>2011-05-17 20:48:40 +0000
commitc7e291b3541bce7a28aadf53eae00b72b40f4e86 (patch)
tree49e96653413ed9e4c635b344479decb5e487fe54 /llvm/utils/PerfectShuffle
parent604aeb384998d000b32a4715ce02906d8b6aba05 (diff)
downloadbcm5719-llvm-c7e291b3541bce7a28aadf53eae00b72b40f4e86.tar.gz
bcm5719-llvm-c7e291b3541bce7a28aadf53eae00b72b40f4e86.zip
vrev is incorrectly defined in the perfect shuffle table. The ordering is backwards (should be 0x3210 versus 0x1032) which exposed a bug when doing a shuffle on a 4xi16. I've attached a test case.
llvm-svn: 131488
Diffstat (limited to 'llvm/utils/PerfectShuffle')
-rw-r--r--llvm/utils/PerfectShuffle/PerfectShuffle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/PerfectShuffle/PerfectShuffle.cpp b/llvm/utils/PerfectShuffle/PerfectShuffle.cpp
index 98f8f4cc0ca..dd48180a3d1 100644
--- a/llvm/utils/PerfectShuffle/PerfectShuffle.cpp
+++ b/llvm/utils/PerfectShuffle/PerfectShuffle.cpp
@@ -520,7 +520,7 @@ enum {
};
struct vrev : public Operator {
- vrev() : Operator(0x1032, "vrev", OP_VREV) {}
+ vrev() : Operator(0x3210, "vrev", OP_VREV) {}
} the_vrev;
template<unsigned Elt>
OpenPOWER on IntegriCloud