tstCompiler.cpp revision 230bd8589bba39933ac5ec21482d6186d675e604
366N/A * Testing how the compiler deals with various things. 366N/A * This is testcase requires manual inspection and might not be very useful 366N/A * in non-optimized compiler modes. 366N/A * Copyright (C) 2006-2007 Oracle Corporation 366N/A * This file is part of VirtualBox Open Source Edition (OSE), as 366N/A * you can redistribute it and/or modify it under the terms of the GNU 366N/A * General Public License (GPL) as published by the Free Software 366N/A * Foundation, in version 2 as it comes in the "COPYING" file of the 366N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 366N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 366N/A/******************************************************************************* 366N/A*******************************************************************************/ 493N/A * PAE page table entry. 366N/A /** Flags whether(=1) or not the page is present. */ 366N/A /** Read(=0) / Write(=1) flag. */ 366N/A /** User(=1) / Supervisor(=0) flag. */ 366N/A /** Write Thru flag. If PAT enabled, bit 0 of the index. */ 366N/A /** Cache disabled flag. If PAT enabled, bit 1 of the index. */ 366N/A * Indicates that the page have been read or written to. */ 366N/A * Indicates that the page have been written to. */ 493N/A /** Reserved / If PAT enabled, bit 2 of the index. */ 366N/A /** Global flag. (Ignored in all but final level.) */ /** Available for use to system software. */ /** Physical Page number of the next level. */ /** Pointer to a page table entry. */ /** Unsigned integer view */ /** Pointer to a PAE page table entry. */ #
else /* use current (uint32_t based) PAE structures */ pPte->u &= ~
RT_BIT(
10);
/* bad, but serves as demonstration. */ RTPrintf(
"tstBitFields: This testcase requires manual inspection of the output!\n" "tstBitFields: The compiler must be able to combine operations when\n" "tstBitFields: optimizing, if not we're screwed.\n"