diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-10-12 17:39:15 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-10-12 17:39:15 -0400 |
commit | 92fd211a07356a9dec8cb822675c359355e22621 (patch) | |
tree | 8c8424803e84e7d93180e450821ff9d7b57da9b2 /src/arch/sparc/isa/formats/integerop.isa | |
parent | 98b00d92fdf89d130630665327143f67ee16d0fe (diff) | |
download | gem5-92fd211a07356a9dec8cb822675c359355e22621.tar.xz |
Changed the sign extension function from mine to the provided one. Mine relied on implementation specific behavior, namely right shifting a signed value.
--HG--
extra : convert_revision : 4f5ef44d012de87919ad681024fe2ed0213a412f
Diffstat (limited to 'src/arch/sparc/isa/formats/integerop.isa')
-rw-r--r-- | src/arch/sparc/isa/formats/integerop.isa | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/sparc/isa/formats/integerop.isa b/src/arch/sparc/isa/formats/integerop.isa index 83c7e6958..0304a1064 100644 --- a/src/arch/sparc/isa/formats/integerop.isa +++ b/src/arch/sparc/isa/formats/integerop.isa @@ -87,7 +87,7 @@ output header {{ OpClass __opClass) : IntOpImm(mnem, _machInst, __opClass) { - imm = sign_ext(SIMM10, 10); + imm = sext<10>(SIMM10); } }; @@ -102,7 +102,7 @@ output header {{ OpClass __opClass) : IntOpImm(mnem, _machInst, __opClass) { - imm = sign_ext(SIMM11, 11); + imm = sext<11>(SIMM11); } }; @@ -117,7 +117,7 @@ output header {{ OpClass __opClass) : IntOpImm(mnem, _machInst, __opClass) { - imm = sign_ext(SIMM13, 13); + imm = sext<13>(SIMM13); } }; |