1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx \
3 ; RUN: -enable-legalize-types-checking | FileCheck %s --check-prefix=MMX
4 ; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx \
5 ; RUN: -enable-legalize-types-checking | FileCheck %s --check-prefix=MMX
6 ; RUN: llc < %s -O2 -mtriple=x86_64-linux-android \
7 ; RUN: -enable-legalize-types-checking | FileCheck %s
8 ; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu \
9 ; RUN: -enable-legalize-types-checking | FileCheck %s
11 define void @test_select(fp128* %p, fp128* %q, i1 zeroext %c) {
12 ; MMX-LABEL: test_select:
14 ; MMX-NEXT: testl %edx, %edx
15 ; MMX-NEXT: jne .LBB0_1
17 ; MMX-NEXT: movaps {{.*}}(%rip), %xmm0
18 ; MMX-NEXT: movaps %xmm0, (%rsi)
21 ; MMX-NEXT: movups (%rdi), %xmm0
22 ; MMX-NEXT: movaps %xmm0, (%rsi)
25 ; CHECK-LABEL: test_select:
27 ; CHECK-NEXT: xorl %eax, %eax
28 ; CHECK-NEXT: testl %edx, %edx
29 ; CHECK-NEXT: cmovneq (%rdi), %rax
30 ; CHECK-NEXT: movabsq $9223231299366420480, %rcx # imm = 0x7FFF800000000000
31 ; CHECK-NEXT: cmovneq 8(%rdi), %rcx
32 ; CHECK-NEXT: movq %rcx, 8(%rsi)
33 ; CHECK-NEXT: movq %rax, (%rsi)
35 %a = load fp128, fp128* %p, align 2
36 %r = select i1 %c, fp128 %a, fp128 0xL00000000000000007FFF800000000000
37 store fp128 %r, fp128* %q