diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:21:25 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:21:25 +0000 |
commit | 7a2f843ed11f41c55b94c57769e9987457979cf0 (patch) | |
tree | 9016b9c45b6a70e8e49f228e983dfa2dde7107bc | |
parent | a6c4ea315053dc20ced08f9e0f9efb545e2179b7 (diff) |
Add a another TODO note.
Patch by: Aaron Watry
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184999 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | generic/lib/integer/rotate.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/lib/integer/rotate.inc b/generic/lib/integer/rotate.inc index b34ffed..2aa6cc9 100644 --- a/generic/lib/integer/rotate.inc +++ b/generic/lib/integer/rotate.inc @@ -27,6 +27,9 @@ _CLC_OVERLOAD _CLC_DEF GENTYPE rotate(GENTYPE x, GENTYPE n){ UGENTYPE x_1 = __builtin_astype(x, UGENTYPE); + //XXX: Is (UGENTYPE >> SGENTYPE) | (UGENTYPE << SGENTYPE) legal? + // If so, then combine the amt and shifts into a single set of statements + UGENTYPE amt; amt = (n < (GENTYPE)0 ? __builtin_astype((GENTYPE)0-n, UGENTYPE) : (UGENTYPE)0); x_1 = (x_1 >> amt) | (x_1 << ((UGENTYPE)GENSIZE - amt)); |