summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/R600ExpandSpecialInstrs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/R600/R600ExpandSpecialInstrs.cpp')
-rw-r--r--llvm/lib/Target/R600/R600ExpandSpecialInstrs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/R600ExpandSpecialInstrs.cpp b/llvm/lib/Target/R600/R600ExpandSpecialInstrs.cpp
index b9d5303ce1a..072ae3a5dcc 100644
--- a/llvm/lib/Target/R600/R600ExpandSpecialInstrs.cpp
+++ b/llvm/lib/Target/R600/R600ExpandSpecialInstrs.cpp
@@ -214,7 +214,9 @@ bool R600ExpandSpecialInstrsPass::runOnMachineFunction(MachineFunction &MF) {
.getReg();
(void) Src0;
(void) Src1;
- assert(TRI.getHWRegChan(Src0) == TRI.getHWRegChan(Src1));
+ if ((TRI.getEncodingValue(Src0) & 0xff) < 127 &&
+ (TRI.getEncodingValue(Src1) & 0xff) < 127)
+ assert(TRI.getHWRegChan(Src0) == TRI.getHWRegChan(Src1));
}
MI.eraseFromParent();
continue;
OpenPOWER on IntegriCloud