2017-08-17 16:06:36 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2019-01-17 02:00:09 +08:00
|
|
|
; RUN: llc < %s -mattr=+avx512f | FileCheck %s --check-prefixes=CHECK,AVX512F
|
|
|
|
; RUN: llc < %s -mattr=+avx512f,+avx512vl,+avx512bw,+avx512dq | FileCheck %s --check-prefixes=CHECK,AVX512VL
|
2017-08-17 16:06:36 +08:00
|
|
|
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
|
2019-01-17 02:00:09 +08:00
|
|
|
define void @test(<4 x i64> %a, <4 x x86_fp80> %b, <8 x x86_fp80>* %c) local_unnamed_addr {
|
2017-08-17 16:06:36 +08:00
|
|
|
; CHECK-LABEL: test:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2019-03-16 23:02:00 +08:00
|
|
|
; CHECK-NEXT: vmovq %xmm0, %rax
|
|
|
|
; CHECK-NEXT: vpextrq $1, %xmm0, %rcx
|
2019-03-16 01:00:55 +08:00
|
|
|
; CHECK-NEXT: vextracti128 $1, %ymm0, %xmm0
|
2019-03-16 23:02:00 +08:00
|
|
|
; CHECK-NEXT: vmovq %xmm0, %rdx
|
2019-03-16 01:00:55 +08:00
|
|
|
; CHECK-NEXT: vpextrq $1, %xmm0, %rsi
|
2019-03-16 23:02:00 +08:00
|
|
|
; CHECK-NEXT: cmpq $3, %rsi
|
2017-08-17 16:06:36 +08:00
|
|
|
; CHECK-NEXT: fld1
|
|
|
|
; CHECK-NEXT: fldz
|
2019-02-04 12:15:02 +08:00
|
|
|
; CHECK-NEXT: fld %st(0)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fcmove %st(2), %st
|
2019-03-16 23:02:00 +08:00
|
|
|
; CHECK-NEXT: cmpq $2, %rdx
|
2017-08-17 16:06:36 +08:00
|
|
|
; CHECK-NEXT: fld %st(1)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fcmove %st(3), %st
|
2019-03-16 23:02:00 +08:00
|
|
|
; CHECK-NEXT: cmpq $1, %rcx
|
2017-08-17 16:06:36 +08:00
|
|
|
; CHECK-NEXT: fld %st(2)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fcmove %st(4), %st
|
2019-03-16 23:02:00 +08:00
|
|
|
; CHECK-NEXT: testq %rax, %rax
|
2018-05-17 01:58:08 +08:00
|
|
|
; CHECK-NEXT: fxch %st(3)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fcmove %st(4), %st
|
2018-05-17 01:58:08 +08:00
|
|
|
; CHECK-NEXT: fstp %st(4)
|
2018-06-05 06:09:26 +08:00
|
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
|
|
; CHECK-NEXT: fstpt 70(%rdi)
|
|
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
|
|
; CHECK-NEXT: fstpt 50(%rdi)
|
|
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
|
|
; CHECK-NEXT: fstpt 30(%rdi)
|
|
|
|
; CHECK-NEXT: fldt {{[0-9]+}}(%rsp)
|
|
|
|
; CHECK-NEXT: fstpt 10(%rdi)
|
2019-03-16 01:00:55 +08:00
|
|
|
; CHECK-NEXT: fxch %st(1)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fadd %st, %st(0)
|
2018-06-05 06:09:26 +08:00
|
|
|
; CHECK-NEXT: fstpt 60(%rdi)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fadd %st, %st(0)
|
2018-06-05 06:09:26 +08:00
|
|
|
; CHECK-NEXT: fstpt 40(%rdi)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fadd %st, %st(0)
|
2018-06-05 06:09:26 +08:00
|
|
|
; CHECK-NEXT: fstpt 20(%rdi)
|
2019-02-04 12:15:10 +08:00
|
|
|
; CHECK-NEXT: fadd %st, %st(0)
|
2018-06-05 06:09:26 +08:00
|
|
|
; CHECK-NEXT: fstpt (%rdi)
|
|
|
|
%1 = icmp eq <4 x i64> <i64 0, i64 1, i64 2, i64 3>, %a
|
2017-08-17 16:06:36 +08:00
|
|
|
%2 = select <4 x i1> %1, <4 x x86_fp80> <x86_fp80 0xK3FFF8000000000000000, x86_fp80 0xK3FFF8000000000000000, x86_fp80 0xK3FFF8000000000000000, x86_fp80 0xK3FFF8000000000000000>, <4 x x86_fp80> zeroinitializer
|
2018-05-17 01:58:08 +08:00
|
|
|
%3 = fadd <4 x x86_fp80> %2, %2
|
2018-06-05 06:09:26 +08:00
|
|
|
%4 = shufflevector <4 x x86_fp80> %3, <4 x x86_fp80> %b, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7>
|
|
|
|
store <8 x x86_fp80> %4, <8 x x86_fp80>* %c, align 16
|
2017-08-17 16:06:36 +08:00
|
|
|
unreachable
|
|
|
|
}
|