summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test43.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/simple_test43.c')
-rw-r--r--util/romcc/tests/simple_test43.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test43.c b/util/romcc/tests/simple_test43.c
new file mode 100644
index 0000000000..4fb2735d83
--- /dev/null
+++ b/util/romcc/tests/simple_test43.c
@@ -0,0 +1,47 @@
+static void spd_set_memclk(void)
+{
+
+ unsigned min;
+ unsigned device;
+
+
+ min = 0x250;
+
+
+ for(device = 0x80; device <= 0x81; device += 1)
+ {
+ unsigned cur;
+ int latency;
+ unsigned long loops;
+
+ cur = 5 | 0xa0;
+ latency = __builtin_inw(0xab);
+
+ if (latency > 0x250) {
+ loops = 1000000;
+ while(--loops)
+ ;
+ if (!loops) {
+ goto end;
+ }
+
+ loops = 1000000;
+ while(--loops)
+ ;
+ end:
+ ;
+
+ }
+ loops = 1000000;
+ while(--loops)
+ ;
+
+ if (latency > 0x250) {
+ ;
+ }
+
+ if (cur > 0x250) {
+ }
+ }
+
+}