1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64-v2 | FileCheck %s
4 define i128 @select_eq_i128(ptr %a) {
5 ; CHECK-LABEL: select_eq_i128:
7 ; CHECK-NEXT: movdqa (%rdi), %xmm0
8 ; CHECK-NEXT: pxor {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
9 ; CHECK-NEXT: xorl %eax, %eax
10 ; CHECK-NEXT: ptest %xmm0, %xmm0
11 ; CHECK-NEXT: setne %al
12 ; CHECK-NEXT: addq $-1, %rax
13 ; CHECK-NEXT: movabsq $9223372036854775807, %rdx # imm = 0x7FFFFFFFFFFFFFFF
14 ; CHECK-NEXT: adcq $0, %rdx
16 %1 = load i128, ptr %a, align 16
17 %cmp = icmp eq i128 %1, 1
18 %cond = select i1 %cmp, i128 170141183460469231731687303715884105727, i128 -170141183460469231731687303715884105728