1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; Test 128-bit multiplication on z13
4 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
7 define i128 @f1(i128 %a, i128 %b) {
10 ; CHECK-NEXT: stmg %r12, %r15, 96(%r15)
11 ; CHECK-NEXT: .cfi_offset %r12, -64
12 ; CHECK-NEXT: .cfi_offset %r13, -56
13 ; CHECK-NEXT: .cfi_offset %r15, -40
14 ; CHECK-NEXT: lg %r13, 8(%r3)
15 ; CHECK-NEXT: lg %r0, 8(%r4)
16 ; CHECK-NEXT: lgr %r1, %r13
17 ; CHECK-NEXT: mlgr %r12, %r0
18 ; CHECK-NEXT: msg %r1, 0(%r4)
19 ; CHECK-NEXT: msg %r0, 0(%r3)
20 ; CHECK-NEXT: agr %r1, %r12
21 ; CHECK-NEXT: agr %r0, %r1
22 ; CHECK-NEXT: stg %r13, 8(%r2)
23 ; CHECK-NEXT: stg %r0, 0(%r2)
24 ; CHECK-NEXT: lmg %r12, %r15, 96(%r15)
26 %res = mul i128 %a, %b