[all-commits] [llvm/llvm-project] dd48c5: [Mips] Error if a non-immediate operand is used wh...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jun 19 22:09:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dd48c57da35e069c739361ce822b98c6e42f555e
      https://github.com/llvm/llvm-project/commit/dd48c57da35e069c739361ce822b98c6e42f555e
  Author: Wang Rui <wangrui at loongson.cn>
  Date:   2020-06-19 (Fri, 19 Jun 2020)

  Changed paths:
    M llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
    A llvm/test/MC/Mips/imm-operand-err.s

  Log Message:
  -----------
  [Mips] Error if a non-immediate operand is used while an immediate is expected

The 32-bit type relocation (R_MIPS_32) cannot be used for instructions below:

ori $4, $4, start
ori $4, $4, (start - .)

We should print an error instead.

Reviewed By: atanasyan, MaskRay

Differential Revision: https://reviews.llvm.org/D81908




More information about the All-commits mailing list