llvm-project/clang/test/CodeGen/SystemZ/builtins-systemz-bitop.c
Ulrich Weigand 80267f8148
Support z17 processor name and scheduler description (#135254)
The recently announced IBM z17 processor implements the architecture
already supported as "arch15" in LLVM. This patch adds support for "z17"
as an alternate architecture name for arch15.

This patch also add the scheduler description for the z17 processor,
provided by Jonas Paulsson.
2025-04-11 00:20:58 +02:00

17 lines
661 B
C

// REQUIRES: systemz-registered-target
// RUN: %clang_cc1 -target-cpu z17 -triple s390x-ibm-linux -Wall -Wno-unused -Werror -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -target-cpu z17 -triple s390x-ibm-linux -Wall -Wno-unused -Werror -emit-llvm -x c++ %s -o - | FileCheck %s
unsigned long test_bdepg(unsigned long a, unsigned long b) {
// CHECK-LABEL: test_bdepg
// CHECK: call i64 @llvm.s390.bdepg(i64 {{.*}}, i64 {{.*}})
return __builtin_s390_bdepg(a, b);
}
unsigned long test_bextg(unsigned long a, unsigned long b) {
// CHECK-LABEL: test_bextg
// CHECK: call i64 @llvm.s390.bextg(i64 {{.*}}, i64 {{.*}})
return __builtin_s390_bextg(a, b);
}