xref: /llvm-project/llvm/test/CodeGen/X86/isel-blendi-gettargetconstant.ll (revision a70d5e25f32ebd5f1d1c394312036a37591e998b)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-linux-gnu -mattr=sse4.2 | FileCheck %s
3
4define void @csrot_(ptr %0) {
5; CHECK-LABEL: csrot_:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
8; CHECK-NEXT:    xorps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
9; CHECK-NEXT:    blendps {{.*#+}} xmm0 = xmm0[0],mem[1,2,3]
10; CHECK-NEXT:    movlps %xmm0, (%rax)
11; CHECK-NEXT:    retq
121:
13  %2 = load float, ptr %0, align 4
14  %3 = fsub float -0.000000e+00, %2
15  %4 = insertelement <2 x float> <float undef, float -0.000000e+00>, float %3, i32 0
16  store <2 x float> %4, ptr undef, align 8
17  ret void
18}
19