Lines Matching full:le
9 * The issue can be checked on LE machines simply by zeroing load_fp
20 * bit trickier to check it on BE machines because MSR.LE bit is set
24 * from the signal handler (as it happens on LE machines). Thus to test
25 * it on BE machines LE endianness is forced after a first trap and then
49 #define LE 1UL macro
57 int le; variable
66 /* Get thread endianness: extract bit LE from MSR */ in trap_signal_handler()
73 if (le) { in trap_signal_handler()
87 * endianness was still LE (not flipped inadvertently) in trap_signal_handler()
91 * LE endianness does in effect nothing, instruction (2) in trap_signal_handler()
100 * Either way, it's now possible to check the MSR LE bit in trap_signal_handler()
114 if (thread_endianness == LE) { in trap_signal_handler()
120 * inadvertently. Thus we flip back to LE and in trap_signal_handler()
137 * Force thread endianness to be LE. Instructions (1), in trap_signal_handler()
149 * continue to be LE, just as it was set above. in trap_signal_handler()
157 * as LE, generating a third trap event. In that case in trap_signal_handler()
158 * endianness is still LE as set on return from the in trap_signal_handler()
204 * tells how a instruction is executed as a LE instruction; con- in ping()
205 * versely, on a LE machine, it tells how a instruction is in ping()
216 " b %l[failure] ;" /* (5) b [NA]; MSR.LE flipped (bug) */ in ping()
217 " b %l[success] ;" /* (6) b [NA]; MSR.LE did not flip (ok)*/ in ping()
292 le = (int) *(uint8_t *)&k; in tm_trap_test()
295 le ? "Little-Endian" : "Big-Endian", in tm_trap_test()