Files
clang-p2996/llvm/test/CodeGen/SystemZ/vec-mul-06.ll
Ulrich Weigand 8424bf207e [SystemZ] Add support for new cpu architecture - arch15
This patch adds support for the next-generation arch15
CPU architecture to the SystemZ backend.

This includes:
- Basic support for the new processor and its features.
- Detection of arch15 as host processor.
- Assembler/disassembler support for new instructions.
- Exploitation of new instructions for code generation.
- New vector (signed|unsigned|bool) __int128 data types.
- New LLVM intrinsics for certain new instructions.
- Support for low-level builtins mapped to new LLVM intrinsics.
- New high-level intrinsics in vecintrin.h.
- Indicate support by defining  __VEC__ == 10305.

Note: No currently available Z system supports the arch15
architecture.  Once new systems become available, the
official system name will be added as supported -march name.
2025-01-20 19:30:21 +01:00

25 lines
660 B
LLVM

; Test vector multiplication on arch15.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=arch15 | FileCheck %s
; Test a v2i64 multiplication.
define <2 x i64> @f1(<2 x i64> %dummy, <2 x i64> %val1, <2 x i64> %val2) {
; CHECK-LABEL: f1:
; CHECK: vmlg %v24, %v26, %v28
; CHECK: br %r14
%ret = mul <2 x i64> %val1, %val2
ret <2 x i64> %ret
}
; Test a v2i64 multiply-and-add.
define <2 x i64> @f2(<2 x i64> %dummy, <2 x i64> %val1, <2 x i64> %val2,
<2 x i64> %val3) {
; CHECK-LABEL: f2:
; CHECK: vmalg %v24, %v26, %v28, %v30
; CHECK: br %r14
%mul = mul <2 x i64> %val1, %val2
%ret = add <2 x i64> %mul, %val3
ret <2 x i64> %ret
}