1; RUN: llc -mtriple thumbv7-windows-itanium -relocation-model pic -filetype asm -o - %s \ 2; RUN: | FileCheck %s -check-prefix CHECK-WIN 3 4; RUN: llc -mtriple thumbv7-windows-gnu -relocation-model pic -filetype asm -o - %s \ 5; RUN: | FileCheck %s -check-prefix CHECK-GNU 6 7@external = external global i8 8 9define arm_aapcs_vfpcc i8 @return_external() { 10entry: 11 %0 = load i8, i8* @external, align 1 12 ret i8 %0 13} 14 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] 19 20; CHECK-GNU-LABEL: return_external 21; CHECK-GNU: movw r0, :lower16:external 22; CHECK-GNU: movt r0, :upper16:external 23; CHECK-GNU: ldrb r0, [r0] 24