1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+sse2 -global-isel -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK64_SMALL 3; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+sse2 -global-isel -code-model=large -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK64_LARGE 4; RUN: llc -mtriple=i386-linux-gnu -mattr=+sse2 -global-isel -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK32 5; RUN: llc -mtriple=i386-linux-gnu -mattr=+sse2 -global-isel -code-model=large -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK32 6; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+sse2 -global-isel -relocation-model=pic -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK64_SMALL 7 8define void @test_float(ptr %a , float %b) { 9; CHECK64_SMALL-LABEL: test_float: 10; CHECK64_SMALL: # %bb.0: # %entry 11; CHECK64_SMALL-NEXT: movss {{.*#+}} xmm1 = [5.5E+0,0.0E+0,0.0E+0,0.0E+0] 12; CHECK64_SMALL-NEXT: addss %xmm0, %xmm1 13; CHECK64_SMALL-NEXT: movss %xmm1, (%rdi) 14; CHECK64_SMALL-NEXT: retq 15; 16; CHECK64_LARGE-LABEL: test_float: 17; CHECK64_LARGE: # %bb.0: # %entry 18; CHECK64_LARGE-NEXT: movabsq ${{\.?LCPI[0-9]+_[0-9]+}}, %rax 19; CHECK64_LARGE-NEXT: addss (%rax), %xmm0 20; CHECK64_LARGE-NEXT: movss %xmm0, (%rdi) 21; CHECK64_LARGE-NEXT: retq 22; 23; CHECK32-LABEL: test_float: 24; CHECK32: # %bb.0: # %entry 25; CHECK32-NEXT: movl {{[0-9]+}}(%esp), %eax 26; CHECK32-NEXT: movss {{.*#+}} xmm0 = [5.5E+0,0.0E+0,0.0E+0,0.0E+0] 27; CHECK32-NEXT: addss {{[0-9]+}}(%esp), %xmm0 28; CHECK32-NEXT: movss %xmm0, (%eax) 29; CHECK32-NEXT: retl 30entry: 31 %aa = fadd float 5.500000e+00, %b 32 store float %aa, ptr %a 33 ret void 34} 35 36