aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/2012-09-18-ARMv4ISelBug.ll
blob: 3bdbb3cf5801947419bc174f6c43186affd8108f (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -march=arm -mcpu=arm7tdmi | FileCheck %s

; movw is only legal for V6T2 and later.
; rdar://12300648

define i32 @t(i32 %x) {
; CHECK-LABEL: t:
; CHECK-NOT: movw
  %tmp = add i32 %x, -65535
  ret i32 %tmp
}