Permalink
Browse files

changed example

  • Loading branch information...
1 parent 79dd39d commit 60a0f3f8b55d85e81b34fa5b6d3aaed6dd29cef6 @seanbaxter committed Sep 5, 2011
@@ -113,10 +113,10 @@ int main(int argc, char** argv) {
return 0;
}
- // Search through 20 million elements.
- const int NumElements = 2000000;
+ // Search through 5 million elements.
+ const int NumElements = 5000000;
std::vector<float> data(NumElements);
- std::tr1::uniform_real<float> r(-1e10, 1e10);
+ std::tr1::uniform_real<float> r(-1e9, 1e9);
for(int i(0); i < NumElements; ++i)
data[i] = r(mt19937);
Binary file not shown.
@@ -40,35 +40,35 @@
/*0120*/ /*0xf0719c85c1000000*/ LDS R6, [R7+0x3c];
/*0128*/ /*0x70715c85c1000019*/ LDS R5, [R7+0x65c];
/*0130*/ /*0x80721c034800c018*/ IADD R8, R7, 0x620;
- /*0138*/ /*0x0861dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R2, pt;
+ /*0138*/ /*0x0861dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R2, pt;
/*0140*/ /*0x180081e428000000*/ @P0 MOV R2, R6;
/*0148*/ /*0x140101e428000000*/ @P0 MOV R4, R5;
/*0150*/ /*0x00709c85c9000001*/ STS [R7+0x40], R2;
/*0158*/ /*0x00811c85c9000001*/ STS [R8+0x40], R4;
/*0160*/ /*0xe0719c85c1000000*/ LDS R6, [R7+0x38];
/*0168*/ /*0xe0815c85c1000000*/ LDS R5, [R8+0x38];
- /*0170*/ /*0x0861dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R2, pt;
+ /*0170*/ /*0x0861dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R2, pt;
/*0178*/ /*0x180081e428000000*/ @P0 MOV R2, R6;
/*0180*/ /*0x140101e428000000*/ @P0 MOV R4, R5;
/*0188*/ /*0x00709c85c9000001*/ STS [R7+0x40], R2;
/*0190*/ /*0x00811c85c9000001*/ STS [R8+0x40], R4;
/*0198*/ /*0xc0719c85c1000000*/ LDS R6, [R7+0x30];
/*01a0*/ /*0xc0815c85c1000000*/ LDS R5, [R8+0x30];
- /*01a8*/ /*0x0861dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R2, pt;
+ /*01a8*/ /*0x0861dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R2, pt;
/*01b0*/ /*0x180081e428000000*/ @P0 MOV R2, R6;
/*01b8*/ /*0x140101e428000000*/ @P0 MOV R4, R5;
/*01c0*/ /*0x00709c85c9000001*/ STS [R7+0x40], R2;
/*01c8*/ /*0x00811c85c9000001*/ STS [R8+0x40], R4;
/*01d0*/ /*0x80719c85c1000000*/ LDS R6, [R7+0x20];
/*01d8*/ /*0x80815c85c1000000*/ LDS R5, [R8+0x20];
- /*01e0*/ /*0x0861dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R2, pt;
+ /*01e0*/ /*0x0861dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R2, pt;
/*01e8*/ /*0x180081e428000000*/ @P0 MOV R2, R6;
/*01f0*/ /*0x140101e428000000*/ @P0 MOV R4, R5;
/*01f8*/ /*0x00709c85c9000001*/ STS [R7+0x40], R2;
/*0200*/ /*0x00811c85c9000001*/ STS [R8+0x40], R4;
/*0208*/ /*0x00719c85c1000000*/ LDS R6, [R7];
/*0210*/ /*0x00815c85c1000000*/ LDS R5, [R8];
- /*0218*/ /*0x0861dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R2, pt;
+ /*0218*/ /*0x0861dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R2, pt;
/*0220*/ /*0x180081e428000000*/ @P0 MOV R2, R6;
/*0228*/ /*0x140101e428000000*/ @P0 MOV R4, R5;
/*0230*/ /*0x00709c85c9000001*/ STS [R7+0x40], R2;
@@ -90,7 +90,7 @@
/*02b0*/ /*0x000001f440000000*/ @P0 NOP.S CC.T;
/*02b8*/ /*0xf0419c85c103ffff*/ LDS R6, [R4+-0x4];
/*02c0*/ /*0xf0509c85c103ffff*/ LDS R2, [R5+-0x4];
- /*02c8*/ /*0x1c61dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R7, pt;
+ /*02c8*/ /*0x1c61dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R7, pt;
/*02d0*/ /*0x1801c1e428000000*/ @P0 MOV R7, R6;
/*02d8*/ /*0x080201e428000000*/ @P0 MOV R8, R2;
/*02e0*/ /*0x00001df440000000*/ NOP.S CC.T;
@@ -101,7 +101,7 @@
/*0308*/ /*0x000001f440000000*/ @P0 NOP.S CC.T;
/*0310*/ /*0xe0419c85c103ffff*/ LDS R6, [R4+-0x8];
/*0318*/ /*0xe0509c85c103ffff*/ LDS R2, [R5+-0x8];
- /*0320*/ /*0x1c61dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R7, pt;
+ /*0320*/ /*0x1c61dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R7, pt;
/*0328*/ /*0x1801c1e428000000*/ @P0 MOV R7, R6;
/*0330*/ /*0x080201e428000000*/ @P0 MOV R8, R2;
/*0338*/ /*0x00001df440000000*/ NOP.S CC.T;
@@ -112,7 +112,7 @@
/*0360*/ /*0x000001f440000000*/ @P0 NOP.S CC.T;
/*0368*/ /*0xc0419c85c103ffff*/ LDS R6, [R4+-0x10];
/*0370*/ /*0xc0509c85c103ffff*/ LDS R2, [R5+-0x10];
- /*0378*/ /*0x1c61dc00220e0000*/ FSETP.GT.AND P0, pt, R6, R7, pt;
+ /*0378*/ /*0x1c61dc00230e0000*/ FSETP.GE.AND P0, pt, R6, R7, pt;
/*0380*/ /*0x1801c1e428000000*/ @P0 MOV R7, R6;
/*0388*/ /*0x080201e428000000*/ @P0 MOV R8, R2;
/*0390*/ /*0x00001df440000000*/ NOP.S CC.T;
@@ -158,35 +158,35 @@
/*00b8*/ /*0xf0615c85c1000000*/ LDS R5, [R6+0x3c];
/*00c0*/ /*0x70611c85c1000019*/ LDS R4, [R6+0x65c];
/*00c8*/ /*0x8061dc034800c018*/ IADD R7, R6, 0x620;
- /*00d0*/ /*0x0851dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R2, pt;
+ /*00d0*/ /*0x0851dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R2, pt;
/*00d8*/ /*0x140081e428000000*/ @P0 MOV R2, R5;
/*00e0*/ /*0x1000c1e428000000*/ @P0 MOV R3, R4;
/*00e8*/ /*0x00609c85c9000001*/ STS [R6+0x40], R2;
/*00f0*/ /*0x0070dc85c9000001*/ STS [R7+0x40], R3;
/*00f8*/ /*0xe0615c85c1000000*/ LDS R5, [R6+0x38];
/*0100*/ /*0xe0711c85c1000000*/ LDS R4, [R7+0x38];
- /*0108*/ /*0x0851dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R2, pt;
+ /*0108*/ /*0x0851dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R2, pt;
/*0110*/ /*0x140081e428000000*/ @P0 MOV R2, R5;
/*0118*/ /*0x1000c1e428000000*/ @P0 MOV R3, R4;
/*0120*/ /*0x00609c85c9000001*/ STS [R6+0x40], R2;
/*0128*/ /*0x0070dc85c9000001*/ STS [R7+0x40], R3;
/*0130*/ /*0xc0615c85c1000000*/ LDS R5, [R6+0x30];
/*0138*/ /*0xc0711c85c1000000*/ LDS R4, [R7+0x30];
- /*0140*/ /*0x0851dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R2, pt;
+ /*0140*/ /*0x0851dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R2, pt;
/*0148*/ /*0x140081e428000000*/ @P0 MOV R2, R5;
/*0150*/ /*0x1000c1e428000000*/ @P0 MOV R3, R4;
/*0158*/ /*0x00609c85c9000001*/ STS [R6+0x40], R2;
/*0160*/ /*0x0070dc85c9000001*/ STS [R7+0x40], R3;
/*0168*/ /*0x80615c85c1000000*/ LDS R5, [R6+0x20];
/*0170*/ /*0x80711c85c1000000*/ LDS R4, [R7+0x20];
- /*0178*/ /*0x0851dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R2, pt;
+ /*0178*/ /*0x0851dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R2, pt;
/*0180*/ /*0x140081e428000000*/ @P0 MOV R2, R5;
/*0188*/ /*0x1000c1e428000000*/ @P0 MOV R3, R4;
/*0190*/ /*0x00609c85c9000001*/ STS [R6+0x40], R2;
/*0198*/ /*0x0070dc85c9000001*/ STS [R7+0x40], R3;
/*01a0*/ /*0x00615c85c1000000*/ LDS R5, [R6];
/*01a8*/ /*0x00711c85c1000000*/ LDS R4, [R7];
- /*01b0*/ /*0x0851dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R2, pt;
+ /*01b0*/ /*0x0851dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R2, pt;
/*01b8*/ /*0x140081e428000000*/ @P0 MOV R2, R5;
/*01c0*/ /*0x1000c1e428000000*/ @P0 MOV R3, R4;
/*01c8*/ /*0x00609c85c9000001*/ STS [R6+0x40], R2;
@@ -208,7 +208,7 @@
/*0248*/ /*0x000001f440000000*/ @P0 NOP.S CC.T;
/*0250*/ /*0xf0315c85c103ffff*/ LDS R5, [R3+-0x4];
/*0258*/ /*0xf0409c85c103ffff*/ LDS R2, [R4+-0x4];
- /*0260*/ /*0x1c51dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R7, pt;
+ /*0260*/ /*0x1c51dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R7, pt;
/*0268*/ /*0x1401c1e428000000*/ @P0 MOV R7, R5;
/*0270*/ /*0x080181e428000000*/ @P0 MOV R6, R2;
/*0278*/ /*0x00001df440000000*/ NOP.S CC.T;
@@ -219,7 +219,7 @@
/*02a0*/ /*0x000001f440000000*/ @P0 NOP.S CC.T;
/*02a8*/ /*0xe0315c85c103ffff*/ LDS R5, [R3+-0x8];
/*02b0*/ /*0xe0409c85c103ffff*/ LDS R2, [R4+-0x8];
- /*02b8*/ /*0x1c51dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R7, pt;
+ /*02b8*/ /*0x1c51dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R7, pt;
/*02c0*/ /*0x1401c1e428000000*/ @P0 MOV R7, R5;
/*02c8*/ /*0x080181e428000000*/ @P0 MOV R6, R2;
/*02d0*/ /*0x00001df440000000*/ NOP.S CC.T;
@@ -230,7 +230,7 @@
/*02f8*/ /*0x000001f440000000*/ @P0 NOP.S CC.T;
/*0300*/ /*0xc0315c85c103ffff*/ LDS R5, [R3+-0x10];
/*0308*/ /*0xc0409c85c103ffff*/ LDS R2, [R4+-0x10];
- /*0310*/ /*0x1c51dc00220e0000*/ FSETP.GT.AND P0, pt, R5, R7, pt;
+ /*0310*/ /*0x1c51dc00230e0000*/ FSETP.GE.AND P0, pt, R5, R7, pt;
/*0318*/ /*0x1401c1e428000000*/ @P0 MOV R7, R5;
/*0320*/ /*0x080181e428000000*/ @P0 MOV R6, R2;
/*0328*/ /*0x00001df440000000*/ NOP.S CC.T;

0 comments on commit 60a0f3f

Please sign in to comment.