1 /* Due to a reload inheritance bug, the asm statement in f() would be passed
2 the low part of u.ll on little-endian 32-bit targets. */
3 /* { dg-do run { target mips*-*-* } } */
5 extern void abort (void);
6 extern void exit (int);
10 unsigned __attribute__ ((nomips16
)) long long f (unsigned int x
)
12 union { unsigned long long ll
; unsigned int parts
[2]; } u
;
14 u
.ll
= ((unsigned long long) x
* x
);
15 asm ("mflo\t%0" : "=r" (g
) : "l" (u
.parts
[1]));
19 int __attribute__ ((nomips16
)) main ()
21 union { unsigned long long ll
; unsigned int parts
[2]; } u
;
23 u
.ll
= f (0x12345678);