1 ; RUN: llc -mtriple=thumbv7-windows -o - %s \
2 ; RUN: | FileCheck %s -check-prefix CHECK-WINDOWS
4 ; RUN: llc -mtriple=thumbv7-eabi -o - %s \
5 ; RUN: | FileCheck %s -check-prefix CHECK-EABI
7 @i = common global i32 0, align 4
8 @j = common global i32 0, align 4
10 ; Function Attrs: nounwind optsize readonly
11 define i32 @relocation(i32 %j, i32 %k) {
13 %0 = load i32, i32* @i, align 4
14 %1 = load i32, i32* @j, align 4
15 %add = add nsw i32 %1, %0
19 ; CHECK-WINDOWS: movw r[[i:[0-4]]], :lower16:i
20 ; CHECK-WINDOWS-NEXT: movt r[[i]], :upper16:i
21 ; CHECK-WINDOWS: movw r[[j:[0-4]]], :lower16:j
22 ; CHECK-WINDOWS-NEXT: movt r[[j]], :upper16:j
24 ; CHECK-EABI: movw r[[i:[0-4]]], :lower16:i
25 ; CHECK-EABI: movw r[[j:[0-4]]], :lower16:j
26 ; CHECK-EABI-NEXT: movt r[[i]], :upper16:i
27 ; CHECK-EABI-NEXT: movt r[[j]], :upper16:j