diff options
Diffstat (limited to 'test/CodeGen/builtins-msp430.c')
-rw-r--r-- | test/CodeGen/builtins-msp430.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/builtins-msp430.c b/test/CodeGen/builtins-msp430.c new file mode 100644 index 0000000000..8fb409b666 --- /dev/null +++ b/test/CodeGen/builtins-msp430.c @@ -0,0 +1,10 @@ +// REQUIRES: msp430-registered-target +// RUN: %clang_cc1 -triple msp430-unknown-unknown -emit-llvm %s -o - | FileCheck %s + +int test_builtin_flt_rounds() { + // CHECK: [[V0:[%A-Za-z0-9.]+]] = call i32 @llvm.flt.rounds() + // CHECK-DAG: [[V1:[%A-Za-z0-9.]+]] = trunc i32 [[V0]] to i16 + // CHECK-DAG: ret i16 [[V1]] + return __builtin_flt_rounds(); +} + |