Mercurial > hg > truffle
comparison src/cpu/x86/vm/c1_LIRAssembler_x86.cpp @ 2479:15c9a0e16269
7035713: 3DNow Prefetch Instruction Support
Summary: The upcoming processors from AMD are the first that support 3dnow prefetch without supporting the 3dnow instruction set.
Reviewed-by: kvn
Contributed-by: tom.deneau@amd.com
author | kvn |
---|---|
date | Mon, 11 Apr 2011 15:30:31 -0700 |
parents | 13bc79b5c9c8 |
children | ccf072cdba91 |
comparison
equal
deleted
inserted
replaced
2478:328926869b15 | 2479:15c9a0e16269 |
---|---|
1399 case 2: | 1399 case 2: |
1400 __ prefetcht2(from_addr); break; | 1400 __ prefetcht2(from_addr); break; |
1401 default: | 1401 default: |
1402 ShouldNotReachHere(); break; | 1402 ShouldNotReachHere(); break; |
1403 } | 1403 } |
1404 } else if (VM_Version::supports_3dnow()) { | 1404 } else if (VM_Version::supports_3dnow_prefetch()) { |
1405 __ prefetchr(from_addr); | 1405 __ prefetchr(from_addr); |
1406 } | 1406 } |
1407 } | 1407 } |
1408 | 1408 |
1409 | 1409 |
1422 case 3: | 1422 case 3: |
1423 __ prefetchw(from_addr); break; | 1423 __ prefetchw(from_addr); break; |
1424 default: | 1424 default: |
1425 ShouldNotReachHere(); break; | 1425 ShouldNotReachHere(); break; |
1426 } | 1426 } |
1427 } else if (VM_Version::supports_3dnow()) { | 1427 } else if (VM_Version::supports_3dnow_prefetch()) { |
1428 __ prefetchw(from_addr); | 1428 __ prefetchw(from_addr); |
1429 } | 1429 } |
1430 } | 1430 } |
1431 | 1431 |
1432 | 1432 |