brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 8d2ee3c Raw
36 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+sse2 -global-isel                       -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK64_SMALL3; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+sse2 -global-isel -code-model=large     -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK64_LARGE4; RUN: llc -mtriple=i386-linux-gnu   -mattr=+sse2 -global-isel                       -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK325; RUN: llc -mtriple=i386-linux-gnu   -mattr=+sse2 -global-isel -code-model=large     -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK326; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+sse2 -global-isel -relocation-model=pic -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK64_SMALL7 8define void @test_float(ptr %a , float %b) {9; CHECK64_SMALL-LABEL: test_float:10; CHECK64_SMALL:       # %bb.0: # %entry11; CHECK64_SMALL-NEXT:    movss {{.*#+}} xmm1 = [5.5E+0,0.0E+0,0.0E+0,0.0E+0]12; CHECK64_SMALL-NEXT:    addss %xmm0, %xmm113; CHECK64_SMALL-NEXT:    movss %xmm1, (%rdi)14; CHECK64_SMALL-NEXT:    retq15;16; CHECK64_LARGE-LABEL: test_float:17; CHECK64_LARGE:       # %bb.0: # %entry18; CHECK64_LARGE-NEXT:    movabsq ${{\.?LCPI[0-9]+_[0-9]+}}, %rax19; CHECK64_LARGE-NEXT:    addss (%rax), %xmm020; CHECK64_LARGE-NEXT:    movss %xmm0, (%rdi)21; CHECK64_LARGE-NEXT:    retq22;23; CHECK32-LABEL: test_float:24; CHECK32:       # %bb.0: # %entry25; CHECK32-NEXT:    movl {{[0-9]+}}(%esp), %eax26; CHECK32-NEXT:    movss {{.*#+}} xmm0 = [5.5E+0,0.0E+0,0.0E+0,0.0E+0]27; CHECK32-NEXT:    addss {{[0-9]+}}(%esp), %xmm028; CHECK32-NEXT:    movss %xmm0, (%eax)29; CHECK32-NEXT:    retl30entry:31  %aa = fadd float 5.500000e+00, %b32  store float %aa, ptr %a33  ret void34}35 36