xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/2012-09-18-ARMv4ISelBug.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm-eabi -mcpu=arm7tdmi %s -o - | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; movw is only legal for V6T2 and later.
4*9880d681SAndroid Build Coastguard Worker; rdar://12300648
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @t(i32 %x) {
7*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: t:
8*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: movw
9*9880d681SAndroid Build Coastguard Worker  %tmp = add i32 %x, -65535
10*9880d681SAndroid Build Coastguard Worker  ret i32 %tmp
11*9880d681SAndroid Build Coastguard Worker}
12