166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s 266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ RUN: llvm-mc %s -triple armv7-apple-darwin | FileCheck %s 366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_t: 566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman movw r0, :lower16:(L_foo$non_lazy_ptr - (L1 + 8)) 666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman movt r0, :upper16:(L_foo$non_lazy_ptr - (L1 + 8)) 766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanL1: 866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ CHECK: movw r0, :lower16:(L_foo$non_lazy_ptr-(L1+8)) 1066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman@ CHECK: movt r0, :upper16:(L_foo$non_lazy_ptr-(L1+8)) 1166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .comm _foo,4,2 1366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers 1566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .align 2 1666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanL_foo$non_lazy_ptr: 1766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .indirect_symbol _foo 1866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman .long 0 1966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 2066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman.subsections_via_symbols 21