1 ; RUN: llc -mtriple thumbv7-windows-itanium -relocation-model pic -filetype asm -o - %s \
2 ; RUN: | FileCheck %s -check-prefix CHECK-WIN
4 ; RUN: llc -mtriple thumbv7-windows-gnu -relocation-model pic -filetype asm -o - %s \
5 ; RUN: | FileCheck %s -check-prefix CHECK-GNU
7 @external = external global i8
9 define arm_aapcs_vfpcc i8 @return_external() {
11 %0 = load i8, i8* @external, align 1
15 ; CHECK-WIN-LABEL: return_external
16 ; CHECK-WIN: movw r0, :lower16:external
17 ; CHECK-WIN: movt r0, :upper16:external
18 ; CHECK-WIN: ldrb r0, [r0]
20 ; CHECK-GNU-LABEL: return_external
21 ; CHECK-GNU: movw r0, :lower16:.refptr.external
22 ; CHECK-GNU: movt r0, :upper16:.refptr.external
23 ; CHECK-GNU: ldr r0, [r0]
24 ; CHECK-GNU: ldrb r0, [r0]