1 ; RUN: llc < %s -mtriple=thumbv7 -o - | llvm-mc -triple thumbv7 --show-encoding 2>&1 | FileCheck %s --check-prefix=V7
2 ; RUN: llc < %s -mtriple=thumbv7 -arm-restrict-it -o - | llvm-mc -triple thumbv7 --show-encoding 2>&1 | FileCheck %s --check-prefix=V7_RESTRICT_IT
3 ; RUN: llc < %s -mtriple=thumbv8 -o - | llvm-mc -triple thumbv8 --show-encoding 2>&1 | FileCheck %s --check-prefix=V8
4 ; RUN: llc < %s -mtriple=thumbv8 -arm-no-restrict-it -o - | llvm-mc -triple thumbv8 --show-encoding 2>&1 | FileCheck %s --check-prefix=V8_NO_RESTRICT_IT
8 ; V7_RESTRICT_IT-NOT: warning
10 ; V8_NO_RESTRICT_IT: warning: deprecated instruction in IT block
11 ; it ge @ encoding: [0xa8,0xbf]
12 ; lslge.w r3, r12, lr @ encoding: [0x0c,0xfa,0x0e,0xf3] ; deprecated in ARMv8 thumb mode
13 define i1 @scalar_i64_lowestbit_eq(i64 %x, i64 %y) {
16 %res = icmp eq i64 %t1, 0
21 ; V7_RESTRICT_IT-NOT: warning
23 ; V8_NO_RESTRICT_IT: warning: deprecated instruction in IT block
24 ; it ne @ encoding: [0x18,0xbf]
25 ; movne.w r0, #-1 @ encoding: [0x4f,0xf0,0xff,0x30] ; deprecated in ARMv8 thumb mode
26 define i32 @icmp_eq_minus_one(i8* %ptr) {
27 %load = load i8, i8* %ptr, align 1
28 %conv = zext i8 %load to i32
29 %cmp = icmp eq i8 %load, -1
30 %ret = select i1 %cmp, i32 %conv, i32 -1