1 // Test that the target_features and target_cpu llvm.func attributes are
2 // forwarded to outlined target region functions.
4 // RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
6 module attributes {omp.is_target_device = false} {
7 llvm.func @omp_target_region() attributes {
9 target_features = #llvm.target_features<["+mmx", "+sse"]>
18 // CHECK: define void @omp_target_region() #[[ATTRS:.*]] {
19 // CHECK: define internal void @__omp_offloading_{{.*}}_omp_target_region_{{.*}}() #[[ATTRS]] {
21 // CHECK: attributes #[[ATTRS]] = {
22 // CHECK-SAME: "target-cpu"="x86-64"
23 // CHECK-SAME: "target-features"="+mmx,+sse"