| // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-attributes --filter "call " --include-generated-funcs --version 6 | |
| // RUN: %clang_cc1 -triple x86_64 -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s | |
| extern inline __attribute__((always_inline)) __attribute__((gnu_inline)) | |
| __attribute__((preserve_most)) int umask(int m) { | |
| return m; | |
| } | |
| int call_umask(int m) { | |
| return umask(m); | |
| } | |
| // CHECK: Function Attrs: noinline nounwind optnone | |
| // CHECK-LABEL: define dso_local i32 @call_umask( | |
| // CHECK-SAME: i32 noundef [[M:%.*]]) #[[ATTR0:[0-9]+]] { | |
| // CHECK: [[CALL:%.*]] = call preserve_mostcc i32 @umask.inline(i32 noundef [[TMP0:%.*]]) #[[ATTR3:[0-9]+]] | |
| // | |
| // | |
| // CHECK: Function Attrs: alwaysinline nobuiltin nounwind | |
| // CHECK-LABEL: define internal preserve_mostcc i32 @umask.inline( | |
| // CHECK-SAME: i32 noundef [[M:%.*]]) #[[ATTR2:[0-9]+]] { |