llvm/test/CodeGen/Thumb2/thumb2-mov4.ll
David Goodwin 83b3593478 Currently there is a pattern for the thumb-2 MOV 16-bit immediate instruction. That instruction cannot write the flags so it should use T2I instead of T2sI.
Also, added a pattern for the thumb-2 MOV of shifted immediate since that can encode immediates not encodable by the 16-bit immediate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74288 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-26 16:10:07 +00:00

9 lines
205 B
LLVM

; RUN: llvm-as < %s | llc | grep {movw\\W*r\[0-9\],\\W*#\[0-9\]*} | grep {#65535} | Count 1
target triple = "thumbv7-apple-darwin"
define i32 @f6(i32 %a) {
%tmp = add i32 0, 65535
ret i32 %tmp
}