2014-08-30 Andrew Pinski <apinski@cavium.com>
* gcc.c-torture/execute/
20140828-1.c: New testcase.
From-SVN: r214760
+2014-08-30 Andrew Pinski <apinski@cavium.com>
+
+ * gcc.c-torture/execute/20140828-1.c: New testcase.
+
2014-08-29 DJ Delorie <dj@redhat.com>
* lib/target-supports.exp (check_effective_target_size32plus):
--- /dev/null
+short *f(short *a, int b, int *d) __attribute__((noinline,noclone));
+
+short *f(short *a, int b, int *d)
+{
+ short c = *a;
+ a++;
+ c = b << c;
+ *d = c;
+ return a;
+}
+
+int main(void)
+{
+ int d;
+ short a[2];
+ a[0] = 0;
+ if (f(a, 1, &d) != &a[1])
+ __builtin_abort ();
+ if (d != 1)
+ __builtin_abort ();
+ return 0;
+}