blob: 3bdbb3cf5801947419bc174f6c43186affd8108f [file] [log] [blame]
Evan Cheng1de7ec82012-09-18 21:24:16 +00001; RUN: llc < %s -march=arm -mcpu=arm7tdmi | FileCheck %s
2
3; movw is only legal for V6T2 and later.
4; rdar://12300648
5
6define i32 @t(i32 %x) {
Stephen Lind24ab202013-07-14 06:24:09 +00007; CHECK-LABEL: t:
Evan Cheng1de7ec82012-09-18 21:24:16 +00008; CHECK-NOT: movw
9 %tmp = add i32 %x, -65535
10 ret i32 %tmp
11}