Files
clang-p2996/llvm/test/CodeGen/SystemZ/bitop-intrinsics.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

29 lines
755 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
; Test bit deposit / extract intrinsics
;
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=arch15 | FileCheck %s
declare i64 @llvm.s390.bdepg(i64, i64)
declare i64 @llvm.s390.bextg(i64, i64)
; BDEPG.
define i64 @test_bdepg(i64 %a, i64 %b) {
; CHECK-LABEL: test_bdepg:
; CHECK: # %bb.0:
; CHECK-NEXT: bdepg %r2, %r2, %r3
; CHECK-NEXT: br %r14
%res = call i64 @llvm.s390.bdepg(i64 %a, i64 %b)
ret i64 %res
}
; BEXTG.
define i64 @test_bextg(i64 %a, i64 %b) {
; CHECK-LABEL: test_bextg:
; CHECK: # %bb.0:
; CHECK-NEXT: bextg %r2, %r2, %r3
; CHECK-NEXT: br %r14
%res = call i64 @llvm.s390.bextg(i64 %a, i64 %b)
ret i64 %res
}