[X86] Regenerate fp128 test

llvm-svn: 322460
This commit is contained in:
Simon Pilgrim 2018-01-14 19:07:41 +00:00
parent 9904fe77a0
commit 7c3088e5c0
1 changed files with 18 additions and 11 deletions

View File

@ -1,10 +1,23 @@
; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx \
; RUN: -enable-legalize-types-checking | FileCheck %s
; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx \
; RUN: -enable-legalize-types-checking | FileCheck %s
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx -enable-legalize-types-checking | FileCheck %s
; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx -enable-legalize-types-checking | FileCheck %s
; Test the softened result of extractelement op code.
define fp128 @TestExtract(<2 x double> %x) {
define fp128 @TestExtract(<2 x double> %x) nounwind {
; CHECK-LABEL: TestExtract:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: subq $40, %rsp
; CHECK-NEXT: movaps %xmm0, (%rsp) # 16-byte Spill
; CHECK-NEXT: callq __extenddftf2
; CHECK-NEXT: movaps %xmm0, {{[0-9]+}}(%rsp) # 16-byte Spill
; CHECK-NEXT: movaps (%rsp), %xmm0 # 16-byte Reload
; CHECK-NEXT: movhlps {{.*#+}} xmm0 = xmm0[1,1]
; CHECK-NEXT: callq __extenddftf2
; CHECK-NEXT: movaps %xmm0, %xmm1
; CHECK-NEXT: movaps {{[0-9]+}}(%rsp), %xmm0 # 16-byte Reload
; CHECK-NEXT: callq __multf3
; CHECK-NEXT: addq $40, %rsp
; CHECK-NEXT: retq
entry:
; Simplified instruction pattern from the output of llvm before r289042,
; for a boost function ...::insert<...>::traverse<...>().
@ -13,10 +26,4 @@ entry:
%1 = extractelement <2 x fp128> %a, i32 1
%2 = fmul fp128 %0, %1
ret fp128 %2
; CHECK-LABEL: TestExtract:
; CHECK: movaps %xmm0, (%rsp)
; CHECK: callq __extenddftf2
; CHECK: callq __extenddftf2
; CHECK: callq __multf3
; CHECK: retq
}