repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Silence -Wunused-variable in release builds.
[llvm/stm8.git]
/
test
/
CodeGen
/
ARM
/
movt.ll
blob
e82aca0e9c698bc5ddc88921e5dea7f4d3946cbc
1
; RUN: llc < %s -march=arm -mattr=+thumb2 | FileCheck %s
2
; rdar://7317664
3
4
define i32 @t(i32 %X) nounwind {
5
; CHECK: t:
6
; CHECK: movt r0, #65535
7
entry:
8
%0 = or i32 %X, -65536
9
ret i32 %0
10
}
11
12
define i32 @t2(i32 %X) nounwind {
13
; CHECK: t2:
14
; CHECK: movt r0, #65534
15
entry:
16
%0 = or i32 %X, -131072
17
%1 = and i32 %0, -65537
18
ret i32 %1
19
}