1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep movt | grep #1234
2 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep movt | grep #1234
3 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep movt | grep #1234
4 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep movt | grep #1234
5 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | grep mov | grep movt
7 define i32 @t2MOVTi16_ok_1(i32 %a) {
15 define i32 @t2MOVTi16_test_1(i32 %a) {
18 %3 = or i32 %1, 255 ; This give us 0xFFFF in %3
19 %4 = shl i32 %2, 8 ; This gives us (1234 << 16) in %4
26 define i32 @t2MOVTi16_test_2(i32 %a) {
29 %3 = or i32 %1, 255 ; This give us 0xFFFF in %3
32 %6 = shl i32 %4, 2 ; This gives us (1234 << 16) in %6
38 define i32 @t2MOVTi16_test_3(i32 %a) {
41 %3 = or i32 %1, 255 ; This give us 0xFFFF in %3
44 %6 = shl i32 %4, 2 ; This gives us (1234 << 16) in %6
52 define i32 @t2MOVTi16_test_nomatch_1(i32 %a) {
55 %3 = or i32 %1, 255 ; This give us 0xFFFF in %3
58 %6 = shl i32 %4, 2 ; This gives us (1234 << 16) in %6