GCC Bugzilla – Attachment 37559 Details for
Bug 69633
[10/11/12/13 Regression] Redundant move is generated after r228097
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test-case to reproduce
test.c (text/plain), 768 bytes, created by
Yuri Rumyantsev
on 2016-02-02 16:46:39 UTC
(
hide
)
Description:
test-case to reproduce
Filename:
MIME Type:
Creator:
Yuri Rumyantsev
Created:
2016-02-02 16:46:39 UTC
Size:
768 bytes
patch
obsolete
>typedef unsigned char u8; >typedef signed char s8; >#define C1 (19595) >#define C2 (38470) >#define C3 (7471) > >#define C4 (32767) >#define C5 (-15119) >#define C6 (-17648) > >#define C7 (13282) >#define C8 (-32767) >#define C9 (19485) > >#define CONST (1 << 15) > >void foo(u8 *in, u8 *out, int n) { > int i; > u8 *read = in, > *write = out; > u8 x1, x2, x3, y1 = 0; > s8 y2, y3; > > for(i = 0; i < n; i++) { > x1 = *read++; > x2 = *read++; > x3 = *read++; > y1 = (u8) ((C1 * x1 + C2 * x2 + C3 * x3 + CONST) >> 16); > y2 = (s8) ((C4 * x1 + C5 * x2 + C6 * x3 + CONST) >> 16); > y3 = (s8) ((C7 * x1 + C8 * x2 + C9 * x3 + CONST) >> 16); > > *write++ = y1; > *write++ = (u8) y2; > *write++ = (u8) y3; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 69633
: 37559