1 ; Test 128-bit floating-point comparison.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5 ; There is no memory form of 128-bit comparison.
6 define i64 @f1(i64 %a, i64 %b, fp128 *%ptr, float %f2) {
8 ; CHECK: lxebr %f0, %f0
9 ; CHECK: ld %f1, 0(%r4)
10 ; CHECK: ld %f3, 8(%r4)
11 ; CHECK: cxbr %f1, %f0
15 %f2x = fpext float %f2 to fp128
16 %f1 = load fp128 *%ptr
17 %cond = fcmp oeq fp128 %f1, %f2x
18 %res = select i1 %cond, i64 %a, i64 %b
22 ; Check comparison with zero.
23 define i64 @f2(i64 %a, i64 %b, fp128 *%ptr) {
25 ; CHECK: ld %f0, 0(%r4)
26 ; CHECK: ld %f2, 8(%r4)
27 ; CHECK: ltxbr %f0, %f0
32 %cond = fcmp oeq fp128 %f, 0xL00000000000000000000000000000000
33 %res = select i1 %cond, i64 %a, i64 %b