pred_inst.hh (7422:feddb9077def) | pred_inst.hh (7639:8c09b7ff5b57) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 104 unchanged lines hidden (view full) --- 113 (0xffULL << 32) | (bigData << 40); 114 break; 115 case 0xd: 116 bigData = (0xffffULL << 0) | (bigData << 16) | 117 (0xffffULL << 32) | (bigData << 48); 118 break; 119 case 0xe: 120 if (op) { | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 104 unchanged lines hidden (view full) --- 113 (0xffULL << 32) | (bigData << 40); 114 break; 115 case 0xd: 116 bigData = (0xffffULL << 0) | (bigData << 16) | 117 (0xffffULL << 32) | (bigData << 48); 118 break; 119 case 0xe: 120 if (op) { |
121 bigData = (bigData << 0) | (bigData << 8) | 122 (bigData << 16) | (bigData << 24) | 123 (bigData << 32) | (bigData << 40) | 124 (bigData << 48) | (bigData << 56); 125 } else { | |
126 bigData = 0; 127 for (int i = 7; i >= 0; i--) { 128 if (bits(data, i)) { | 121 bigData = 0; 122 for (int i = 7; i >= 0; i--) { 123 if (bits(data, i)) { |
129 bigData |= (0xFF << (i * 8)); | 124 bigData |= (ULL(0xFF) << (i * 8)); |
130 } 131 } | 125 } 126 } |
127 } else { 128 bigData = (bigData << 0) | (bigData << 8) | 129 (bigData << 16) | (bigData << 24) | 130 (bigData << 32) | (bigData << 40) | 131 (bigData << 48) | (bigData << 56); |
|
132 } | 132 } |
133 break; |
|
133 case 0xf: 134 if (!op) { 135 uint64_t bVal = bits(bigData, 6) ? (0x1F) : (0x20); 136 bigData = (bits(bigData, 5, 0) << 19) | 137 (bVal << 25) | (bits(bigData, 7) << 31); 138 bigData |= (bigData << 32); | 134 case 0xf: 135 if (!op) { 136 uint64_t bVal = bits(bigData, 6) ? (0x1F) : (0x20); 137 bigData = (bits(bigData, 5, 0) << 19) | 138 (bVal << 25) | (bits(bigData, 7) << 31); 139 bigData |= (bigData << 32); |
140 break; |
|
139 } 140 // Fall through 141 default: 142 panic("Illegal modified SIMD immediate parameters.\n"); 143 } 144 return bigData; 145} 146 --- 190 unchanged lines hidden --- | 141 } 142 // Fall through 143 default: 144 panic("Illegal modified SIMD immediate parameters.\n"); 145 } 146 return bigData; 147} 148 --- 190 unchanged lines hidden --- |