aboutsummaryrefslogtreecommitdiff
path: root/utils
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
commitc81c9709ef219809b0d04c55a80a8d18c7194f6a (patch)
tree2a7a03212d974b5d02cdacd836afc4e9b1c2ce95 /utils
parentde98568bf8adfbfd3c7437c7cdfa617efc7147f3 (diff)
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/PerfectShuffle/PerfectShuffle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/PerfectShuffle/PerfectShuffle.cpp b/utils/PerfectShuffle/PerfectShuffle.cpp
index 98f8f4cc0c..dd48180a3d 100644
--- a/utils/PerfectShuffle/PerfectShuffle.cpp
+++ b/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>