X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-pe%2Faligncomm-4.c;fp=ld%2Ftestsuite%2Fld-pe%2Faligncomm-4.c;h=085335a5e41fd396dfd305d77483253f2cdf125d;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/ld/testsuite/ld-pe/aligncomm-4.c b/ld/testsuite/ld-pe/aligncomm-4.c new file mode 100755 index 0000000..085335a --- /dev/null +++ b/ld/testsuite/ld-pe/aligncomm-4.c @@ -0,0 +1,29 @@ + +typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); +typedef __SIZE_TYPE__ size_t; + +long s1 = 0; +long s2 = 0; +long s3 = 0; +long s4 = 0; +__m128 r; +__m128 * volatile raddr = &r; + +int main (int argc, const char **argv) +{ + return 15 & (int)(size_t)raddr; +} + +void __main (void) +{ + asm (".section .drectve\n" + " .ascii \" -aligncomm:_r,4\"\n" + " .ascii \" -aligncomm:r,4\"\n" + " .text"); +} + +#if defined (__CYGWIN__) || defined (__MINGW32__) +void _alloca (void) +{ +} +#endif