Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/macroAssembler_sparc.cpp @ 7476:ffa87474d7a4
8004537: replace AbstractAssembler emit_long with emit_int32
Reviewed-by: jrose, kvn, twisti
Contributed-by: Morris Meyer <morris.meyer@oracle.com>
author | twisti |
---|---|
date | Mon, 07 Jan 2013 14:08:28 -0800 |
parents | 18d56ca3e901 |
children | db9981fd3124 |
comparison
equal
deleted
inserted
replaced
7475:e2e6bf86682c | 7476:ffa87474d7a4 |
---|---|
1222 | 1222 |
1223 assert_not_delayed(); | 1223 assert_not_delayed(); |
1224 // Relocation with special format (see relocInfo_sparc.hpp). | 1224 // Relocation with special format (see relocInfo_sparc.hpp). |
1225 relocate(rspec, 1); | 1225 relocate(rspec, 1); |
1226 // Assembler::sethi(0x3fffff, d); | 1226 // Assembler::sethi(0x3fffff, d); |
1227 emit_long( op(branch_op) | rd(d) | op2(sethi_op2) | hi22(0x3fffff) ); | 1227 emit_int32( op(branch_op) | rd(d) | op2(sethi_op2) | hi22(0x3fffff) ); |
1228 // Don't add relocation for 'add'. Do patching during 'sethi' processing. | 1228 // Don't add relocation for 'add'. Do patching during 'sethi' processing. |
1229 add(d, 0x3ff, d); | 1229 add(d, 0x3ff, d); |
1230 | 1230 |
1231 } | 1231 } |
1232 | 1232 |
1238 | 1238 |
1239 assert_not_delayed(); | 1239 assert_not_delayed(); |
1240 // Relocation with special format (see relocInfo_sparc.hpp). | 1240 // Relocation with special format (see relocInfo_sparc.hpp). |
1241 relocate(rspec, 1); | 1241 relocate(rspec, 1); |
1242 // Assembler::sethi(encoded_k, d); | 1242 // Assembler::sethi(encoded_k, d); |
1243 emit_long( op(branch_op) | rd(d) | op2(sethi_op2) | hi22(encoded_k) ); | 1243 emit_int32( op(branch_op) | rd(d) | op2(sethi_op2) | hi22(encoded_k) ); |
1244 // Don't add relocation for 'add'. Do patching during 'sethi' processing. | 1244 // Don't add relocation for 'add'. Do patching during 'sethi' processing. |
1245 add(d, low10(encoded_k), d); | 1245 add(d, low10(encoded_k), d); |
1246 | 1246 |
1247 } | 1247 } |
1248 | 1248 |