diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-07-26 19:01:56 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-07-26 19:01:56 +0000 |
commit | 9955cb931b287bec91313a4b185fa965fb71f559 (patch) | |
tree | 9a0a8baa8680184c16e9ee3a222fd7b99ac00e50 /lib | |
parent | d6a7ea27361a64228e5afaf99d2ef3609a63cd3e (diff) | |
download | external_llvm-9955cb931b287bec91313a4b185fa965fb71f559.zip external_llvm-9955cb931b287bec91313a4b185fa965fb71f559.tar.gz external_llvm-9955cb931b287bec91313a4b185fa965fb71f559.tar.bz2 |
[mips] Fix floating point branch, comparison, and conditional move instructions
to have register FCC0 (the first floating point condition code register) in
their Uses/Defs list.
No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Mips/MipsCondMov.td | 4 | ||||
-rw-r--r-- | lib/Target/Mips/MipsInstrFPU.td | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsCondMov.td b/lib/Target/Mips/MipsCondMov.td index cb0112a..8f5c4dc 100644 --- a/lib/Target/Mips/MipsCondMov.td +++ b/lib/Target/Mips/MipsCondMov.td @@ -37,7 +37,7 @@ class CMov_F_I_FT<string opstr, RegisterOperand RC, InstrItinClass Itin, InstSE<(outs RC:$rd), (ins RC:$rs, RC:$F), !strconcat(opstr, "\t$rd, $rs, $$fcc0"), [(set RC:$rd, (OpNode RC:$rs, RC:$F))], Itin, FrmFR> { - let Uses = [FCR31]; + let Uses = [FCC0]; let Constraints = "$F = $rd"; } @@ -47,7 +47,7 @@ class CMov_F_F_FT<string opstr, RegisterClass RC, InstrItinClass Itin, InstSE<(outs RC:$fd), (ins RC:$fs, RC:$F), !strconcat(opstr, "\t$fd, $fs, $$fcc0"), [(set RC:$fd, (OpNode RC:$fs, RC:$F))], Itin, FrmFR> { - let Uses = [FCR31]; + let Uses = [FCC0]; let Constraints = "$F = $fd"; } diff --git a/lib/Target/Mips/MipsInstrFPU.td b/lib/Target/Mips/MipsInstrFPU.td index fc7ea30..6fe469a 100644 --- a/lib/Target/Mips/MipsInstrFPU.td +++ b/lib/Target/Mips/MipsInstrFPU.td @@ -194,7 +194,7 @@ class BC1F_FT<string opstr, InstrItinClass Itin, let isTerminator = 1; let hasDelaySlot = 1; let Defs = [AT]; - let Uses = [FCR31]; + let Uses = [FCC0]; } class CEQS_FT<string typestr, RegisterClass RC, InstrItinClass Itin, @@ -202,7 +202,7 @@ class CEQS_FT<string typestr, RegisterClass RC, InstrItinClass Itin, InstSE<(outs), (ins RC:$fs, RC:$ft, condcode:$cond), !strconcat("c.$cond.", typestr, "\t$fs, $ft"), [(OpNode RC:$fs, RC:$ft, imm:$cond)], Itin, FrmFR> { - let Defs = [FCR31]; + let Defs = [FCC0]; let isCodeGenOnly = 1; } |