1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-apple-darwin -relocation-model=static | FileCheck %s --check-prefix=x86_64-darwin 3; RUN: llc < %s -mtriple=x86_64-pc-linux-gnu -relocation-model=static | FileCheck %s --check-prefix=x86_64-linux 4 5@v = external global i32, align 8 6@v_addr = external global i32*, align 8 7 8define void @t() nounwind optsize { 9; x86_64-darwin-LABEL: t: 10; x86_64-darwin: ## %bb.0: 11; x86_64-darwin-NEXT: movq _v@{{.*}}(%rip), %rax 12; x86_64-darwin-NEXT: movq _v_addr@{{.*}}(%rip), %rcx 13; x86_64-darwin-NEXT: movq %rax, (%rcx) 14; x86_64-darwin-NEXT: ud2 15; 16; x86_64-linux-LABEL: t: 17; x86_64-linux: # %bb.0: 18; x86_64-linux-NEXT: movq v@{{.*}}(%rip), %rax 19; x86_64-linux-NEXT: movq v_addr@{{.*}}(%rip), %rcx 20; x86_64-linux-NEXT: movq %rax, (%rcx) 21 store i32* @v, i32** @v_addr, align 8 22 unreachable 23} 24