[llvm] r204901 - Rejected r204899 and r204900 due to remaining test failures on cmake-llvm-x86_64-linux buildbot.

Stepan Dyatkovskiy stpworld at narod.ru
Thu Mar 27 01:38:20 PDT 2014


Author: dyatkovskiy
Date: Thu Mar 27 03:38:18 2014
New Revision: 204901

URL: http://llvm.org/viewvc/llvm-project?rev=204901&view=rev
Log:
Rejected r204899 and r204900 due to remaining test failures on cmake-llvm-x86_64-linux buildbot.

Removed:
    llvm/trunk/test/MC/ARM/cmp-immediate-fixup.s
Modified:
    llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp

Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp?rev=204901&r1=204900&r2=204901&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp Thu Mar 27 03:38:18 2014
@@ -271,23 +271,7 @@ public:
   unsigned getSOImmOpValue(const MCInst &MI, unsigned Op,
                            SmallVectorImpl<MCFixup> &Fixups,
                            const MCSubtargetInfo &STI) const {
-
-    const MCOperand &MO = MI.getOperand(Op);
-
-    // We expect MO to be an immediate or an expression,
-    // if it is an immediate - that's fine, just encode the value.
-    // Otherwise - create a Fixup.
-    if (MO.isExpr()) {
-      const MCExpr *Expr = MO.getExpr();
-      // In instruction code this value always encoded as lowest 12 bits,
-      // so we don't have to perform any specific adjustments and
-      // can use just 2-bytes fixup.
-      MCFixupKind Kind = MCFixupKind(FK_Data_2);
-      Fixups.push_back(MCFixup::Create(0, Expr, Kind, MI.getLoc()));
-      return 0;
-    }
-
-    unsigned SoImm = MO.getImm();
+    unsigned SoImm = MI.getOperand(Op).getImm();
     int SoImmVal = ARM_AM::getSOImmVal(SoImm);
     assert(SoImmVal != -1 && "Not a valid so_imm value!");
 

Removed: llvm/trunk/test/MC/ARM/cmp-immediate-fixup.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/cmp-immediate-fixup.s?rev=204900&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/cmp-immediate-fixup.s (original)
+++ llvm/trunk/test/MC/ARM/cmp-immediate-fixup.s (removed)
@@ -1,9 +0,0 @@
-// PR18931
-// RUN: llvm-mc %s -triple=arm-linux-gnueabi -filetype=obj -o %t
-// RUN: llvm-objdump --disassemble -arch=arm %t | FileCheck %s
-
-    .text
-// CHECK: cmp r2, #1
-    cmp r2, #(l2 - l1 + 4) >> 2
-l1:
-l2:





More information about the llvm-commits mailing list