[PATCH] D63474: [ARM] Comply with rules on ARMv8-A thumb mode partial deprecation of IT.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 22:05:30 PDT 2019


huihuiz added a comment.

for example, test.ll below

  define i1 @scalar_i64_lowestbit_eq(i64 %x, i64 %y) {
  %t0 = shl i64 1, %y
  %t1 = and i64 %t0, %x
  %res = icmp eq i64 %t1, 0
  ret i1 %res
  }

run: llc test.ll -mtriple=thumbv8 -o - | llvm-mc -triple thumbv8 --show-encoding

will give you the warning of "deprecated instruction in IT block" for ARMv8 in thumb mode.

   it ge                      @ encoding: [0xa8,0xbf]
  <stdin>:39:2: warning: deprecated instruction in IT block
   lslge.w r3, r12, lr
   ^
   lslge.w r3, r12, lr             @ encoding: [0x0c,0xfa,0x0e,0xf3]


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63474/new/

https://reviews.llvm.org/D63474





More information about the llvm-commits mailing list