1; RUN: llc -mtriple=x86_64 -relocation-model=pic < %s | FileCheck %s 2 3;; Test that we use the local alias for dso_local globals in inline assembly. 4 5@mxcsr0 = dso_local global i32 0 6@mxcsr1 = dso_preemptable global i32 1 7 8define <2 x double> @foo(<2 x double> %a, <2 x double> %b) { 9; CHECK-LABEL: foo: 10; CHECK: movq mxcsr1@GOTPCREL(%rip), %rax 11; CHECK: #APP 12; CHECK-NEXT: ldmxcsr .Lmxcsr0$local(%rip) 13; CHECK-NEXT: addpd %xmm1, %xmm0 14; CHECK-NEXT: ldmxcsr (%rax) 15; CHECK-NEXT: #NO_APP 16entry: 17 %0 = call <2 x double> asm sideeffect "ldmxcsr $2; addpd $1, $0; ldmxcsr $3", 18 "=x,x,*m,*m,0,~{dirflag},~{fpsr},~{flags}"( 19 <2 x double> %b, i32* nonnull @mxcsr0, i32* nonnull @mxcsr1, <2 x double> %a) 20 ret <2 x double> %0 21} 22