source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/movt.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 374 bytes
Line 
1; RUN: llc -mtriple=arm-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
2; rdar://7317664
3
4define i32 @t(i32 %X) nounwind {
5; CHECK-LABEL: t:
6; CHECK: movt r0, #65535
7entry:
8        %0 = or i32 %X, -65536
9        ret i32 %0
10}
11
12define i32 @t2(i32 %X) nounwind {
13; CHECK-LABEL: t2:
14; CHECK: movt r0, #65534
15entry:
16        %0 = or i32 %X, -131072
17        %1 = and i32 %0, -65537
18        ret i32 %1
19}
Note: See TracBrowser for help on using the repository browser.