1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mattr=+sve2 -force-streaming-compatible < %s | FileCheck %s --check-prefix=SVE2
3 ; RUN: llc -mattr=+sme -force-streaming < %s | FileCheck %s --check-prefix=SVE2
4 ; RUN: llc -force-streaming-compatible < %s | FileCheck %s --check-prefix=NONEON-NOSVE
6 target triple = "aarch64-unknown-linux-gnu"
12 define <2 x i64> @mul_v2i64(<2 x i64> %op1, <2 x i64> %op2) {
13 ; SVE2-LABEL: mul_v2i64:
15 ; SVE2-NEXT: // kill: def $q0 killed $q0 def $z0
16 ; SVE2-NEXT: // kill: def $q1 killed $q1 def $z1
17 ; SVE2-NEXT: mul z0.d, z0.d, z1.d
18 ; SVE2-NEXT: // kill: def $q0 killed $q0 killed $z0
21 ; NONEON-NOSVE-LABEL: mul_v2i64:
22 ; NONEON-NOSVE: // %bb.0:
23 ; NONEON-NOSVE-NEXT: stp q0, q1, [sp, #-48]!
24 ; NONEON-NOSVE-NEXT: .cfi_def_cfa_offset 48
25 ; NONEON-NOSVE-NEXT: ldp x9, x10, [sp]
26 ; NONEON-NOSVE-NEXT: ldr x8, [sp, #24]
27 ; NONEON-NOSVE-NEXT: mul x11, x10, x8
28 ; NONEON-NOSVE-NEXT: ldr x8, [sp, #16]
29 ; NONEON-NOSVE-NEXT: mul x8, x9, x8
30 ; NONEON-NOSVE-NEXT: stp x8, x11, [sp, #32]
31 ; NONEON-NOSVE-NEXT: ldr q0, [sp, #32]
32 ; NONEON-NOSVE-NEXT: add sp, sp, #48
33 ; NONEON-NOSVE-NEXT: ret
34 %res = mul <2 x i64> %op1, %op2