23 lines · plain
1; Test 128-bit subtraction when the distinct-operands facility is available.2;3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z196 | FileCheck %s4 5; Test the case where both operands are in registers.6define i64 @f1(i64 %a, i64 %b, i64 %c, i64 %d, ptr %ptr) {7; CHECK-LABEL: f1:8; CHECK: slgrk %r2, %r4, %r59; CHECK: slbgr10; CHECK: br %r1411 %x1 = insertelement <2 x i64> undef, i64 %b, i32 012 %x2 = insertelement <2 x i64> %x1, i64 %c, i32 113 %x = bitcast <2 x i64> %x2 to i12814 %y2 = insertelement <2 x i64> %x1, i64 %d, i32 115 %y = bitcast <2 x i64> %y2 to i12816 %sub = sub i128 %x, %y17 %subv = bitcast i128 %sub to <2 x i64>18 %high = extractelement <2 x i64> %subv, i32 019 store i64 %high, ptr %ptr20 %low = extractelement <2 x i64> %subv, i32 121 ret i64 %low22}23