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 | a30713710ce8bad3613c94939009011fdcbf8a3c (patch) | |
tree | a2f0d14887b8eab02b33251acb669d5028e59e13 /libclc | |
parent | 4974f6c6d076d42eef4febd1fccbf89393782a89 (diff) | |
download | bcm5719-llvm-a30713710ce8bad3613c94939009011fdcbf8a3c.tar.gz bcm5719-llvm-a30713710ce8bad3613c94939009011fdcbf8a3c.zip |
Add a another TODO note.
Patch by: Aaron Watry
llvm-svn: 184999
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/generic/lib/integer/rotate.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libclc/generic/lib/integer/rotate.inc b/libclc/generic/lib/integer/rotate.inc index b34ffedeb7b..2aa6cc9d9fb 100644 --- a/libclc/generic/lib/integer/rotate.inc +++ b/libclc/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)); |